public final class IntEnumShape extends IntegerShape
Modifier and Type | Class and Description |
---|---|
static class |
IntEnumShape.Builder
Builder used to create a
IntegerShape . |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(ShapeVisitor<R> cases)
Dispatches the shape to the appropriate
ShapeVisitor method. |
java.util.Optional<IntEnumShape> |
asIntEnumShape() |
static IntEnumShape.Builder |
builder() |
java.util.Map<java.lang.String,MemberShape> |
getAllMembers()
Gets the members of the shape, including mixin members.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getEnumValues()
Gets a map of enum member names to their corresponding values.
|
ShapeType |
getType()
Gets the type of the shape.
|
IntEnumShape.Builder |
toBuilder() |
asIntegerShape
asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asEnumShape, asFloatShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asResourceShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, equals, expectTrait, findMemberTrait, findTrait, findTrait, getAllTraits, getId, getIntroducedTraits, getMember, getMemberNames, getMemberTrait, getMixins, getRequiredMixinMember, 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, validateMixins
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compare
public java.util.Map<java.lang.String,java.lang.Integer> getEnumValues()
public java.util.Map<java.lang.String,MemberShape> getAllMembers()
getAllMembers
in class Shape
public static IntEnumShape.Builder builder()
public IntEnumShape.Builder toBuilder()
toBuilder
in interface software.amazon.smithy.utils.ToSmithyBuilder<IntegerShape>
toBuilder
in class IntegerShape
public <R> R accept(ShapeVisitor<R> cases)
Shape
ShapeVisitor
method.accept
in class IntegerShape
R
- Return type of the accept.cases
- ShapeVisitor to use.public java.util.Optional<IntEnumShape> asIntEnumShape()
asIntEnumShape
in class Shape
IntEnumShape
.public ShapeType getType()
Shape
getType
in class IntegerShape