Package software.amazon.smithy.openapi
Enum OpenApiConfig.ErrorStatusConflictHandlingStrategy
- java.lang.Object
-
- java.lang.Enum<OpenApiConfig.ErrorStatusConflictHandlingStrategy>
-
- software.amazon.smithy.openapi.OpenApiConfig.ErrorStatusConflictHandlingStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OpenApiConfig.ErrorStatusConflictHandlingStrategy>
- Enclosing class:
- OpenApiConfig
public static enum OpenApiConfig.ErrorStatusConflictHandlingStrategy extends java.lang.Enum<OpenApiConfig.ErrorStatusConflictHandlingStrategy>
Specifies how to resolve multiple error responses with same error codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ONE_OF
The default setting that uses OpenAPI's oneOf keyword to combine multiple schemas for same media type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static OpenApiConfig.ErrorStatusConflictHandlingStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OpenApiConfig.ErrorStatusConflictHandlingStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_OF
public static final OpenApiConfig.ErrorStatusConflictHandlingStrategy ONE_OF
The default setting that uses OpenAPI's oneOf keyword to combine multiple schemas for same media type.
-
-
Method Detail
-
values
public static OpenApiConfig.ErrorStatusConflictHandlingStrategy[] 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 (OpenApiConfig.ErrorStatusConflictHandlingStrategy c : OpenApiConfig.ErrorStatusConflictHandlingStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenApiConfig.ErrorStatusConflictHandlingStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<OpenApiConfig.ErrorStatusConflictHandlingStrategy>
-
-