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 a 
ServiceShape.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAdds an error to the service that is implicitly bound to every operation within the closure of the service.Adds an error to the service that is implicitly bound to every operation within the closure of the service.Adds errors to the service that are implicitly bound to every operation within the closure of the service.build()Creates an immutable object that is created from the properties that have been set on the builder.Removes all errors.errors(Collection<ShapeId> errorShapeIds) Sets and replaces the errors of the service.Removes mixins from a shape and flattens them into the shape.Gets the type of shape being built.removeError(ToShapeId errorShapeId) Removes an error by Shape ID.removeRename(ToShapeId from) Methods inherited from class software.amazon.smithy.model.shapes.EntityShape.BuilderaddOperation, addOperation, addResource, addResource, clearOperations, clearResources, operations, removeOperation, removeResource, resourcesMethods inherited from class software.amazon.smithy.model.shapes.AbstractShapeBuilderaddMember, addMixin, addTrait, addTraits, clearMembers, clearMixins, clearTraits, getAllTraits, getId, getMember, getSourceLocation, id, id, mixins, removeMixin, removeTrait, removeTrait, source, source, traits
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
buildDescription copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
 
- 
getShapeTypeDescription copied from class:AbstractShapeBuilderGets the type of shape being built.- Specified by:
- getShapeTypein class- AbstractShapeBuilder<ServiceShape.Builder,- ServiceShape> 
- Returns:
- Returns the shape type.
 
- 
version
- 
clearRename
- 
rename
- 
putRename
- 
removeRename
- 
errorsSets and replaces the errors of the service. Each error is implicitly bound to every operation within the closure of the service.- Parameters:
- errorShapeIds- Error shape IDs to set.
- Returns:
- Returns the builder.
 
- 
addErrorAdds an error to the service that is implicitly bound to every operation within the closure of the service.- Parameters:
- errorShapeId- Error shape ID to add.
- Returns:
- Returns the builder.
 
- 
addErrorAdds an error to the service that is implicitly bound to every operation within the closure of the service.- Parameters:
- errorShapeId- Error shape ID to add.
- Returns:
- Returns the builder.
- Throws:
- ShapeIdSyntaxException- if the shape ID is invalid.
 
- 
addErrorsAdds errors to the service that are implicitly bound to every operation within the closure of the service.- Parameters:
- errorShapeIds- Error shape IDs to add.
- Returns:
- Returns the builder.
 
- 
removeErrorRemoves an error by Shape ID.- Parameters:
- errorShapeId- Error shape ID to remove.
- Returns:
- Returns the builder.
 
- 
clearErrorsRemoves all errors.- Returns:
- Returns the builder.
 
- 
flattenMixinsDescription copied from class:AbstractShapeBuilderRemoves mixins from a shape and flattens them into the shape.Flattening a mixin into a shape copies the traits and members of a mixin onto the shape, effectively resulting in the same shape but with no trace of the mixin relationship. - Overrides:
- flattenMixinsin class- EntityShape.Builder<ServiceShape.Builder,- ServiceShape> 
- Returns:
- Returns the updated builder.
 
 
-