Interface AwsEc2InstanceDetails.Builder

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

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

    • type

      The instance type of the instance.

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

      The Amazon Machine Image (AMI) ID of the instance.

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

      AwsEc2InstanceDetails.Builder ipV4Addresses(Collection<String> ipV4Addresses)

      The IPv4 addresses associated with the instance.

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

      AwsEc2InstanceDetails.Builder ipV4Addresses(String... ipV4Addresses)

      The IPv4 addresses associated with the instance.

      Parameters:
      ipV4Addresses - The IPv4 addresses associated with the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipV6Addresses

      AwsEc2InstanceDetails.Builder ipV6Addresses(Collection<String> ipV6Addresses)

      The IPv6 addresses associated with the instance.

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

      AwsEc2InstanceDetails.Builder ipV6Addresses(String... ipV6Addresses)

      The IPv6 addresses associated with the instance.

      Parameters:
      ipV6Addresses - The IPv6 addresses associated with the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyName

      The key name associated with the instance.

      Parameters:
      keyName - The key name associated with the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iamInstanceProfileArn

      AwsEc2InstanceDetails.Builder iamInstanceProfileArn(String iamInstanceProfileArn)

      The IAM profile ARN of the instance.

      Parameters:
      iamInstanceProfileArn - The IAM profile ARN of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vpcId

      The identifier of the VPC that the instance was launched in.

      Parameters:
      vpcId - The identifier of the VPC that the instance was launched in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subnetId

      The identifier of the subnet that the instance was launched in.

      Parameters:
      subnetId - The identifier of the subnet that the instance was launched in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchedAt

      AwsEc2InstanceDetails.Builder launchedAt(String launchedAt)

      Indicates when the instance was launched.

      This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:

      • YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z)

      • YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z)

      • YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59)

      • YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759)

      • YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59)

      Parameters:
      launchedAt - Indicates when the instance was launched.

      This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:

      • YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z)

      • YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z)

      • YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59)

      • YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759)

      • YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59)

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

      The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a corresponding AwsEc2NetworkInterfacesDetails object.

      Parameters:
      networkInterfaces - The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a corresponding AwsEc2NetworkInterfacesDetails object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkInterfaces

      The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a corresponding AwsEc2NetworkInterfacesDetails object.

      Parameters:
      networkInterfaces - The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a corresponding AwsEc2NetworkInterfacesDetails object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkInterfaces

      The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a corresponding AwsEc2NetworkInterfacesDetails object.

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

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

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

      AwsEc2InstanceDetails.Builder virtualizationType(String virtualizationType)

      The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.

      Parameters:
      virtualizationType - The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadataOptions

      Details about the metadata options for the Amazon EC2 instance.

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

      Details about the metadata options for the Amazon EC2 instance.

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

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

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

      Describes the type of monitoring that’s turned on for an instance.

      Parameters:
      monitoring - Describes the type of monitoring that’s turned on for an instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • monitoring

      Describes the type of monitoring that’s turned on for an instance.

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

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

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