public NamespaceError withType(NamespaceErrorType type) {
        this.type = type.toString();
        return this;
    }
<p>
The error type.
</p>

@param type
       The error type.
@return Returns a reference to this object so that method calls can be chained together.
@see NamespaceErrorType
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/NamespaceError.java