public DataSourceErrorInfo withType(DataSourceErrorInfoType type) {
        this.type = type.toString();
        return this;
    }
<p>
Error type.
</p>

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