Class MemberShape.Builder

All Implemented Interfaces:
FromSourceLocation, SmithyBuilder<MemberShape>
Enclosing class:
MemberShape

public static class MemberShape.Builder extends AbstractShapeBuilder<MemberShape.Builder,MemberShape>
Builder used to create a MemberShape.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public MemberShape build()
      Description copied from interface: SmithyBuilder
      Creates an immutable object that is created from the properties that have been set on the builder.
      Returns:
      an instance of T
    • getShapeType

      public ShapeType getShapeType()
      Description copied from class: AbstractShapeBuilder
      Gets the type of shape being built.
      Specified by:
      getShapeType in class AbstractShapeBuilder<MemberShape.Builder,MemberShape>
      Returns:
      Returns the shape type.
    • target

      public MemberShape.Builder target(ToShapeId shapeId)
      Sets a member shape ID on the builder.
      Parameters:
      shapeId - MemberShape targeted shape ID.
      Returns:
      Returns the builder.
    • target

      public MemberShape.Builder target(String shapeId)
      Sets a member shape ID on the builder.
      Parameters:
      shapeId - Targeted shape ID as an absolute member.
      Returns:
      Returns the builder.
      Throws:
      ShapeIdSyntaxException - if the shape ID is invalid.
    • getTarget

      public ShapeId getTarget()
      Returns:
      Returns the target currently set on the member.