Interface Instance.Builder

    • Method Detail

      • amiLaunchIndex

        Instance.Builder amiLaunchIndex​(Integer amiLaunchIndex)

        The AMI launch index, which can be used to find this instance in the launch group.

        Parameters:
        amiLaunchIndex - The AMI launch index, which can be used to find this instance in the launch group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • imageId

        Instance.Builder imageId​(String imageId)

        The ID of the AMI used to launch the instance.

        Parameters:
        imageId - The ID of the AMI used to launch the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceId

        Instance.Builder instanceId​(String instanceId)

        The ID of the instance.

        Parameters:
        instanceId - The ID of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceType

        Instance.Builder instanceType​(String instanceType)

        The instance type.

        Parameters:
        instanceType - The instance type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceType, InstanceType
      • instanceType

        Instance.Builder instanceType​(InstanceType instanceType)

        The instance type.

        Parameters:
        instanceType - The instance type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceType, InstanceType
      • kernelId

        Instance.Builder kernelId​(String kernelId)

        The kernel associated with this instance, if applicable.

        Parameters:
        kernelId - The kernel associated with this instance, if applicable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • keyName

        Instance.Builder keyName​(String keyName)

        The name of the key pair, if this instance was launched with an associated key pair.

        Parameters:
        keyName - The name of the key pair, if this instance was launched with an associated key pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • launchTime

        Instance.Builder launchTime​(Instant launchTime)

        The time the instance was launched.

        Parameters:
        launchTime - The time the instance was launched.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • monitoring

        Instance.Builder monitoring​(Monitoring monitoring)

        The monitoring for the instance.

        Parameters:
        monitoring - The monitoring for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • placement

        Instance.Builder placement​(Placement placement)

        The location where the instance launched, if applicable.

        Parameters:
        placement - The location where the instance launched, if applicable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • platform

        Instance.Builder platform​(String platform)

        The platform. This value is windows for Windows instances; otherwise, it is empty.

        Parameters:
        platform - The platform. This value is windows for Windows instances; otherwise, it is empty.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PlatformValues, PlatformValues
      • platform

        Instance.Builder platform​(PlatformValues platform)

        The platform. This value is windows for Windows instances; otherwise, it is empty.

        Parameters:
        platform - The platform. This value is windows for Windows instances; otherwise, it is empty.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PlatformValues, PlatformValues
      • privateDnsName

        Instance.Builder privateDnsName​(String privateDnsName)

        [IPv4 only] The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running state.

        The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.

        Parameters:
        privateDnsName - [IPv4 only] The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running state.

        The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • privateIpAddress

        Instance.Builder privateIpAddress​(String privateIpAddress)

        The private IPv4 address assigned to the instance.

        Parameters:
        privateIpAddress - The private IPv4 address assigned to the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • productCodes

        Instance.Builder productCodes​(Collection<ProductCode> productCodes)

        The product codes attached to this instance, if applicable.

        Parameters:
        productCodes - The product codes attached to this instance, if applicable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • productCodes

        Instance.Builder productCodes​(ProductCode... productCodes)

        The product codes attached to this instance, if applicable.

        Parameters:
        productCodes - The product codes attached to this instance, if applicable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • productCodes

        Instance.Builder productCodes​(Consumer<ProductCode.Builder>... productCodes)

        The product codes attached to this instance, if applicable.

        This is a convenience method that creates an instance of the ProductCode.Builder avoiding the need to create one manually via ProductCode.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #productCodes(List).

        Parameters:
        productCodes - a consumer that will call methods on ProductCode.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #productCodes(java.util.Collection)
      • publicDnsName

        Instance.Builder publicDnsName​(String publicDnsName)

        [IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance enters the running state. This name is only available if you've enabled DNS hostnames for your VPC.

        Parameters:
        publicDnsName - [IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance enters the running state. This name is only available if you've enabled DNS hostnames for your VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • publicIpAddress

        Instance.Builder publicIpAddress​(String publicIpAddress)

        The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.

        A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.

        Parameters:
        publicIpAddress - The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.

        A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ramdiskId

        Instance.Builder ramdiskId​(String ramdiskId)

        The RAM disk associated with this instance, if applicable.

        Parameters:
        ramdiskId - The RAM disk associated with this instance, if applicable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • state

        Instance.Builder state​(InstanceState state)

        The current state of the instance.

        Parameters:
        state - The current state of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • stateTransitionReason

        Instance.Builder stateTransitionReason​(String stateTransitionReason)

        The reason for the most recent state transition. This might be an empty string.

        Parameters:
        stateTransitionReason - The reason for the most recent state transition. This might be an empty string.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subnetId

        Instance.Builder subnetId​(String subnetId)

        The ID of the subnet in which the instance is running.

        Parameters:
        subnetId - The ID of the subnet in which the instance is running.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vpcId

        Instance.Builder vpcId​(String vpcId)

        The ID of the VPC in which the instance is running.

        Parameters:
        vpcId - The ID of the VPC in which the instance is running.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • architecture

        Instance.Builder architecture​(String architecture)

        The architecture of the image.

        Parameters:
        architecture - The architecture of the image.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ArchitectureValues, ArchitectureValues
      • blockDeviceMappings

        Instance.Builder blockDeviceMappings​(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)

        Any block device mapping entries for the instance.

        Parameters:
        blockDeviceMappings - Any block device mapping entries for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • blockDeviceMappings

        Instance.Builder blockDeviceMappings​(InstanceBlockDeviceMapping... blockDeviceMappings)

        Any block device mapping entries for the instance.

        Parameters:
        blockDeviceMappings - Any block device mapping entries for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clientToken

        Instance.Builder clientToken​(String clientToken)

        The idempotency token you provided when you launched the instance, if applicable.

        Parameters:
        clientToken - The idempotency token you provided when you launched the instance, if applicable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ebsOptimized

        Instance.Builder ebsOptimized​(Boolean ebsOptimized)

        Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

        Parameters:
        ebsOptimized - Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • enaSupport

        Instance.Builder enaSupport​(Boolean enaSupport)

        Specifies whether enhanced networking with ENA is enabled.

        Parameters:
        enaSupport - Specifies whether enhanced networking with ENA is enabled.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • hypervisor

        Instance.Builder hypervisor​(String hypervisor)

        The hypervisor type of the instance. The value xen is used for both Xen and Nitro hypervisors.

        Parameters:
        hypervisor - The hypervisor type of the instance. The value xen is used for both Xen and Nitro hypervisors.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HypervisorType, HypervisorType
      • hypervisor

        Instance.Builder hypervisor​(HypervisorType hypervisor)

        The hypervisor type of the instance. The value xen is used for both Xen and Nitro hypervisors.

        Parameters:
        hypervisor - The hypervisor type of the instance. The value xen is used for both Xen and Nitro hypervisors.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HypervisorType, HypervisorType
      • iamInstanceProfile

        Instance.Builder iamInstanceProfile​(IamInstanceProfile iamInstanceProfile)

        The IAM instance profile associated with the instance, if applicable.

        Parameters:
        iamInstanceProfile - The IAM instance profile associated with the instance, if applicable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceLifecycle

        Instance.Builder instanceLifecycle​(String instanceLifecycle)

        Indicates whether this is a Spot Instance or a Scheduled Instance.

        Parameters:
        instanceLifecycle - Indicates whether this is a Spot Instance or a Scheduled Instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceLifecycleType, InstanceLifecycleType
      • instanceLifecycle

        Instance.Builder instanceLifecycle​(InstanceLifecycleType instanceLifecycle)

        Indicates whether this is a Spot Instance or a Scheduled Instance.

        Parameters:
        instanceLifecycle - Indicates whether this is a Spot Instance or a Scheduled Instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceLifecycleType, InstanceLifecycleType
      • elasticGpuAssociations

        Instance.Builder elasticGpuAssociations​(Collection<ElasticGpuAssociation> elasticGpuAssociations)

        The Elastic GPU associated with the instance.

        Parameters:
        elasticGpuAssociations - The Elastic GPU associated with the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • elasticGpuAssociations

        Instance.Builder elasticGpuAssociations​(ElasticGpuAssociation... elasticGpuAssociations)

        The Elastic GPU associated with the instance.

        Parameters:
        elasticGpuAssociations - The Elastic GPU associated with the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • elasticInferenceAcceleratorAssociations

        Instance.Builder elasticInferenceAcceleratorAssociations​(Collection<ElasticInferenceAcceleratorAssociation> elasticInferenceAcceleratorAssociations)

        The elastic inference accelerator associated with the instance.

        Parameters:
        elasticInferenceAcceleratorAssociations - The elastic inference accelerator associated with the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • elasticInferenceAcceleratorAssociations

        Instance.Builder elasticInferenceAcceleratorAssociations​(ElasticInferenceAcceleratorAssociation... elasticInferenceAcceleratorAssociations)

        The elastic inference accelerator associated with the instance.

        Parameters:
        elasticInferenceAcceleratorAssociations - The elastic inference accelerator associated with the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networkInterfaces

        Instance.Builder networkInterfaces​(Collection<InstanceNetworkInterface> networkInterfaces)

        The network interfaces for the instance.

        Parameters:
        networkInterfaces - The network interfaces for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networkInterfaces

        Instance.Builder networkInterfaces​(InstanceNetworkInterface... networkInterfaces)

        The network interfaces for the instance.

        Parameters:
        networkInterfaces - The network interfaces for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outpostArn

        Instance.Builder outpostArn​(String outpostArn)

        The Amazon Resource Name (ARN) of the Outpost.

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

        Instance.Builder rootDeviceName​(String rootDeviceName)

        The device name of the root device volume (for example, /dev/sda1).

        Parameters:
        rootDeviceName - The device name of the root device volume (for example, /dev/sda1).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rootDeviceType

        Instance.Builder rootDeviceType​(String rootDeviceType)

        The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.

        Parameters:
        rootDeviceType - The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DeviceType, DeviceType
      • rootDeviceType

        Instance.Builder rootDeviceType​(DeviceType rootDeviceType)

        The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.

        Parameters:
        rootDeviceType - The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DeviceType, DeviceType
      • securityGroups

        Instance.Builder securityGroups​(Collection<GroupIdentifier> securityGroups)

        The security groups for the instance.

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

        Instance.Builder securityGroups​(GroupIdentifier... securityGroups)

        The security groups for the instance.

        Parameters:
        securityGroups - The security groups for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceDestCheck

        Instance.Builder sourceDestCheck​(Boolean sourceDestCheck)

        Indicates whether source/destination checking is enabled.

        Parameters:
        sourceDestCheck - Indicates whether source/destination checking is enabled.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • spotInstanceRequestId

        Instance.Builder spotInstanceRequestId​(String spotInstanceRequestId)

        If the request is a Spot Instance request, the ID of the request.

        Parameters:
        spotInstanceRequestId - If the request is a Spot Instance request, the ID of the request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sriovNetSupport

        Instance.Builder sriovNetSupport​(String sriovNetSupport)

        Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

        Parameters:
        sriovNetSupport - Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • stateReason

        Instance.Builder stateReason​(StateReason stateReason)

        The reason for the most recent state transition.

        Parameters:
        stateReason - The reason for the most recent state transition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        Instance.Builder tags​(Collection<Tag> tags)

        Any tags assigned to the instance.

        Parameters:
        tags - Any tags assigned to the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        Instance.Builder tags​(Tag... tags)

        Any tags assigned to the instance.

        Parameters:
        tags - Any tags assigned to the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        Instance.Builder tags​(Consumer<Tag.Builder>... tags)

        Any tags assigned to the instance.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)
      • virtualizationType

        Instance.Builder virtualizationType​(String virtualizationType)

        The virtualization type of the instance.

        Parameters:
        virtualizationType - The virtualization type of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        VirtualizationType, VirtualizationType
      • virtualizationType

        Instance.Builder virtualizationType​(VirtualizationType virtualizationType)

        The virtualization type of the instance.

        Parameters:
        virtualizationType - The virtualization type of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        VirtualizationType, VirtualizationType
      • cpuOptions

        Instance.Builder cpuOptions​(CpuOptions cpuOptions)

        The CPU options for the instance.

        Parameters:
        cpuOptions - The CPU options for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • capacityReservationId

        Instance.Builder capacityReservationId​(String capacityReservationId)

        The ID of the Capacity Reservation.

        Parameters:
        capacityReservationId - The ID of the Capacity Reservation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • capacityReservationSpecification

        Instance.Builder capacityReservationSpecification​(CapacityReservationSpecificationResponse capacityReservationSpecification)

        Information about the Capacity Reservation targeting option.

        Parameters:
        capacityReservationSpecification - Information about the Capacity Reservation targeting option.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • hibernationOptions

        Instance.Builder hibernationOptions​(HibernationOptions hibernationOptions)

        Indicates whether the instance is enabled for hibernation.

        Parameters:
        hibernationOptions - Indicates whether the instance is enabled for hibernation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • licenses

        Instance.Builder licenses​(Collection<LicenseConfiguration> licenses)

        The license configurations for the instance.

        Parameters:
        licenses - The license configurations for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • licenses

        Instance.Builder licenses​(LicenseConfiguration... licenses)

        The license configurations for the instance.

        Parameters:
        licenses - The license configurations for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metadataOptions

        Instance.Builder metadataOptions​(InstanceMetadataOptionsResponse metadataOptions)

        The metadata options for the instance.

        Parameters:
        metadataOptions - The metadata options for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • enclaveOptions

        Instance.Builder enclaveOptions​(EnclaveOptions enclaveOptions)

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

        Parameters:
        enclaveOptions - Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bootMode

        Instance.Builder bootMode​(String bootMode)

        The boot mode that was specified by the AMI. If the value is uefi-preferred, the AMI supports both UEFI and Legacy BIOS. The currentInstanceBootMode parameter is the boot mode that is used to boot the instance at launch or start.

        The operating system contained in the AMI must be configured to support the specified boot mode.

        For more information, see Boot modes in the Amazon EC2 User Guide.

        Parameters:
        bootMode - The boot mode that was specified by the AMI. If the value is uefi-preferred, the AMI supports both UEFI and Legacy BIOS. The currentInstanceBootMode parameter is the boot mode that is used to boot the instance at launch or start.

        The operating system contained in the AMI must be configured to support the specified boot mode.

        For more information, see Boot modes in the Amazon EC2 User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        BootModeValues, BootModeValues
      • bootMode

        Instance.Builder bootMode​(BootModeValues bootMode)

        The boot mode that was specified by the AMI. If the value is uefi-preferred, the AMI supports both UEFI and Legacy BIOS. The currentInstanceBootMode parameter is the boot mode that is used to boot the instance at launch or start.

        The operating system contained in the AMI must be configured to support the specified boot mode.

        For more information, see Boot modes in the Amazon EC2 User Guide.

        Parameters:
        bootMode - The boot mode that was specified by the AMI. If the value is uefi-preferred, the AMI supports both UEFI and Legacy BIOS. The currentInstanceBootMode parameter is the boot mode that is used to boot the instance at launch or start.

        The operating system contained in the AMI must be configured to support the specified boot mode.

        For more information, see Boot modes in the Amazon EC2 User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        BootModeValues, BootModeValues
      • platformDetails

        Instance.Builder platformDetails​(String platformDetails)

        The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.

        Parameters:
        platformDetails - The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • usageOperation

        Instance.Builder usageOperation​(String usageOperation)

        The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.

        Parameters:
        usageOperation - The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • usageOperationUpdateTime

        Instance.Builder usageOperationUpdateTime​(Instant usageOperationUpdateTime)

        The time that the usage operation was last updated.

        Parameters:
        usageOperationUpdateTime - The time that the usage operation was last updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • privateDnsNameOptions

        Instance.Builder privateDnsNameOptions​(PrivateDnsNameOptionsResponse privateDnsNameOptions)

        The options for the instance hostname.

        Parameters:
        privateDnsNameOptions - The options for the instance hostname.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6Address

        Instance.Builder ipv6Address​(String ipv6Address)

        The IPv6 address assigned to the instance.

        Parameters:
        ipv6Address - The IPv6 address assigned to the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tpmSupport

        Instance.Builder tpmSupport​(String tpmSupport)

        If the instance is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon EC2 User Guide.

        Parameters:
        tpmSupport - If the instance is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon EC2 User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maintenanceOptions

        Instance.Builder maintenanceOptions​(InstanceMaintenanceOptions maintenanceOptions)

        Provides information on the recovery and maintenance options of your instance.

        Parameters:
        maintenanceOptions - Provides information on the recovery and maintenance options of your instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • currentInstanceBootMode

        Instance.Builder currentInstanceBootMode​(String currentInstanceBootMode)

        The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.

        Parameters:
        currentInstanceBootMode - The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceBootModeValues, InstanceBootModeValues
      • currentInstanceBootMode

        Instance.Builder currentInstanceBootMode​(InstanceBootModeValues currentInstanceBootMode)

        The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.

        Parameters:
        currentInstanceBootMode - The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceBootModeValues, InstanceBootModeValues