public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withExcludedInstanceTypes(String... excludedInstanceTypes) {
        if (this.excludedInstanceTypes == null) {
            setExcludedInstanceTypes(new java.util.ArrayList<String>(excludedInstanceTypes.length));
        }
        for (String ele : excludedInstanceTypes) {
            this.excludedInstanceTypes.add(ele);
        }
        return this;
    }
<p>
The instance types to exclude.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setExcludedInstanceTypes(java.util.Collection)} or
{@link #withExcludedInstanceTypes(java.util.Collection)} if you want to override the existing values.
</p>

@param excludedInstanceTypes
       The instance types to exclude.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEc2LaunchTemplateDataInstanceRequirementsDetails.java