Class 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.

  • Field Details

    • ID

      public static final ShapeId ID
  • Constructor Details

    • ClientOptionalTrait

      public ClientOptionalTrait()
    • ClientOptionalTrait

      public ClientOptionalTrait(ObjectNode node)
    • ClientOptionalTrait

      public ClientOptionalTrait(SourceLocation location)