public AwsEc2LaunchTemplateDataInstanceRequirementsDetails withInstanceGenerations(java.util.Collection<String> instanceGenerations) {
        setInstanceGenerations(instanceGenerations);
        return this;
    }
<p>
Indicates whether current or previous generation instance types are included.
</p>

@param instanceGenerations
       Indicates whether current or previous generation instance types are included.
@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