Class AwsEc2LaunchTemplateDataDetails

    • Method Detail

      • hasBlockDeviceMappingSet

        public final boolean hasBlockDeviceMappingSet()
        For responses, this returns true if the service returned a value for the BlockDeviceMappingSet property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • blockDeviceMappingSet

        public final List<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> blockDeviceMappingSet()

        Information about a block device mapping for an Amazon EC2 launch template.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasBlockDeviceMappingSet() method.

        Returns:
        Information about a block device mapping for an Amazon EC2 launch template.
      • capacityReservationSpecification

        public final AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails capacityReservationSpecification()

        Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.

        Returns:
        Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.
      • creditSpecification

        public final AwsEc2LaunchTemplateDataCreditSpecificationDetails creditSpecification()

        Specifies the credit option for CPU usage of a T2, T3, or T3a instance.

        Returns:
        Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
      • disableApiStop

        public final Boolean disableApiStop()

        Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.

        Returns:
        Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.
      • disableApiTermination

        public final Boolean disableApiTermination()

        If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API. If set to true, you can.

        Returns:
        If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API. If set to true, you can.
      • ebsOptimized

        public final Boolean ebsOptimized()

        Indicates whether the instance is optimized for Amazon EBS I/O.

        Returns:
        Indicates whether the instance is optimized for Amazon EBS I/O.
      • hasElasticGpuSpecificationSet

        public final boolean hasElasticGpuSpecificationSet()
        For responses, this returns true if the service returned a value for the ElasticGpuSpecificationSet property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • elasticGpuSpecificationSet

        public final List<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> elasticGpuSpecificationSet()

        Provides details about Elastic Graphics accelerators to associate with the instance.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasElasticGpuSpecificationSet() method.

        Returns:
        Provides details about Elastic Graphics accelerators to associate with the instance.
      • hasElasticInferenceAcceleratorSet

        public final boolean hasElasticInferenceAcceleratorSet()
        For responses, this returns true if the service returned a value for the ElasticInferenceAcceleratorSet property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • elasticInferenceAcceleratorSet

        public final List<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> elasticInferenceAcceleratorSet()

        The Amazon Elastic Inference accelerator for the instance.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasElasticInferenceAcceleratorSet() method.

        Returns:
        The Amazon Elastic Inference accelerator for the instance.
      • enclaveOptions

        public final AwsEc2LaunchTemplateDataEnclaveOptionsDetails enclaveOptions()

        Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.

        Returns:
        Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
      • hibernationOptions

        public final AwsEc2LaunchTemplateDataHibernationOptionsDetails hibernationOptions()

        Specifies whether your Amazon EC2 instance is configured for hibernation.

        Returns:
        Specifies whether your Amazon EC2 instance is configured for hibernation.
      • iamInstanceProfile

        public final AwsEc2LaunchTemplateDataIamInstanceProfileDetails iamInstanceProfile()

        The name or Amazon Resource Name (ARN) of an IAM instance profile.

        Returns:
        The name or Amazon Resource Name (ARN) of an IAM instance profile.
      • imageId

        public final String imageId()

        The ID of the Amazon Machine Image (AMI).

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

        public final String instanceInitiatedShutdownBehavior()

        Provides the options for specifying the instance initiated shutdown behavior.

        Returns:
        Provides the options for specifying the instance initiated shutdown behavior.
      • instanceRequirements

        public final AwsEc2LaunchTemplateDataInstanceRequirementsDetails instanceRequirements()

        The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. If you specify InstanceRequirements, you can't specify InstanceType.

        Returns:
        The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. If you specify InstanceRequirements, you can't specify InstanceType.
      • instanceType

        public final String instanceType()

        The instance type. For more information, see Instance types in the Amazon EC2 User Guide. If you specify InstanceType, you can't specify InstanceRequirements.

        Returns:
        The instance type. For more information, see Instance types in the Amazon EC2 User Guide. If you specify InstanceType, you can't specify InstanceRequirements.
      • kernelId

        public final String kernelId()

        The ID of the kernel.

        Returns:
        The ID of the kernel.
      • keyName

        public final String keyName()

        The name of the key pair that allows users to connect to the instance.

        Returns:
        The name of the key pair that allows users to connect to the instance.
      • hasLicenseSet

        public final boolean hasLicenseSet()
        For responses, this returns true if the service returned a value for the LicenseSet property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • licenseSet

        public final List<AwsEc2LaunchTemplateDataLicenseSetDetails> licenseSet()

        Specifies a license configuration for an instance.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasLicenseSet() method.

        Returns:
        Specifies a license configuration for an instance.
      • hasNetworkInterfaceSet

        public final boolean hasNetworkInterfaceSet()
        For responses, this returns true if the service returned a value for the NetworkInterfaceSet property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • networkInterfaceSet

        public final List<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> networkInterfaceSet()

        Specifies the parameters for a network interface that is attached to the instance.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasNetworkInterfaceSet() method.

        Returns:
        Specifies the parameters for a network interface that is attached to the instance.
      • ramDiskId

        public final String ramDiskId()

        The ID of the RAM disk.

        Returns:
        The ID of the RAM disk.
      • hasSecurityGroupIdSet

        public final boolean hasSecurityGroupIdSet()
        For responses, this returns true if the service returned a value for the SecurityGroupIdSet property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • securityGroupIdSet

        public final List<String> securityGroupIdSet()

        One or more security group IDs.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasSecurityGroupIdSet() method.

        Returns:
        One or more security group IDs.
      • hasSecurityGroupSet

        public final boolean hasSecurityGroupSet()
        For responses, this returns true if the service returned a value for the SecurityGroupSet property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • securityGroupSet

        public final List<String> securityGroupSet()

        One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasSecurityGroupSet() method.

        Returns:
        One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
      • userData

        public final String userData()

        The user data to make available to the instance.

        Returns:
        The user data to make available to the instance.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)