com.amazonaws.services.securityhub.model.AwsAutoScalingLaunchConfigurationDetails Maven / Gradle / Ivy
Show all versions of aws-java-sdk-securityhub Show documentation
/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.securityhub.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Details about a launch configuration.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AwsAutoScalingLaunchConfigurationDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
* instances.
*
*/
private Boolean associatePublicIpAddress;
/**
*
* Specifies the block devices for the instance.
*
*/
private java.util.List blockDeviceMappings;
/**
*
* The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
*
*/
private String classicLinkVpcId;
/**
*
* The identifiers of one or more security groups for the VPC that is specified in ClassicLinkVPCId
.
*
*/
private java.util.List classicLinkVpcSecurityGroups;
/**
*
* The creation date and time for the launch configuration.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*/
private String createdTime;
/**
*
* Whether the launch configuration is optimized for Amazon EBS I/O.
*
*/
private Boolean ebsOptimized;
/**
*
* The name or the ARN of the instance profile associated with the IAM role for the instance. The instance profile
* contains the IAM role.
*
*/
private String iamInstanceProfile;
/**
*
* The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
*
*/
private String imageId;
/**
*
* Indicates the type of monitoring for instances in the group.
*
*/
private AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails instanceMonitoring;
/**
*
* The instance type for the instances.
*
*/
private String instanceType;
/**
*
* The identifier of the kernel associated with the AMI.
*
*/
private String kernelId;
/**
*
* The name of the key pair.
*
*/
private String keyName;
/**
*
* The name of the launch configuration.
*
*/
private String launchConfigurationName;
/**
*
* The tenancy of the instance. An instance with dedicated
tenancy runs on isolated, single-tenant
* hardware and can only be launched into a VPC.
*
*/
private String placementTenancy;
/**
*
* The identifier of the RAM disk associated with the AMI.
*
*/
private String ramdiskId;
/**
*
* The security groups to assign to the instances in the Auto Scaling group.
*
*/
private java.util.List securityGroups;
/**
*
* The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
*
*/
private String spotPrice;
/**
*
* The user data to make available to the launched EC2 instances. Must be base64-encoded text.
*
*/
private String userData;
/**
*
* The metadata options for the instances.
*
*/
private AwsAutoScalingLaunchConfigurationMetadataOptions metadataOptions;
/**
*
* For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
* instances.
*
*
* @param associatePublicIpAddress
* For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
* instances.
*/
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
this.associatePublicIpAddress = associatePublicIpAddress;
}
/**
*
* For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
* instances.
*
*
* @return For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
* instances.
*/
public Boolean getAssociatePublicIpAddress() {
return this.associatePublicIpAddress;
}
/**
*
* For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
* instances.
*
*
* @param associatePublicIpAddress
* For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
* instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
setAssociatePublicIpAddress(associatePublicIpAddress);
return this;
}
/**
*
* For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
* instances.
*
*
* @return For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
* instances.
*/
public Boolean isAssociatePublicIpAddress() {
return this.associatePublicIpAddress;
}
/**
*
* Specifies the block devices for the instance.
*
*
* @return Specifies the block devices for the instance.
*/
public java.util.List getBlockDeviceMappings() {
return blockDeviceMappings;
}
/**
*
* Specifies the block devices for the instance.
*
*
* @param blockDeviceMappings
* Specifies the block devices for the instance.
*/
public void setBlockDeviceMappings(java.util.Collection blockDeviceMappings) {
if (blockDeviceMappings == null) {
this.blockDeviceMappings = null;
return;
}
this.blockDeviceMappings = new java.util.ArrayList(blockDeviceMappings);
}
/**
*
* Specifies the block devices for the instance.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setBlockDeviceMappings(java.util.Collection)} or {@link #withBlockDeviceMappings(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param blockDeviceMappings
* Specifies the block devices for the instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withBlockDeviceMappings(AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails... blockDeviceMappings) {
if (this.blockDeviceMappings == null) {
setBlockDeviceMappings(new java.util.ArrayList(blockDeviceMappings.length));
}
for (AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails ele : blockDeviceMappings) {
this.blockDeviceMappings.add(ele);
}
return this;
}
/**
*
* Specifies the block devices for the instance.
*
*
* @param blockDeviceMappings
* Specifies the block devices for the instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withBlockDeviceMappings(
java.util.Collection blockDeviceMappings) {
setBlockDeviceMappings(blockDeviceMappings);
return this;
}
/**
*
* The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
*
*
* @param classicLinkVpcId
* The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
*/
public void setClassicLinkVpcId(String classicLinkVpcId) {
this.classicLinkVpcId = classicLinkVpcId;
}
/**
*
* The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
*
*
* @return The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
*/
public String getClassicLinkVpcId() {
return this.classicLinkVpcId;
}
/**
*
* The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
*
*
* @param classicLinkVpcId
* The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withClassicLinkVpcId(String classicLinkVpcId) {
setClassicLinkVpcId(classicLinkVpcId);
return this;
}
/**
*
* The identifiers of one or more security groups for the VPC that is specified in ClassicLinkVPCId
.
*
*
* @return The identifiers of one or more security groups for the VPC that is specified in
* ClassicLinkVPCId
.
*/
public java.util.List getClassicLinkVpcSecurityGroups() {
return classicLinkVpcSecurityGroups;
}
/**
*
* The identifiers of one or more security groups for the VPC that is specified in ClassicLinkVPCId
.
*
*
* @param classicLinkVpcSecurityGroups
* The identifiers of one or more security groups for the VPC that is specified in
* ClassicLinkVPCId
.
*/
public void setClassicLinkVpcSecurityGroups(java.util.Collection classicLinkVpcSecurityGroups) {
if (classicLinkVpcSecurityGroups == null) {
this.classicLinkVpcSecurityGroups = null;
return;
}
this.classicLinkVpcSecurityGroups = new java.util.ArrayList(classicLinkVpcSecurityGroups);
}
/**
*
* The identifiers of one or more security groups for the VPC that is specified in ClassicLinkVPCId
.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setClassicLinkVpcSecurityGroups(java.util.Collection)} or
* {@link #withClassicLinkVpcSecurityGroups(java.util.Collection)} if you want to override the existing values.
*
*
* @param classicLinkVpcSecurityGroups
* The identifiers of one or more security groups for the VPC that is specified in
* ClassicLinkVPCId
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withClassicLinkVpcSecurityGroups(String... classicLinkVpcSecurityGroups) {
if (this.classicLinkVpcSecurityGroups == null) {
setClassicLinkVpcSecurityGroups(new java.util.ArrayList(classicLinkVpcSecurityGroups.length));
}
for (String ele : classicLinkVpcSecurityGroups) {
this.classicLinkVpcSecurityGroups.add(ele);
}
return this;
}
/**
*
* The identifiers of one or more security groups for the VPC that is specified in ClassicLinkVPCId
.
*
*
* @param classicLinkVpcSecurityGroups
* The identifiers of one or more security groups for the VPC that is specified in
* ClassicLinkVPCId
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withClassicLinkVpcSecurityGroups(java.util.Collection classicLinkVpcSecurityGroups) {
setClassicLinkVpcSecurityGroups(classicLinkVpcSecurityGroups);
return this;
}
/**
*
* The creation date and time for the launch configuration.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*
* @param createdTime
* The creation date and time for the launch configuration.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
*
* The creation date and time for the launch configuration.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*
* @return The creation date and time for the launch configuration.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
*
* The creation date and time for the launch configuration.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*
* @param createdTime
* The creation date and time for the launch configuration.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withCreatedTime(String createdTime) {
setCreatedTime(createdTime);
return this;
}
/**
*
* Whether the launch configuration is optimized for Amazon EBS I/O.
*
*
* @param ebsOptimized
* Whether the launch configuration is optimized for Amazon EBS I/O.
*/
public void setEbsOptimized(Boolean ebsOptimized) {
this.ebsOptimized = ebsOptimized;
}
/**
*
* Whether the launch configuration is optimized for Amazon EBS I/O.
*
*
* @return Whether the launch configuration is optimized for Amazon EBS I/O.
*/
public Boolean getEbsOptimized() {
return this.ebsOptimized;
}
/**
*
* Whether the launch configuration is optimized for Amazon EBS I/O.
*
*
* @param ebsOptimized
* Whether the launch configuration is optimized for Amazon EBS I/O.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withEbsOptimized(Boolean ebsOptimized) {
setEbsOptimized(ebsOptimized);
return this;
}
/**
*
* Whether the launch configuration is optimized for Amazon EBS I/O.
*
*
* @return Whether the launch configuration is optimized for Amazon EBS I/O.
*/
public Boolean isEbsOptimized() {
return this.ebsOptimized;
}
/**
*
* The name or the ARN of the instance profile associated with the IAM role for the instance. The instance profile
* contains the IAM role.
*
*
* @param iamInstanceProfile
* The name or the ARN of the instance profile associated with the IAM role for the instance. The instance
* profile contains the IAM role.
*/
public void setIamInstanceProfile(String iamInstanceProfile) {
this.iamInstanceProfile = iamInstanceProfile;
}
/**
*
* The name or the ARN of the instance profile associated with the IAM role for the instance. The instance profile
* contains the IAM role.
*
*
* @return The name or the ARN of the instance profile associated with the IAM role for the instance. The instance
* profile contains the IAM role.
*/
public String getIamInstanceProfile() {
return this.iamInstanceProfile;
}
/**
*
* The name or the ARN of the instance profile associated with the IAM role for the instance. The instance profile
* contains the IAM role.
*
*
* @param iamInstanceProfile
* The name or the ARN of the instance profile associated with the IAM role for the instance. The instance
* profile contains the IAM role.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withIamInstanceProfile(String iamInstanceProfile) {
setIamInstanceProfile(iamInstanceProfile);
return this;
}
/**
*
* The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
*
*
* @param imageId
* The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
*/
public void setImageId(String imageId) {
this.imageId = imageId;
}
/**
*
* The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
*
*
* @return The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
*/
public String getImageId() {
return this.imageId;
}
/**
*
* The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
*
*
* @param imageId
* The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withImageId(String imageId) {
setImageId(imageId);
return this;
}
/**
*
* Indicates the type of monitoring for instances in the group.
*
*
* @param instanceMonitoring
* Indicates the type of monitoring for instances in the group.
*/
public void setInstanceMonitoring(AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails instanceMonitoring) {
this.instanceMonitoring = instanceMonitoring;
}
/**
*
* Indicates the type of monitoring for instances in the group.
*
*
* @return Indicates the type of monitoring for instances in the group.
*/
public AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails getInstanceMonitoring() {
return this.instanceMonitoring;
}
/**
*
* Indicates the type of monitoring for instances in the group.
*
*
* @param instanceMonitoring
* Indicates the type of monitoring for instances in the group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withInstanceMonitoring(AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails instanceMonitoring) {
setInstanceMonitoring(instanceMonitoring);
return this;
}
/**
*
* The instance type for the instances.
*
*
* @param instanceType
* The instance type for the instances.
*/
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
/**
*
* The instance type for the instances.
*
*
* @return The instance type for the instances.
*/
public String getInstanceType() {
return this.instanceType;
}
/**
*
* The instance type for the instances.
*
*
* @param instanceType
* The instance type for the instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withInstanceType(String instanceType) {
setInstanceType(instanceType);
return this;
}
/**
*
* The identifier of the kernel associated with the AMI.
*
*
* @param kernelId
* The identifier of the kernel associated with the AMI.
*/
public void setKernelId(String kernelId) {
this.kernelId = kernelId;
}
/**
*
* The identifier of the kernel associated with the AMI.
*
*
* @return The identifier of the kernel associated with the AMI.
*/
public String getKernelId() {
return this.kernelId;
}
/**
*
* The identifier of the kernel associated with the AMI.
*
*
* @param kernelId
* The identifier of the kernel associated with the AMI.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withKernelId(String kernelId) {
setKernelId(kernelId);
return this;
}
/**
*
* The name of the key pair.
*
*
* @param keyName
* The name of the key pair.
*/
public void setKeyName(String keyName) {
this.keyName = keyName;
}
/**
*
* The name of the key pair.
*
*
* @return The name of the key pair.
*/
public String getKeyName() {
return this.keyName;
}
/**
*
* The name of the key pair.
*
*
* @param keyName
* The name of the key pair.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withKeyName(String keyName) {
setKeyName(keyName);
return this;
}
/**
*
* The name of the launch configuration.
*
*
* @param launchConfigurationName
* The name of the launch configuration.
*/
public void setLaunchConfigurationName(String launchConfigurationName) {
this.launchConfigurationName = launchConfigurationName;
}
/**
*
* The name of the launch configuration.
*
*
* @return The name of the launch configuration.
*/
public String getLaunchConfigurationName() {
return this.launchConfigurationName;
}
/**
*
* The name of the launch configuration.
*
*
* @param launchConfigurationName
* The name of the launch configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withLaunchConfigurationName(String launchConfigurationName) {
setLaunchConfigurationName(launchConfigurationName);
return this;
}
/**
*
* The tenancy of the instance. An instance with dedicated
tenancy runs on isolated, single-tenant
* hardware and can only be launched into a VPC.
*
*
* @param placementTenancy
* The tenancy of the instance. An instance with dedicated
tenancy runs on isolated,
* single-tenant hardware and can only be launched into a VPC.
*/
public void setPlacementTenancy(String placementTenancy) {
this.placementTenancy = placementTenancy;
}
/**
*
* The tenancy of the instance. An instance with dedicated
tenancy runs on isolated, single-tenant
* hardware and can only be launched into a VPC.
*
*
* @return The tenancy of the instance. An instance with dedicated
tenancy runs on isolated,
* single-tenant hardware and can only be launched into a VPC.
*/
public String getPlacementTenancy() {
return this.placementTenancy;
}
/**
*
* The tenancy of the instance. An instance with dedicated
tenancy runs on isolated, single-tenant
* hardware and can only be launched into a VPC.
*
*
* @param placementTenancy
* The tenancy of the instance. An instance with dedicated
tenancy runs on isolated,
* single-tenant hardware and can only be launched into a VPC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withPlacementTenancy(String placementTenancy) {
setPlacementTenancy(placementTenancy);
return this;
}
/**
*
* The identifier of the RAM disk associated with the AMI.
*
*
* @param ramdiskId
* The identifier of the RAM disk associated with the AMI.
*/
public void setRamdiskId(String ramdiskId) {
this.ramdiskId = ramdiskId;
}
/**
*
* The identifier of the RAM disk associated with the AMI.
*
*
* @return The identifier of the RAM disk associated with the AMI.
*/
public String getRamdiskId() {
return this.ramdiskId;
}
/**
*
* The identifier of the RAM disk associated with the AMI.
*
*
* @param ramdiskId
* The identifier of the RAM disk associated with the AMI.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withRamdiskId(String ramdiskId) {
setRamdiskId(ramdiskId);
return this;
}
/**
*
* The security groups to assign to the instances in the Auto Scaling group.
*
*
* @return The security groups to assign to the instances in the Auto Scaling group.
*/
public java.util.List getSecurityGroups() {
return securityGroups;
}
/**
*
* The security groups to assign to the instances in the Auto Scaling group.
*
*
* @param securityGroups
* The security groups to assign to the instances in the Auto Scaling group.
*/
public void setSecurityGroups(java.util.Collection securityGroups) {
if (securityGroups == null) {
this.securityGroups = null;
return;
}
this.securityGroups = new java.util.ArrayList(securityGroups);
}
/**
*
* The security groups to assign to the instances in the Auto Scaling group.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param securityGroups
* The security groups to assign to the instances in the Auto Scaling group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withSecurityGroups(String... securityGroups) {
if (this.securityGroups == null) {
setSecurityGroups(new java.util.ArrayList(securityGroups.length));
}
for (String ele : securityGroups) {
this.securityGroups.add(ele);
}
return this;
}
/**
*
* The security groups to assign to the instances in the Auto Scaling group.
*
*
* @param securityGroups
* The security groups to assign to the instances in the Auto Scaling group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withSecurityGroups(java.util.Collection securityGroups) {
setSecurityGroups(securityGroups);
return this;
}
/**
*
* The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
*
*
* @param spotPrice
* The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
*/
public void setSpotPrice(String spotPrice) {
this.spotPrice = spotPrice;
}
/**
*
* The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
*
*
* @return The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
*/
public String getSpotPrice() {
return this.spotPrice;
}
/**
*
* The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
*
*
* @param spotPrice
* The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withSpotPrice(String spotPrice) {
setSpotPrice(spotPrice);
return this;
}
/**
*
* The user data to make available to the launched EC2 instances. Must be base64-encoded text.
*
*
* @param userData
* The user data to make available to the launched EC2 instances. Must be base64-encoded text.
*/
public void setUserData(String userData) {
this.userData = userData;
}
/**
*
* The user data to make available to the launched EC2 instances. Must be base64-encoded text.
*
*
* @return The user data to make available to the launched EC2 instances. Must be base64-encoded text.
*/
public String getUserData() {
return this.userData;
}
/**
*
* The user data to make available to the launched EC2 instances. Must be base64-encoded text.
*
*
* @param userData
* The user data to make available to the launched EC2 instances. Must be base64-encoded text.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withUserData(String userData) {
setUserData(userData);
return this;
}
/**
*
* The metadata options for the instances.
*
*
* @param metadataOptions
* The metadata options for the instances.
*/
public void setMetadataOptions(AwsAutoScalingLaunchConfigurationMetadataOptions metadataOptions) {
this.metadataOptions = metadataOptions;
}
/**
*
* The metadata options for the instances.
*
*
* @return The metadata options for the instances.
*/
public AwsAutoScalingLaunchConfigurationMetadataOptions getMetadataOptions() {
return this.metadataOptions;
}
/**
*
* The metadata options for the instances.
*
*
* @param metadataOptions
* The metadata options for the instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsAutoScalingLaunchConfigurationDetails withMetadataOptions(AwsAutoScalingLaunchConfigurationMetadataOptions metadataOptions) {
setMetadataOptions(metadataOptions);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAssociatePublicIpAddress() != null)
sb.append("AssociatePublicIpAddress: ").append(getAssociatePublicIpAddress()).append(",");
if (getBlockDeviceMappings() != null)
sb.append("BlockDeviceMappings: ").append(getBlockDeviceMappings()).append(",");
if (getClassicLinkVpcId() != null)
sb.append("ClassicLinkVpcId: ").append(getClassicLinkVpcId()).append(",");
if (getClassicLinkVpcSecurityGroups() != null)
sb.append("ClassicLinkVpcSecurityGroups: ").append(getClassicLinkVpcSecurityGroups()).append(",");
if (getCreatedTime() != null)
sb.append("CreatedTime: ").append(getCreatedTime()).append(",");
if (getEbsOptimized() != null)
sb.append("EbsOptimized: ").append(getEbsOptimized()).append(",");
if (getIamInstanceProfile() != null)
sb.append("IamInstanceProfile: ").append(getIamInstanceProfile()).append(",");
if (getImageId() != null)
sb.append("ImageId: ").append(getImageId()).append(",");
if (getInstanceMonitoring() != null)
sb.append("InstanceMonitoring: ").append(getInstanceMonitoring()).append(",");
if (getInstanceType() != null)
sb.append("InstanceType: ").append(getInstanceType()).append(",");
if (getKernelId() != null)
sb.append("KernelId: ").append(getKernelId()).append(",");
if (getKeyName() != null)
sb.append("KeyName: ").append(getKeyName()).append(",");
if (getLaunchConfigurationName() != null)
sb.append("LaunchConfigurationName: ").append(getLaunchConfigurationName()).append(",");
if (getPlacementTenancy() != null)
sb.append("PlacementTenancy: ").append(getPlacementTenancy()).append(",");
if (getRamdiskId() != null)
sb.append("RamdiskId: ").append(getRamdiskId()).append(",");
if (getSecurityGroups() != null)
sb.append("SecurityGroups: ").append(getSecurityGroups()).append(",");
if (getSpotPrice() != null)
sb.append("SpotPrice: ").append(getSpotPrice()).append(",");
if (getUserData() != null)
sb.append("UserData: ").append(getUserData()).append(",");
if (getMetadataOptions() != null)
sb.append("MetadataOptions: ").append(getMetadataOptions());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AwsAutoScalingLaunchConfigurationDetails == false)
return false;
AwsAutoScalingLaunchConfigurationDetails other = (AwsAutoScalingLaunchConfigurationDetails) obj;
if (other.getAssociatePublicIpAddress() == null ^ this.getAssociatePublicIpAddress() == null)
return false;
if (other.getAssociatePublicIpAddress() != null && other.getAssociatePublicIpAddress().equals(this.getAssociatePublicIpAddress()) == false)
return false;
if (other.getBlockDeviceMappings() == null ^ this.getBlockDeviceMappings() == null)
return false;
if (other.getBlockDeviceMappings() != null && other.getBlockDeviceMappings().equals(this.getBlockDeviceMappings()) == false)
return false;
if (other.getClassicLinkVpcId() == null ^ this.getClassicLinkVpcId() == null)
return false;
if (other.getClassicLinkVpcId() != null && other.getClassicLinkVpcId().equals(this.getClassicLinkVpcId()) == false)
return false;
if (other.getClassicLinkVpcSecurityGroups() == null ^ this.getClassicLinkVpcSecurityGroups() == null)
return false;
if (other.getClassicLinkVpcSecurityGroups() != null && other.getClassicLinkVpcSecurityGroups().equals(this.getClassicLinkVpcSecurityGroups()) == false)
return false;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false)
return false;
if (other.getEbsOptimized() == null ^ this.getEbsOptimized() == null)
return false;
if (other.getEbsOptimized() != null && other.getEbsOptimized().equals(this.getEbsOptimized()) == false)
return false;
if (other.getIamInstanceProfile() == null ^ this.getIamInstanceProfile() == null)
return false;
if (other.getIamInstanceProfile() != null && other.getIamInstanceProfile().equals(this.getIamInstanceProfile()) == false)
return false;
if (other.getImageId() == null ^ this.getImageId() == null)
return false;
if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false)
return false;
if (other.getInstanceMonitoring() == null ^ this.getInstanceMonitoring() == null)
return false;
if (other.getInstanceMonitoring() != null && other.getInstanceMonitoring().equals(this.getInstanceMonitoring()) == false)
return false;
if (other.getInstanceType() == null ^ this.getInstanceType() == null)
return false;
if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false)
return false;
if (other.getKernelId() == null ^ this.getKernelId() == null)
return false;
if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == false)
return false;
if (other.getKeyName() == null ^ this.getKeyName() == null)
return false;
if (other.getKeyName() != null && other.getKeyName().equals(this.getKeyName()) == false)
return false;
if (other.getLaunchConfigurationName() == null ^ this.getLaunchConfigurationName() == null)
return false;
if (other.getLaunchConfigurationName() != null && other.getLaunchConfigurationName().equals(this.getLaunchConfigurationName()) == false)
return false;
if (other.getPlacementTenancy() == null ^ this.getPlacementTenancy() == null)
return false;
if (other.getPlacementTenancy() != null && other.getPlacementTenancy().equals(this.getPlacementTenancy()) == false)
return false;
if (other.getRamdiskId() == null ^ this.getRamdiskId() == null)
return false;
if (other.getRamdiskId() != null && other.getRamdiskId().equals(this.getRamdiskId()) == false)
return false;
if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == null)
return false;
if (other.getSecurityGroups() != null && other.getSecurityGroups().equals(this.getSecurityGroups()) == false)
return false;
if (other.getSpotPrice() == null ^ this.getSpotPrice() == null)
return false;
if (other.getSpotPrice() != null && other.getSpotPrice().equals(this.getSpotPrice()) == false)
return false;
if (other.getUserData() == null ^ this.getUserData() == null)
return false;
if (other.getUserData() != null && other.getUserData().equals(this.getUserData()) == false)
return false;
if (other.getMetadataOptions() == null ^ this.getMetadataOptions() == null)
return false;
if (other.getMetadataOptions() != null && other.getMetadataOptions().equals(this.getMetadataOptions()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAssociatePublicIpAddress() == null) ? 0 : getAssociatePublicIpAddress().hashCode());
hashCode = prime * hashCode + ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode());
hashCode = prime * hashCode + ((getClassicLinkVpcId() == null) ? 0 : getClassicLinkVpcId().hashCode());
hashCode = prime * hashCode + ((getClassicLinkVpcSecurityGroups() == null) ? 0 : getClassicLinkVpcSecurityGroups().hashCode());
hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
hashCode = prime * hashCode + ((getEbsOptimized() == null) ? 0 : getEbsOptimized().hashCode());
hashCode = prime * hashCode + ((getIamInstanceProfile() == null) ? 0 : getIamInstanceProfile().hashCode());
hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode());
hashCode = prime * hashCode + ((getInstanceMonitoring() == null) ? 0 : getInstanceMonitoring().hashCode());
hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode());
hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode());
hashCode = prime * hashCode + ((getKeyName() == null) ? 0 : getKeyName().hashCode());
hashCode = prime * hashCode + ((getLaunchConfigurationName() == null) ? 0 : getLaunchConfigurationName().hashCode());
hashCode = prime * hashCode + ((getPlacementTenancy() == null) ? 0 : getPlacementTenancy().hashCode());
hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
hashCode = prime * hashCode + ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode());
hashCode = prime * hashCode + ((getSpotPrice() == null) ? 0 : getSpotPrice().hashCode());
hashCode = prime * hashCode + ((getUserData() == null) ? 0 : getUserData().hashCode());
hashCode = prime * hashCode + ((getMetadataOptions() == null) ? 0 : getMetadataOptions().hashCode());
return hashCode;
}
@Override
public AwsAutoScalingLaunchConfigurationDetails clone() {
try {
return (AwsAutoScalingLaunchConfigurationDetails) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.securityhub.model.transform.AwsAutoScalingLaunchConfigurationDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}