public Theme withType(ThemeType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of theme, based on how it was created. Valid values include: <code>QUICKSIGHT</code> and
<code>CUSTOM</code>.
</p>

@param type
       The type of theme, based on how it was created. Valid values include: <code>QUICKSIGHT</code> and
       <code>CUSTOM</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ThemeType
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/Theme.java