public HyperParameterSpecification withIsRequired(Boolean isRequired) {
        setIsRequired(isRequired);
        return this;
    }
<p>
Indicates whether this hyperparameter is required.
</p>

@param isRequired
       Indicates whether this hyperparameter is required.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/HyperParameterSpecification.java