public InferenceSpecification withSupportedRealtimeInferenceInstanceTypes(String... supportedRealtimeInferenceInstanceTypes) {
        if (this.supportedRealtimeInferenceInstanceTypes == null) {
            setSupportedRealtimeInferenceInstanceTypes(new java.util.ArrayList<String>(supportedRealtimeInferenceInstanceTypes.length));
        }
        for (String ele : supportedRealtimeInferenceInstanceTypes) {
            this.supportedRealtimeInferenceInstanceTypes.add(ele);
        }
        return this;
    }
<p>
A list of the instance types that are used to generate inferences in real-time.
</p>
<p>
This parameter is required for unversioned models, and optional for versioned models.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSupportedRealtimeInferenceInstanceTypes(java.util.Collection)} or
{@link #withSupportedRealtimeInferenceInstanceTypes(java.util.Collection)} if you want to override the existing
values.
</p>

@param supportedRealtimeInferenceInstanceTypes
       A list of the instance types that are used to generate inferences in real-time.</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 ProductionVariantInstanceType
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/InferenceSpecification.java