public static final class ServiceShape.Builder extends EntityShape.Builder<ServiceShape.Builder,ServiceShape>
ServiceShape.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ServiceShape.Builder |
addError(java.lang.String errorShapeId)
Adds an error to the service that is implicitly bound to every
operation within the closure of the service.
|
ServiceShape.Builder |
addError(ToShapeId errorShapeId)
Adds an error to the service that is implicitly bound to every operation
within the closure of the service.
|
ServiceShape.Builder |
addErrors(java.util.List<ShapeId> errorShapeIds)
Adds errors to the service that are implicitly bound to every operation
within the closure of the service.
|
ServiceShape |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
ServiceShape.Builder |
clearErrors()
Removes all errors.
|
ServiceShape.Builder |
clearRename() |
ServiceShape.Builder |
errors(java.util.Collection<ShapeId> errorShapeIds)
Sets and replaces the errors of the service.
|
ShapeType |
getShapeType()
Gets the type of shape being built.
|
ServiceShape.Builder |
putRename(ShapeId from,
java.lang.String to) |
ServiceShape.Builder |
removeError(ToShapeId errorShapeId)
Removes an error by Shape ID.
|
ServiceShape.Builder |
removeRename(ToShapeId from) |
ServiceShape.Builder |
rename(java.util.Map<ShapeId,java.lang.String> rename) |
ServiceShape.Builder |
version(java.lang.String version) |
addOperation, addOperation, addResource, addResource, clearOperations, clearResources, operations, removeOperation, removeResource, resourcesaddMember, addTrait, addTraits, clearTraits, getId, getSourceLocation, id, id, removeTrait, removeTrait, source, source, traitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequiredStatepublic ServiceShape build()
SmithyBuilderpublic ShapeType getShapeType()
AbstractShapeBuildergetShapeType in class AbstractShapeBuilder<ServiceShape.Builder,ServiceShape>public ServiceShape.Builder version(java.lang.String version)
public ServiceShape.Builder clearRename()
public ServiceShape.Builder rename(java.util.Map<ShapeId,java.lang.String> rename)
public ServiceShape.Builder putRename(ShapeId from, java.lang.String to)
public ServiceShape.Builder removeRename(ToShapeId from)
public ServiceShape.Builder errors(java.util.Collection<ShapeId> errorShapeIds)
errorShapeIds - Error shape IDs to set.public ServiceShape.Builder addError(ToShapeId errorShapeId)
errorShapeId - Error shape ID to add.public ServiceShape.Builder addError(java.lang.String errorShapeId)
errorShapeId - Error shape ID to add.ShapeIdSyntaxException - if the shape ID is invalid.public ServiceShape.Builder addErrors(java.util.List<ShapeId> errorShapeIds)
errorShapeIds - Error shape IDs to add.public ServiceShape.Builder removeError(ToShapeId errorShapeId)
errorShapeId - Error shape ID to remove.public ServiceShape.Builder clearErrors()