public final class MapShape extends Shape implements ToSmithyBuilder<MapShape>
map
shape.Modifier and Type | Class and Description |
---|---|
static class |
MapShape.Builder
Builder used to create a
ListShape . |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(ShapeVisitor<R> cases)
Dispatches the shape to the appropriate
ShapeVisitor method. |
java.util.Optional<MapShape> |
asMapShape() |
static MapShape.Builder |
builder() |
boolean |
equals(java.lang.Object other) |
MemberShape |
getKey()
Get the key member shape of the map.
|
ShapeType |
getType()
Gets the type of the shape.
|
MemberShape |
getValue()
Get the value member shape of the map.
|
java.util.Collection<MemberShape> |
members()
Gets all of the members contained in the shape.
|
MapShape.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, asMemberShape, asOperationShape, asResourceShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, 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, toString
public static MapShape.Builder builder()
public MapShape.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<MapShape>
public <R> R accept(ShapeVisitor<R> cases)
Shape
ShapeVisitor
method.public java.util.Optional<MapShape> asMapShape()
asMapShape
in class Shape
MapShape
.public MemberShape getValue()
public MemberShape getKey()
public java.util.Collection<MemberShape> members()
Shape