Class ClientOptionalTrait
- java.lang.Object
-
- software.amazon.smithy.model.traits.AnnotationTrait
-
- software.amazon.smithy.model.traits.ClientOptionalTrait
-
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
public final class ClientOptionalTrait extends AnnotationTrait
Indicates that non-authoritative code generators should treat a member as optional even if it's required or default.Because this trait is added by default to the members of a structure marked with the input trait, this trait can be defined as either synthetic or non-synthetic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientOptionalTrait.Provider
-
Constructor Summary
Constructors Constructor Description ClientOptionalTrait()
ClientOptionalTrait(ObjectNode node)
ClientOptionalTrait(SourceLocation location)
-
Method Summary
-
Methods inherited from class software.amazon.smithy.model.traits.AnnotationTrait
equals, getSourceLocation, hashCode, toNode, toShapeId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
-
-
-
Field Detail
-
ID
public static final ShapeId ID
-
-
Constructor Detail
-
ClientOptionalTrait
public ClientOptionalTrait()
-
ClientOptionalTrait
public ClientOptionalTrait(ObjectNode node)
-
ClientOptionalTrait
public ClientOptionalTrait(SourceLocation location)
-
-