Interface Instance.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Instance.Builder,Instance>, SdkBuilder<Instance.Builder,Instance>, SdkPojo
Enclosing class:
Instance

public static interface Instance.Builder extends SdkPojo, CopyableBuilder<Instance.Builder,Instance>
  • Method Details

    • 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

      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:
    • 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.
    • monitoring

      default Instance.Builder monitoring(Consumer<Monitoring.Builder> monitoring)

      The monitoring for the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to monitoring(Monitoring).

      Parameters:
      monitoring - a consumer that will call methods on Monitoring.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • placement

      default Instance.Builder placement(Consumer<Placement.Builder> placement)

      The location where the instance launched, if applicable.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to placement(Placement).

      Parameters:
      placement - a consumer that will call methods on Placement.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • platform

      Instance.Builder platform(String platform)

      The value is Windows for Windows instances; otherwise blank.

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

      Instance.Builder platform(PlatformValues platform)

      The value is Windows for Windows instances; otherwise blank.

      Parameters:
      platform - The value is Windows for Windows instances; otherwise blank.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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<ProductCode>).

      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:
    • 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

      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.
    • state

      The current state of the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to state(InstanceState).

      Parameters:
      state - a consumer that will call methods on InstanceState.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • architecture

      Instance.Builder architecture(ArchitectureValues 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:
    • 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.
    • blockDeviceMappings

      Instance.Builder blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings)

      Any block device mapping entries for the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to blockDeviceMappings(List<InstanceBlockDeviceMapping>).

      Parameters:
      blockDeviceMappings - a consumer that will call methods on InstanceBlockDeviceMapping.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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.
    • iamInstanceProfile

      default Instance.Builder iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to iamInstanceProfile(IamInstanceProfile).

      Parameters:
      iamInstanceProfile - a consumer that will call methods on IamInstanceProfile.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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.
    • elasticGpuAssociations

      Instance.Builder elasticGpuAssociations(Consumer<ElasticGpuAssociation.Builder>... elasticGpuAssociations)

      The Elastic GPU associated with the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to elasticGpuAssociations(List<ElasticGpuAssociation>).

      Parameters:
      elasticGpuAssociations - a consumer that will call methods on ElasticGpuAssociation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • elasticInferenceAcceleratorAssociations

      Instance.Builder elasticInferenceAcceleratorAssociations(Consumer<ElasticInferenceAcceleratorAssociation.Builder>... elasticInferenceAcceleratorAssociations)

      The elastic inference accelerator associated with the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to elasticInferenceAcceleratorAssociations(List<ElasticInferenceAcceleratorAssociation>).

      Parameters:
      elasticInferenceAcceleratorAssociations - a consumer that will call methods on ElasticInferenceAcceleratorAssociation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • networkInterfaces

      Instance.Builder networkInterfaces(Consumer<InstanceNetworkInterface.Builder>... networkInterfaces)

      The network interfaces for the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to networkInterfaces(List<InstanceNetworkInterface>).

      Parameters:
      networkInterfaces - a consumer that will call methods on InstanceNetworkInterface.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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.
    • securityGroups

      Instance.Builder securityGroups(Consumer<GroupIdentifier.Builder>... securityGroups)

      The security groups for the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to securityGroups(List<GroupIdentifier>).

      Parameters:
      securityGroups - a consumer that will call methods on GroupIdentifier.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • stateReason

      default Instance.Builder stateReason(Consumer<StateReason.Builder> stateReason)

      The reason for the most recent state transition.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to stateReason(StateReason).

      Parameters:
      stateReason - a consumer that will call methods on StateReason.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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<Tag>).

      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:
    • 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

      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:
    • 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.
    • cpuOptions

      default Instance.Builder cpuOptions(Consumer<CpuOptions.Builder> cpuOptions)

      The CPU options for the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to cpuOptions(CpuOptions).

      Parameters:
      cpuOptions - a consumer that will call methods on CpuOptions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • capacityReservationSpecification

      default Instance.Builder capacityReservationSpecification(Consumer<CapacityReservationSpecificationResponse.Builder> capacityReservationSpecification)

      Information about the Capacity Reservation targeting option.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to capacityReservationSpecification(CapacityReservationSpecificationResponse).

      Parameters:
      capacityReservationSpecification - a consumer that will call methods on CapacityReservationSpecificationResponse.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • hibernationOptions

      default Instance.Builder hibernationOptions(Consumer<HibernationOptions.Builder> hibernationOptions)

      Indicates whether the instance is enabled for hibernation.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to hibernationOptions(HibernationOptions).

      Parameters:
      hibernationOptions - a consumer that will call methods on HibernationOptions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • licenses

      The license configurations for the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to licenses(List<LicenseConfiguration>).

      Parameters:
      licenses - a consumer that will call methods on LicenseConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • metadataOptions

      default Instance.Builder metadataOptions(Consumer<InstanceMetadataOptionsResponse.Builder> metadataOptions)

      The metadata options for the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metadataOptions(InstanceMetadataOptionsResponse).

      Parameters:
      metadataOptions - a consumer that will call methods on InstanceMetadataOptionsResponse.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • enclaveOptions

      default Instance.Builder enclaveOptions(Consumer<EnclaveOptions.Builder> enclaveOptions)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to enclaveOptions(EnclaveOptions).

      Parameters:
      enclaveOptions - a consumer that will call methods on EnclaveOptions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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.
    • privateDnsNameOptions

      default Instance.Builder privateDnsNameOptions(Consumer<PrivateDnsNameOptionsResponse.Builder> privateDnsNameOptions)

      The options for the instance hostname.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to privateDnsNameOptions(PrivateDnsNameOptionsResponse).

      Parameters:
      privateDnsNameOptions - a consumer that will call methods on PrivateDnsNameOptionsResponse.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • maintenanceOptions

      default Instance.Builder maintenanceOptions(Consumer<InstanceMaintenanceOptions.Builder> maintenanceOptions)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to maintenanceOptions(InstanceMaintenanceOptions).

      Parameters:
      maintenanceOptions - a consumer that will call methods on InstanceMaintenanceOptions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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: