public final class MapShape extends Shape implements software.amazon.smithy.utils.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> visitor)
Dispatches the shape to the appropriate
ShapeVisitor method. |
java.util.Optional<MapShape> |
asMapShape() |
static MapShape.Builder |
builder() |
java.util.Map<java.lang.String,MemberShape> |
getAllMembers()
Gets the members of the shape, including mixin members.
|
MemberShape |
getKey()
Get the key member shape of the map.
|
java.util.Optional<MemberShape> |
getMember(java.lang.String memberName)
Get a specific member by name.
|
ShapeType |
getType()
Gets the type of the shape.
|
MemberShape |
getValue()
Get the value member shape of the map.
|
MapShape.Builder |
toBuilder() |
asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asEnumShape, asFloatShape, asIntegerShape, asIntEnumShape, asListShape, asLongShape, asMemberShape, asOperationShape, asResourceShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, equals, expectTrait, findMemberTrait, findTrait, findTrait, getAllTraits, getId, getIntroducedTraits, getMemberNames, getMemberTrait, getMixins, getRequiredMembers, getSourceLocation, getTags, getTrait, hashCode, hasTrait, hasTrait, hasTrait, isBigDecimalShape, isBigIntegerShape, isBlobShape, isBooleanShape, isByteShape, isDocumentShape, isDoubleShape, isEnumShape, isFloatShape, isIntegerShape, isIntEnumShape, isListShape, isLongShape, isMapShape, isMemberShape, isOperationShape, isResourceShape, isServiceShape, isSetShape, isShortShape, isStringShape, isStructureShape, isTimestampShape, isUnionShape, members, shapeToBuilder, toShapeId, toString, validateMemberShapeIds, validateMixinsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparepublic static MapShape.Builder builder()
public MapShape.Builder toBuilder()
toBuilder in interface software.amazon.smithy.utils.ToSmithyBuilder<MapShape>public <R> R accept(ShapeVisitor<R> visitor)
ShapeShapeVisitor method.public java.util.Optional<MapShape> asMapShape()
asMapShape in class ShapeMapShape.public MemberShape getValue()
public MemberShape getKey()
public java.util.Optional<MemberShape> getMember(java.lang.String memberName)
ShapeShapes with no members return an empty Optional.
public java.util.Map<java.lang.String,MemberShape> getAllMembers()
ShapegetAllMembers in class Shape