Class ServiceShape
- java.lang.Object
-
- software.amazon.smithy.model.shapes.Shape
-
- software.amazon.smithy.model.shapes.EntityShape
-
- software.amazon.smithy.model.shapes.ServiceShape
-
- All Implemented Interfaces:
java.lang.Comparable<Shape>
,FromSourceLocation
,ToShapeId
,Tagged
,ToSmithyBuilder<ServiceShape>
public final class ServiceShape extends EntityShape implements ToSmithyBuilder<ServiceShape>
Represents aservice
shape.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceShape.Builder
Builder used to create aServiceShape
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(ShapeVisitor<R> cases)
Dispatches the shape to the appropriateShapeVisitor
method.java.util.Optional<ServiceShape>
asServiceShape()
static ServiceShape.Builder
builder()
boolean
equals(java.lang.Object other)
java.lang.String
getVersion()
ServiceShape.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.-
Methods inherited from class software.amazon.smithy.model.shapes.EntityShape
getAllOperations, getOperations, getResources
-
Methods inherited from class software.amazon.smithy.model.shapes.Shape
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, getType, 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
-
-
-
-
Method Detail
-
builder
public static ServiceShape.Builder builder()
-
toBuilder
public ServiceShape.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<ServiceShape>
- Returns:
- a builder for type T
-
accept
public <R> R accept(ShapeVisitor<R> cases)
Description copied from class:Shape
Dispatches the shape to the appropriateShapeVisitor
method.
-
asServiceShape
public java.util.Optional<ServiceShape> asServiceShape()
- Overrides:
asServiceShape
in classShape
- Returns:
- Optionally returns the shape as a
ServiceShape
.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classEntityShape
-
getVersion
public java.lang.String getVersion()
- Returns:
- The version of the service.
-
-