public NamespaceSummary withType(NamespaceType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of the namespace, either public or private.
</p>

@param type
       The type of the namespace, either public or private.
@return Returns a reference to this object so that method calls can be chained together.
@see NamespaceType
aws-java-sdk-servicediscovery/src/main/java/com/amazonaws/services/servicediscovery/model/NamespaceSummary.java