public ControlCondition withType(ControlConditionType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs,
so the only valid value is <code>CLOUDWATCH</code>.
</p>

@param type
       The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice
       runs, so the only valid value is <code>CLOUDWATCH</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ControlConditionType
aws-java-sdk-arczonalshift/src/main/java/com/amazonaws/services/arczonalshift/model/ControlCondition.java