Interface AwsEc2InstanceDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2InstanceDetails.Builder,
,AwsEc2InstanceDetails> SdkBuilder<AwsEc2InstanceDetails.Builder,
,AwsEc2InstanceDetails> SdkPojo
- Enclosing class:
AwsEc2InstanceDetails
-
Method Summary
Modifier and TypeMethodDescriptioniamInstanceProfileArn
(String iamInstanceProfileArn) The IAM profile ARN of the instance.The Amazon Machine Image (AMI) ID of the instance.ipV4Addresses
(String... ipV4Addresses) The IPv4 addresses associated with the instance.ipV4Addresses
(Collection<String> ipV4Addresses) The IPv4 addresses associated with the instance.ipV6Addresses
(String... ipV6Addresses) The IPv6 addresses associated with the instance.ipV6Addresses
(Collection<String> ipV6Addresses) The IPv6 addresses associated with the instance.The key name associated with the instance.launchedAt
(String launchedAt) Indicates when the instance was launched.default AwsEc2InstanceDetails.Builder
metadataOptions
(Consumer<AwsEc2InstanceMetadataOptions.Builder> metadataOptions) Details about the metadata options for the Amazon EC2 instance.metadataOptions
(AwsEc2InstanceMetadataOptions metadataOptions) Details about the metadata options for the Amazon EC2 instance.default AwsEc2InstanceDetails.Builder
monitoring
(Consumer<AwsEc2InstanceMonitoringDetails.Builder> monitoring) Describes the type of monitoring that’s turned on for an instance.monitoring
(AwsEc2InstanceMonitoringDetails monitoring) Describes the type of monitoring that’s turned on for an instance.networkInterfaces
(Collection<AwsEc2InstanceNetworkInterfacesDetails> networkInterfaces) The identifiers of the network interfaces for the EC2 instance.networkInterfaces
(Consumer<AwsEc2InstanceNetworkInterfacesDetails.Builder>... networkInterfaces) The identifiers of the network interfaces for the EC2 instance.networkInterfaces
(AwsEc2InstanceNetworkInterfacesDetails... networkInterfaces) The identifiers of the network interfaces for the EC2 instance.The identifier of the subnet that the instance was launched in.The instance type of the instance.virtualizationType
(String virtualizationType) The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.The identifier of the VPC that the instance was launched in.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
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
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
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
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
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
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
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
AwsEc2InstanceDetails.Builder networkInterfaces(Collection<AwsEc2InstanceNetworkInterfacesDetails> 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 correspondingAwsEc2NetworkInterfacesDetails
object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
AwsEc2InstanceDetails.Builder networkInterfaces(AwsEc2InstanceNetworkInterfacesDetails... 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 correspondingAwsEc2NetworkInterfacesDetails
object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
AwsEc2InstanceDetails.Builder networkInterfaces(Consumer<AwsEc2InstanceNetworkInterfacesDetails.Builder>... networkInterfaces) The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a corresponding
This is a convenience method that creates an instance of theAwsEc2NetworkInterfacesDetails
object.AwsEc2InstanceNetworkInterfacesDetails.Builder
avoiding the need to create one manually viaAwsEc2InstanceNetworkInterfacesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkInterfaces(List<AwsEc2InstanceNetworkInterfacesDetails>)
.- Parameters:
networkInterfaces
- a consumer that will call methods onAwsEc2InstanceNetworkInterfacesDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
default AwsEc2InstanceDetails.Builder metadataOptions(Consumer<AwsEc2InstanceMetadataOptions.Builder> metadataOptions) Details about the metadata options for the Amazon EC2 instance.
This is a convenience method that creates an instance of theAwsEc2InstanceMetadataOptions.Builder
avoiding the need to create one manually viaAwsEc2InstanceMetadataOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadataOptions(AwsEc2InstanceMetadataOptions)
.- Parameters:
metadataOptions
- a consumer that will call methods onAwsEc2InstanceMetadataOptions.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
default AwsEc2InstanceDetails.Builder monitoring(Consumer<AwsEc2InstanceMonitoringDetails.Builder> monitoring) Describes the type of monitoring that’s turned on for an instance.
This is a convenience method that creates an instance of theAwsEc2InstanceMonitoringDetails.Builder
avoiding the need to create one manually viaAwsEc2InstanceMonitoringDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitoring(AwsEc2InstanceMonitoringDetails)
.- Parameters:
monitoring
- a consumer that will call methods onAwsEc2InstanceMonitoringDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-