public GetSchemaAnalysisRuleRequest withType(AnalysisRuleType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of the schema analysis rule to retrieve. Schema analysis rules are uniquely identified by a combination
of the collaboration, the schema name, and their type.
</p>

@param type
       The type of the schema analysis rule to retrieve. Schema analysis rules are uniquely identified by a
       combination of the collaboration, the schema name, and their type.
@return Returns a reference to this object so that method calls can be chained together.
@see AnalysisRuleType
aws-java-sdk-cleanrooms/src/main/java/com/amazonaws/services/cleanrooms/model/GetSchemaAnalysisRuleRequest.java