public final class UnionShape extends Shape implements ToSmithyBuilder<UnionShape>
| Modifier and Type | Class and Description |
|---|---|
static class |
UnionShape.Builder
Builder used to create a
UnionShape. |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(ShapeVisitor<R> cases)
Dispatches the shape to the appropriate
ShapeVisitor method. |
java.util.Optional<UnionShape> |
asUnionShape() |
static UnionShape.Builder |
builder() |
boolean |
equals(java.lang.Object other) |
java.util.Map<java.lang.String,MemberShape> |
getAllMembers()
Gets the members of the shape.
|
java.util.Optional<MemberShape> |
getMember(java.lang.String name)
Get a specific member by name.
|
java.util.List<java.lang.String> |
getMemberNames()
Returns an ordered list of member names based on the order they are
defined in the model.
|
ShapeType |
getType()
Gets the type of the shape.
|
java.util.Collection<MemberShape> |
members()
Gets all of the members contained in the shape.
|
UnionShape.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asFloatShape, asIntegerShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asResourceShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, compareTo, expectTrait, findMemberTrait, findTrait, findTrait, getAllTraits, getId, getMemberTrait, getSourceLocation, getTags, getTrait, hashCode, hasTrait, hasTrait, hasTrait, isBigDecimalShape, isBigIntegerShape, isBlobShape, isBooleanShape, isByteShape, isDocumentShape, isDoubleShape, isFloatShape, isIntegerShape, isListShape, isLongShape, isMapShape, isMemberShape, isOperationShape, isResourceShape, isServiceShape, isSetShape, isShortShape, isStringShape, isStructureShape, isTimestampShape, isUnionShape, shapeToBuilder, toShapeId, toStringpublic static UnionShape.Builder builder()
public UnionShape.Builder toBuilder()
ToSmithyBuildertoBuilder in interface ToSmithyBuilder<UnionShape>public <R> R accept(ShapeVisitor<R> cases)
ShapeShapeVisitor method.public java.util.Optional<UnionShape> asUnionShape()
asUnionShape in class ShapeUnionShape.public java.util.Map<java.lang.String,MemberShape> getAllMembers()
public java.util.List<java.lang.String> getMemberNames()
public java.util.Optional<MemberShape> getMember(java.lang.String name)
name - Name of the member to retrieve.public java.util.Collection<MemberShape> members()
Shape