Class FlattenNamespaces.Config

  • Enclosing class:
    FlattenNamespaces

    public static final class FlattenNamespaces.Config
    extends java.lang.Object
    removeTraitShapes configuration settings.
    • Constructor Summary

      Constructors 
      Constructor Description
      Config()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getIncludeTagged()
      Gets the set of tags that are retained in the model.
      java.lang.String getNamespace()
      Gets the target namespace that existing namespaces will be flattened into.
      software.amazon.smithy.model.shapes.ShapeId getService()  
      void setIncludeTagged​(java.util.Set<java.lang.String> tags)
      Sets the set of tags that are retained in the model.
      void setNamespace​(java.lang.String namespace)
      Sets the target namespace that existing namespaces will be flattened into.
      void setService​(software.amazon.smithy.model.shapes.ShapeId service)
      Sets the service ShapeId that will be flattened into the target namespace.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Config

        public Config()
    • Method Detail

      • setNamespace

        public void setNamespace​(java.lang.String namespace)
        Sets the target namespace that existing namespaces will be flattened into.
        Parameters:
        namespace - The target namespace to use in the model.
      • getNamespace

        public java.lang.String 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

        public void setIncludeTagged​(java.util.Set<java.lang.String> tags)
        Sets the set of tags that are retained in the model.
        Parameters:
        tags - The tags to retain in the model.
      • getIncludeTagged

        public java.util.Set<java.lang.String> getIncludeTagged()
        Gets the set of tags that are retained in the model.
        Returns:
        Returns the tags to retain.