Class ClientOptionalTrait
java.lang.Object
software.amazon.smithy.model.traits.AnnotationTrait
software.amazon.smithy.model.traits.ClientOptionalTrait
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
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
-
Field Summary
-
Constructor Summary
-
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 Details
-
ID
-
-
Constructor Details
-
ClientOptionalTrait
public ClientOptionalTrait() -
ClientOptionalTrait
-
ClientOptionalTrait
-