Enum Class ChangeType
- All Implemented Interfaces:
Serializable, Comparable<ChangeType>, Constable
The mutations the Safe Mutation Broker can carry - deliberately the smallest honest set:
three creates, each backed by a spec-documented Fabric v4 dry run the propose phase
exercises for real. There are no update change types at launch and, by policy, no delete
change types ever.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreate a Fabric connection (POST /fabric/v4/connections).Create a Fabric network (POST /fabric/v4/networks).Create a Fabric service token (POST /fabric/v4/serviceTokens). -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeTypeParses a change-type id (case-insensitive; the enum constant name is accepted too).id()static String[]ids()static ChangeTypeReturns the enum constant of this class with the specified name.static ChangeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTION_CREATE
Create a Fabric connection (POST /fabric/v4/connections). -
NETWORK_CREATE
Create a Fabric network (POST /fabric/v4/networks). -
SERVICE_TOKEN_CREATE
Create a Fabric service token (POST /fabric/v4/serviceTokens).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
id
- Returns:
- the stable snake_case id used on the tool wire (e.g.
connection_create)
-
ids
- Returns:
- every change-type id, in declaration order, for schema enums
-
fromId
Parses a change-type id (case-insensitive; the enum constant name is accepted too).- Parameters:
value- the id, e.g."connection_create"- Returns:
- the matching change type
- Throws:
IllegalArgumentException- if the id is unknown, listing the valid ids
-