public static class MemberShape.Builder extends AbstractShapeBuilder<MemberShape.Builder,MemberShape>
MemberShape
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MemberShape |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
ShapeType |
getShapeType()
Gets the type of shape being built.
|
MemberShape.Builder |
target(java.lang.String shapeId)
Sets a member shape ID on the builder.
|
MemberShape.Builder |
target(ToShapeId shapeId)
Sets a member shape ID on the builder.
|
addMember, addTrait, addTraits, clearTraits, getId, getSourceLocation, id, id, removeTrait, removeTrait, source, source, traits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public MemberShape build()
SmithyBuilder
public ShapeType getShapeType()
AbstractShapeBuilder
getShapeType
in class AbstractShapeBuilder<MemberShape.Builder,MemberShape>
public MemberShape.Builder target(ToShapeId shapeId)
shapeId
- MemberShape targeted shape ID.public MemberShape.Builder target(java.lang.String shapeId)
shapeId
- Targeted shape ID as an absolute member.ShapeIdSyntaxException
- if the shape ID is invalid.