Class ServiceShape.Builder
- java.lang.Object
-
- software.amazon.smithy.model.shapes.AbstractShapeBuilder<B,S>
-
- software.amazon.smithy.model.shapes.EntityShape.Builder<ServiceShape.Builder,ServiceShape>
-
- software.amazon.smithy.model.shapes.ServiceShape.Builder
-
- All Implemented Interfaces:
FromSourceLocation
,SmithyBuilder<ServiceShape>
- Enclosing class:
- ServiceShape
public static final class ServiceShape.Builder extends EntityShape.Builder<ServiceShape.Builder,ServiceShape>
Builder used to create aServiceShape
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceShape
build()
Creates an immutable object that is created from the properties that have been set on the builder.ShapeType
getShapeType()
Gets the type of shape being built.ServiceShape.Builder
version(java.lang.String version)
-
Methods inherited from class software.amazon.smithy.model.shapes.EntityShape.Builder
addOperation, addOperation, addResource, addResource, clearOperations, clearResources, operations, removeOperation, removeResource, resources
-
Methods inherited from class software.amazon.smithy.model.shapes.AbstractShapeBuilder
addMember, addTrait, addTraits, clearTraits, getId, getSourceLocation, id, id, removeTrait, removeTrait, source, source, traits
-
-
-
-
Method Detail
-
build
public ServiceShape build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
getShapeType
public ShapeType getShapeType()
Description copied from class:AbstractShapeBuilder
Gets the type of shape being built.- Specified by:
getShapeType
in classAbstractShapeBuilder<ServiceShape.Builder,ServiceShape>
- Returns:
- Returns the shape type.
-
version
public ServiceShape.Builder version(java.lang.String version)
-
-