Class SetShape

All Implemented Interfaces:
Comparable<Shape>, FromSourceLocation, ToShapeId, Tagged, ToSmithyBuilder<ListShape>

@Deprecated public final class SetShape extends ListShape
Deprecated.
Represents a set shape.

Sets are deprecated. Use list shapes with the uniqueItems trait instead. When serialized using IDL v2, sets are converted to lists with the uniqueItems trait.

  • Method Details

    • builder

      public static SetShape.Builder builder()
      Deprecated.
    • toBuilder

      public SetShape.Builder toBuilder()
      Deprecated.
      Description copied from interface: ToSmithyBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToSmithyBuilder<ListShape>
      Overrides:
      toBuilder in class ListShape
      Returns:
      a builder for type T
    • accept

      public <R> R accept(ShapeVisitor<R> visitor)
      Deprecated.
      Description copied from class: Shape
      Dispatches the shape to the appropriate ShapeVisitor method.
      Overrides:
      accept in class ListShape
      Type Parameters:
      R - Return type of the accept.
      Parameters:
      visitor - ShapeVisitor to use.
      Returns:
      Returns the result.
    • asSetShape

      public Optional<SetShape> asSetShape()
      Deprecated.
      Overrides:
      asSetShape in class Shape
      Returns:
      Optionally returns the shape as a SetShape.
    • getType

      public ShapeType getType()
      Deprecated.
      Description copied from class: Shape
      Gets the type of the shape.
      Overrides:
      getType in class ListShape
      Returns:
      Returns the type;