public final class ServiceShape extends EntityShape implements 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> cases)
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.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()
Take this object and create a builder that contains all of the
current property values of this object.
|
getAllOperations, getOperations, getResources
asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asFloatShape, asIntegerShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asResourceShape, 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, members, shapeToBuilder, toShapeId, toString
public static ServiceShape.Builder builder()
public ServiceShape.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<ServiceShape>
public <R> R accept(ShapeVisitor<R> cases)
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.util.Map<ShapeId,java.lang.String> getRename()
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.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.