Class SparseTrait

java.lang.Object
software.amazon.smithy.model.traits.AnnotationTrait
software.amazon.smithy.model.traits.SparseTrait
All Implemented Interfaces:
FromSourceLocation, ToNode, ToShapeId, Trait

public final class SparseTrait extends AnnotationTrait
Indicates that a list or map is sparse, meaning they may contain nulls.
  • Field Details

    • ID

      public static final ShapeId ID
  • Constructor Details

    • SparseTrait

      public SparseTrait(ObjectNode node)
    • SparseTrait

      public SparseTrait()