public InferenceSpecification withSupportedTransformInstanceTypes(TransformInstanceType... supportedTransformInstanceTypes) {
        java.util.ArrayList<String> supportedTransformInstanceTypesCopy = new java.util.ArrayList<String>(supportedTransformInstanceTypes.length);
        for (TransformInstanceType value : supportedTransformInstanceTypes) {
            supportedTransformInstanceTypesCopy.add(value.toString());
        }
        if (getSupportedTransformInstanceTypes() == null) {
            setSupportedTransformInstanceTypes(supportedTransformInstanceTypesCopy);
        } else {
            getSupportedTransformInstanceTypes().addAll(supportedTransformInstanceTypesCopy);
        }
        return this;
    }
<p>
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
</p>
<p>
This parameter is required for unversioned models, and optional for versioned models.
</p>

@param supportedTransformInstanceTypes
       A list of the instance types on which a transformation job can be run or on which an endpoint can be
       deployed.</p>
       <p>
       This parameter is required for unversioned models, and optional for versioned models.
@return Returns a reference to this object so that method calls can be chained together.
@see TransformInstanceType
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/InferenceSpecification.java