Class FlattenNamespaces.Config
java.lang.Object
software.amazon.smithy.build.transforms.FlattenNamespaces.Config
- Enclosing class:
- FlattenNamespaces
flattenNamespaces configuration settings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the set of tags that are retained in the model.Gets the target namespace that existing namespaces will be flattened into.software.amazon.smithy.model.shapes.ShapeIdvoidsetIncludeTagged(Set<String> tags) Sets the set of tags that are retained in the model.voidsetNamespace(String namespace) Sets the target namespace that existing namespaces will be flattened into.voidsetService(software.amazon.smithy.model.shapes.ShapeId service) Sets the service ShapeId that will be flattened into the target namespace.
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
setNamespace
Sets the target namespace that existing namespaces will be flattened into.- Parameters:
namespace- The target namespace to use in the model.
-
getNamespace
Gets the target namespace that existing namespaces will be flattened into.- Returns:
- the target namespace to be used in the model.
-
setService
public void setService(software.amazon.smithy.model.shapes.ShapeId service) Sets the service ShapeId that will be flattened into the target namespace.- Parameters:
service- The ID of the service.
-
getService
public software.amazon.smithy.model.shapes.ShapeId getService()- Returns:
- Gets the service shape ID of the service that will have its shape namespaces updated.
-
setIncludeTagged
Sets the set of tags that are retained in the model.- Parameters:
tags- The tags to retain in the model.
-
getIncludeTagged
Gets the set of tags that are retained in the model.- Returns:
- Returns the tags to retain.
-