Class LaunchConfiguration

    • Constructor Detail

      • LaunchConfiguration

        public LaunchConfiguration()
    • Method Detail

      • setLaunchConfigurationName

        public void setLaunchConfigurationName​(String launchConfigurationName)

        The name of the launch configuration.

        Parameters:
        launchConfigurationName - The name of the launch configuration.
      • getLaunchConfigurationName

        public String getLaunchConfigurationName()

        The name of the launch configuration.

        Returns:
        The name of the launch configuration.
      • withLaunchConfigurationName

        public LaunchConfiguration withLaunchConfigurationName​(String launchConfigurationName)

        The name of the launch configuration.

        Parameters:
        launchConfigurationName - The name of the launch configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLaunchConfigurationARN

        public void setLaunchConfigurationARN​(String launchConfigurationARN)

        The Amazon Resource Name (ARN) of the launch configuration.

        Parameters:
        launchConfigurationARN - The Amazon Resource Name (ARN) of the launch configuration.
      • getLaunchConfigurationARN

        public String getLaunchConfigurationARN()

        The Amazon Resource Name (ARN) of the launch configuration.

        Returns:
        The Amazon Resource Name (ARN) of the launch configuration.
      • withLaunchConfigurationARN

        public LaunchConfiguration withLaunchConfigurationARN​(String launchConfigurationARN)

        The Amazon Resource Name (ARN) of the launch configuration.

        Parameters:
        launchConfigurationARN - The Amazon Resource Name (ARN) of the launch configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setImageId

        public void setImageId​(String imageId)

        The ID of the Amazon Machine Image (AMI).

        Parameters:
        imageId - The ID of the Amazon Machine Image (AMI).
      • getImageId

        public String getImageId()

        The ID of the Amazon Machine Image (AMI).

        Returns:
        The ID of the Amazon Machine Image (AMI).
      • withImageId

        public LaunchConfiguration withImageId​(String imageId)

        The ID of the Amazon Machine Image (AMI).

        Parameters:
        imageId - The ID of the Amazon Machine Image (AMI).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setKeyName

        public void setKeyName​(String keyName)

        The name of the key pair.

        Parameters:
        keyName - The name of the key pair.
      • getKeyName

        public String getKeyName()

        The name of the key pair.

        Returns:
        The name of the key pair.
      • withKeyName

        public LaunchConfiguration withKeyName​(String keyName)

        The name of the key pair.

        Parameters:
        keyName - The name of the key pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getSecurityGroups

        public List<String> getSecurityGroups()

        The security groups to associate with the instances.

        Returns:
        The security groups to associate with the instances.
      • setSecurityGroups

        public void setSecurityGroups​(Collection<String> securityGroups)

        The security groups to associate with the instances.

        Parameters:
        securityGroups - The security groups to associate with the instances.
      • withSecurityGroups

        public LaunchConfiguration withSecurityGroups​(String... securityGroups)

        The security groups to associate with the instances.

        NOTE: This method appends the values to the existing list (if any). Use setSecurityGroups(java.util.Collection) or withSecurityGroups(java.util.Collection) if you want to override the existing values.

        Parameters:
        securityGroups - The security groups to associate with the instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withSecurityGroups

        public LaunchConfiguration withSecurityGroups​(Collection<String> securityGroups)

        The security groups to associate with the instances.

        Parameters:
        securityGroups - The security groups to associate with the instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setClassicLinkVPCId

        public void setClassicLinkVPCId​(String classicLinkVPCId)

        The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

        Parameters:
        classicLinkVPCId - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
      • getClassicLinkVPCId

        public String getClassicLinkVPCId()

        The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

        Returns:
        The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
      • withClassicLinkVPCId

        public LaunchConfiguration withClassicLinkVPCId​(String classicLinkVPCId)

        The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

        Parameters:
        classicLinkVPCId - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getClassicLinkVPCSecurityGroups

        public List<String> getClassicLinkVPCSecurityGroups()

        The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

        Returns:
        The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
      • setClassicLinkVPCSecurityGroups

        public void setClassicLinkVPCSecurityGroups​(Collection<String> classicLinkVPCSecurityGroups)

        The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

        Parameters:
        classicLinkVPCSecurityGroups - The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
      • withClassicLinkVPCSecurityGroups

        public LaunchConfiguration withClassicLinkVPCSecurityGroups​(String... classicLinkVPCSecurityGroups)

        The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

        NOTE: This method appends the values to the existing list (if any). Use setClassicLinkVPCSecurityGroups(java.util.Collection) or withClassicLinkVPCSecurityGroups(java.util.Collection) if you want to override the existing values.

        Parameters:
        classicLinkVPCSecurityGroups - The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withClassicLinkVPCSecurityGroups

        public LaunchConfiguration withClassicLinkVPCSecurityGroups​(Collection<String> classicLinkVPCSecurityGroups)

        The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

        Parameters:
        classicLinkVPCSecurityGroups - The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setUserData

        public void setUserData​(String userData)

        The user data available to the instances.

        Parameters:
        userData - The user data available to the instances.
      • getUserData

        public String getUserData()

        The user data available to the instances.

        Returns:
        The user data available to the instances.
      • withUserData

        public LaunchConfiguration withUserData​(String userData)

        The user data available to the instances.

        Parameters:
        userData - The user data available to the instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceType

        public void setInstanceType​(String instanceType)

        The instance type for the instances.

        Parameters:
        instanceType - The instance type for the instances.
      • getInstanceType

        public String getInstanceType()

        The instance type for the instances.

        Returns:
        The instance type for the instances.
      • withInstanceType

        public LaunchConfiguration withInstanceType​(String instanceType)

        The instance type for the instances.

        Parameters:
        instanceType - The instance type for the instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setKernelId

        public void setKernelId​(String kernelId)

        The ID of the kernel associated with the AMI.

        Parameters:
        kernelId - The ID of the kernel associated with the AMI.
      • getKernelId

        public String getKernelId()

        The ID of the kernel associated with the AMI.

        Returns:
        The ID of the kernel associated with the AMI.
      • withKernelId

        public LaunchConfiguration withKernelId​(String kernelId)

        The ID of the kernel associated with the AMI.

        Parameters:
        kernelId - The ID of the kernel associated with the AMI.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRamdiskId

        public void setRamdiskId​(String ramdiskId)

        The ID of the RAM disk associated with the AMI.

        Parameters:
        ramdiskId - The ID of the RAM disk associated with the AMI.
      • getRamdiskId

        public String getRamdiskId()

        The ID of the RAM disk associated with the AMI.

        Returns:
        The ID of the RAM disk associated with the AMI.
      • withRamdiskId

        public LaunchConfiguration withRamdiskId​(String ramdiskId)

        The ID of the RAM disk associated with the AMI.

        Parameters:
        ramdiskId - The ID of the RAM disk associated with the AMI.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getBlockDeviceMappings

        public List<BlockDeviceMapping> getBlockDeviceMappings()

        A block device mapping, which specifies the block devices for the instance.

        Returns:
        A block device mapping, which specifies the block devices for the instance.
      • setBlockDeviceMappings

        public void setBlockDeviceMappings​(Collection<BlockDeviceMapping> blockDeviceMappings)

        A block device mapping, which specifies the block devices for the instance.

        Parameters:
        blockDeviceMappings - A block device mapping, which specifies the block devices for the instance.
      • withBlockDeviceMappings

        public LaunchConfiguration withBlockDeviceMappings​(Collection<BlockDeviceMapping> blockDeviceMappings)

        A block device mapping, which specifies the block devices for the instance.

        Parameters:
        blockDeviceMappings - A block device mapping, which specifies the block devices for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceMonitoring

        public void setInstanceMonitoring​(InstanceMonitoring instanceMonitoring)

        Controls whether instances in this group are launched with detailed monitoring.

        Parameters:
        instanceMonitoring - Controls whether instances in this group are launched with detailed monitoring.
      • getInstanceMonitoring

        public InstanceMonitoring getInstanceMonitoring()

        Controls whether instances in this group are launched with detailed monitoring.

        Returns:
        Controls whether instances in this group are launched with detailed monitoring.
      • withInstanceMonitoring

        public LaunchConfiguration withInstanceMonitoring​(InstanceMonitoring instanceMonitoring)

        Controls whether instances in this group are launched with detailed monitoring.

        Parameters:
        instanceMonitoring - Controls whether instances in this group are launched with detailed monitoring.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSpotPrice

        public void setSpotPrice​(String spotPrice)

        The price to bid when launching Spot Instances.

        Parameters:
        spotPrice - The price to bid when launching Spot Instances.
      • getSpotPrice

        public String getSpotPrice()

        The price to bid when launching Spot Instances.

        Returns:
        The price to bid when launching Spot Instances.
      • withSpotPrice

        public LaunchConfiguration withSpotPrice​(String spotPrice)

        The price to bid when launching Spot Instances.

        Parameters:
        spotPrice - The price to bid when launching Spot Instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setIamInstanceProfile

        public void setIamInstanceProfile​(String iamInstanceProfile)

        The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

        Parameters:
        iamInstanceProfile - The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
      • getIamInstanceProfile

        public String getIamInstanceProfile()

        The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

        Returns:
        The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
      • withIamInstanceProfile

        public LaunchConfiguration withIamInstanceProfile​(String iamInstanceProfile)

        The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

        Parameters:
        iamInstanceProfile - The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCreatedTime

        public void setCreatedTime​(Date createdTime)

        The creation date and time for the launch configuration.

        Parameters:
        createdTime - The creation date and time for the launch configuration.
      • getCreatedTime

        public Date getCreatedTime()

        The creation date and time for the launch configuration.

        Returns:
        The creation date and time for the launch configuration.
      • withCreatedTime

        public LaunchConfiguration withCreatedTime​(Date createdTime)

        The creation date and time for the launch configuration.

        Parameters:
        createdTime - The creation date and time for the launch configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEbsOptimized

        public void setEbsOptimized​(Boolean ebsOptimized)

        Controls whether the instance is optimized for EBS I/O (true ) or not (false).

        Parameters:
        ebsOptimized - Controls whether the instance is optimized for EBS I/O ( true) or not (false).
      • getEbsOptimized

        public Boolean getEbsOptimized()

        Controls whether the instance is optimized for EBS I/O (true ) or not (false).

        Returns:
        Controls whether the instance is optimized for EBS I/O ( true) or not (false).
      • withEbsOptimized

        public LaunchConfiguration withEbsOptimized​(Boolean ebsOptimized)

        Controls whether the instance is optimized for EBS I/O (true ) or not (false).

        Parameters:
        ebsOptimized - Controls whether the instance is optimized for EBS I/O ( true) or not (false).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isEbsOptimized

        public Boolean isEbsOptimized()

        Controls whether the instance is optimized for EBS I/O (true ) or not (false).

        Returns:
        Controls whether the instance is optimized for EBS I/O ( true) or not (false).
      • setAssociatePublicIpAddress

        public void setAssociatePublicIpAddress​(Boolean associatePublicIpAddress)

        [EC2-VPC] Indicates whether to assign a public IP address to each instance.

        Parameters:
        associatePublicIpAddress - [EC2-VPC] Indicates whether to assign a public IP address to each instance.
      • getAssociatePublicIpAddress

        public Boolean getAssociatePublicIpAddress()

        [EC2-VPC] Indicates whether to assign a public IP address to each instance.

        Returns:
        [EC2-VPC] Indicates whether to assign a public IP address to each instance.
      • withAssociatePublicIpAddress

        public LaunchConfiguration withAssociatePublicIpAddress​(Boolean associatePublicIpAddress)

        [EC2-VPC] Indicates whether to assign a public IP address to each instance.

        Parameters:
        associatePublicIpAddress - [EC2-VPC] Indicates whether to assign a public IP address to each instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isAssociatePublicIpAddress

        public Boolean isAssociatePublicIpAddress()

        [EC2-VPC] Indicates whether to assign a public IP address to each instance.

        Returns:
        [EC2-VPC] Indicates whether to assign a public IP address to each instance.
      • setPlacementTenancy

        public void setPlacementTenancy​(String placementTenancy)

        The tenancy of the instance, either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.

        Parameters:
        placementTenancy - The tenancy of the instance, either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.
      • getPlacementTenancy

        public String getPlacementTenancy()

        The tenancy of the instance, either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.

        Returns:
        The tenancy of the instance, either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.
      • withPlacementTenancy

        public LaunchConfiguration withPlacementTenancy​(String placementTenancy)

        The tenancy of the instance, either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.

        Parameters:
        placementTenancy - The tenancy of the instance, either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object