Class FlattenNamespaces.Config
java.lang.Object
software.amazon.smithy.build.transforms.FlattenNamespaces.Config
- Enclosing class:
- FlattenNamespaces
flattenNamespaces
configuration settings.-
Constructor Summary
-
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.void
setIncludeTagged
(Set<String> tags) Sets the set of tags that are retained in the model.void
setNamespace
(String namespace) Sets the target namespace that existing namespaces will be flattened into.void
setService
(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
Sets the service ShapeId that will be flattened into the target namespace.- Parameters:
service
- The ID of the service.
-
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.
-