public static enum NullableIndex.CheckMode extends java.lang.Enum<NullableIndex.CheckMode>
Enum Constant and Description |
---|
CLIENT
A client, or any other kind of non-authoritative model consumer
that must honor the
InputTrait and ClientOptionalTrait . |
CLIENT_CAREFUL
Like
CLIENT mode, but will treat all members that target
structures and unions as optional because these members can never
transition to optional using a default trait. |
CLIENT_ZERO_VALUE_V1
Evaluates only default traits on members that are set to their zero value based on Smithy
IDL 1.0 semantics (that is, only looks at shapes that had a zero value in Smithy v1, including byte,
short, integer, long, float, double, and boolean.
|
CLIENT_ZERO_VALUE_V1_NO_INPUT
Evaluates only default traits on members that are set to their zero value based on Smithy
IDL 1.0 semantics (that is, only looks at shapes that had a zero value in Smithy v1, including byte,
short, integer, long, float, double, and boolean.
|
SERVER
A server, or any other kind of authoritative model consumer
that does not honor the
InputTrait and ClientOptionalTrait . |
Modifier and Type | Method and Description |
---|---|
static NullableIndex.CheckMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NullableIndex.CheckMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullableIndex.CheckMode CLIENT
InputTrait
and ClientOptionalTrait
.public static final NullableIndex.CheckMode CLIENT_CAREFUL
CLIENT
mode, but will treat all members that target
structures and unions as optional because these members can never
transition to optional using a default trait.public static final NullableIndex.CheckMode CLIENT_ZERO_VALUE_V1
public static final NullableIndex.CheckMode CLIENT_ZERO_VALUE_V1_NO_INPUT
public static final NullableIndex.CheckMode SERVER
InputTrait
and ClientOptionalTrait
.
This mode should only be used for model consumers that have perfect knowledge of the model because they are built and deployed in lock-step with model updates. A client does not have perfect knowledge of a model because it has to be generated, deployed, and then migrated to when model updates are released. However, a server is required to be updated in order to implement newly added model components.
public static NullableIndex.CheckMode[] values()
for (NullableIndex.CheckMode c : NullableIndex.CheckMode.values()) System.out.println(c);
public static NullableIndex.CheckMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null