public void setInstanceGenerations(java.util.Collection<String> instanceGenerations) {
        if (instanceGenerations == null) {
            this.instanceGenerations = null;
            return;
        }

        this.instanceGenerations = new java.util.ArrayList<String>(instanceGenerations);
    }
<p>
Indicates whether current or previous generation instance types are included.
</p>

@param instanceGenerations
       Indicates whether current or previous generation instance types are included.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEc2LaunchTemplateDataInstanceRequirementsDetails.java