public final class ServiceShape extends EntityShape implements software.amazon.smithy.utils.ToSmithyBuilder<ServiceShape>
service
shape.Modifier and Type | Class and Description |
---|---|
static class |
ServiceShape.Builder
Builder used to create a
ServiceShape . |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(ShapeVisitor<R> visitor)
Dispatches the shape to the appropriate
ShapeVisitor method. |
java.util.Optional<ServiceShape> |
asServiceShape() |
static ServiceShape.Builder |
builder() |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getContextualName(ToShapeId shape)
Gets the contextual name of a shape within the closure.
|
java.util.List<ShapeId> |
getErrors()
Gets a list of the common errors that can be encountered by
every operation in the service.
|
java.util.List<ShapeId> |
getIntroducedErrors()
Gets the list of common errors introduced by the shape and not
inherited from mixins.
|
java.util.Map<ShapeId,java.lang.String> |
getIntroducedRename()
Gets the rename map introduced by the shape and not inherited
from mixins.
|
java.lang.String |
getIntroducedVersion()
Gets the version of the service introduced by the shape and not
inherited from mixins.
|
java.util.Map<ShapeId,java.lang.String> |
getRename() |
ShapeType |
getType()
Gets the type of the shape.
|
java.lang.String |
getVersion()
Get the version of the service.
|
ServiceShape.Builder |
toBuilder() |
getAllOperations, getIntroducedOperations, getIntroducedResources, getOperations, getResources
asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asEnumShape, asFloatShape, asIntegerShape, asIntEnumShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asResourceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, expectTrait, findMemberTrait, findTrait, findTrait, getAllMembers, 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 static ServiceShape.Builder builder()
public ServiceShape.Builder toBuilder()
toBuilder
in interface software.amazon.smithy.utils.ToSmithyBuilder<ServiceShape>
public <R> R accept(ShapeVisitor<R> visitor)
Shape
ShapeVisitor
method.public java.util.Optional<ServiceShape> asServiceShape()
asServiceShape
in class Shape
ServiceShape
.public boolean equals(java.lang.Object other)
equals
in class EntityShape
public java.lang.String getVersion()
public java.lang.String getIntroducedVersion()
public java.util.Map<ShapeId,java.lang.String> getRename()
public java.util.Map<ShapeId,java.lang.String> getIntroducedRename()
public java.util.List<ShapeId> getErrors()
Gets a list of the common errors that can be encountered by every operation in the service.
Each returned ShapeId
must resolve to a
StructureShape
that is targeted by an error trait; however,
this is only guaranteed after a model is validated.
public java.util.List<ShapeId> getIntroducedErrors()
ShapeId
must resolve to a
StructureShape
that is targeted by an error trait; however,
this is only guaranteed after a model is validated.public java.lang.String getContextualName(ToShapeId shape)
If there is a rename property entry for the given shape ID, then the renamed shape name is returned. Otherwise, the name part of the given shape ID is returned, regardless of if the shape exists in the closure of the service.
This is a mirror of ShapeId.getName(ServiceShape)
that serves to make this functionality more discoverable.
shape
- Shape to get the contextual name of.