Enum SchemaResolverProperties.IfArtifactExists
- java.lang.Object
-
- java.lang.Enum<SchemaResolverProperties.IfArtifactExists>
-
- com.solace.serdes.common.resolver.config.SchemaResolverProperties.IfArtifactExists
-
- All Implemented Interfaces:
Serializable
,Comparable<SchemaResolverProperties.IfArtifactExists>
- Enclosing class:
- SchemaResolverProperties
public static enum SchemaResolverProperties.IfArtifactExists extends Enum<SchemaResolverProperties.IfArtifactExists>
Enumeration for controlling the behavior when registering an artifact that might already exist in the schema registry.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_VERSION
Creates a new version of the existing artifactFAIL
Fails the registration if the artifact already existsFIND_OR_CREATE_VERSION
Uses the existing artifact if it exists, otherwise creates a new version
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaResolverProperties.IfArtifactExists
valueOf(String name)
Returns the enum constant of this type with the specified name.static SchemaResolverProperties.IfArtifactExists[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAIL
public static final SchemaResolverProperties.IfArtifactExists FAIL
Fails the registration if the artifact already exists
-
CREATE_VERSION
public static final SchemaResolverProperties.IfArtifactExists CREATE_VERSION
Creates a new version of the existing artifact
-
FIND_OR_CREATE_VERSION
public static final SchemaResolverProperties.IfArtifactExists FIND_OR_CREATE_VERSION
Uses the existing artifact if it exists, otherwise creates a new version
-
-
Method Detail
-
values
public static SchemaResolverProperties.IfArtifactExists[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SchemaResolverProperties.IfArtifactExists c : SchemaResolverProperties.IfArtifactExists.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaResolverProperties.IfArtifactExists valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-