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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsEc2InstanceDetails.BuilderiamInstanceProfileArn(String iamInstanceProfileArn)The IAM profile ARN of the instance.AwsEc2InstanceDetails.BuilderimageId(String imageId)The Amazon Machine Image (AMI) ID of the instance.AwsEc2InstanceDetails.BuilderipV4Addresses(String... ipV4Addresses)The IPv4 addresses associated with the instance.AwsEc2InstanceDetails.BuilderipV4Addresses(Collection<String> ipV4Addresses)The IPv4 addresses associated with the instance.AwsEc2InstanceDetails.BuilderipV6Addresses(String... ipV6Addresses)The IPv6 addresses associated with the instance.AwsEc2InstanceDetails.BuilderipV6Addresses(Collection<String> ipV6Addresses)The IPv6 addresses associated with the instance.AwsEc2InstanceDetails.BuilderkeyName(String keyName)The key name associated with the instance.AwsEc2InstanceDetails.BuilderlaunchedAt(String launchedAt)Indicates when the instance was launched.default AwsEc2InstanceDetails.BuildermetadataOptions(Consumer<AwsEc2InstanceMetadataOptions.Builder> metadataOptions)Details about the metadata options for the Amazon EC2 instance.AwsEc2InstanceDetails.BuildermetadataOptions(AwsEc2InstanceMetadataOptions metadataOptions)Details about the metadata options for the Amazon EC2 instance.default AwsEc2InstanceDetails.Buildermonitoring(Consumer<AwsEc2InstanceMonitoringDetails.Builder> monitoring)Describes the type of monitoring that’s turned on for an instance.AwsEc2InstanceDetails.Buildermonitoring(AwsEc2InstanceMonitoringDetails monitoring)Describes the type of monitoring that’s turned on for an instance.AwsEc2InstanceDetails.BuildernetworkInterfaces(Collection<AwsEc2InstanceNetworkInterfacesDetails> networkInterfaces)The identifiers of the network interfaces for the EC2 instance.AwsEc2InstanceDetails.BuildernetworkInterfaces(Consumer<AwsEc2InstanceNetworkInterfacesDetails.Builder>... networkInterfaces)The identifiers of the network interfaces for the EC2 instance.AwsEc2InstanceDetails.BuildernetworkInterfaces(AwsEc2InstanceNetworkInterfacesDetails... networkInterfaces)The identifiers of the network interfaces for the EC2 instance.AwsEc2InstanceDetails.BuildersubnetId(String subnetId)The identifier of the subnet that the instance was launched in.AwsEc2InstanceDetails.Buildertype(String type)The instance type of the instance.AwsEc2InstanceDetails.BuildervirtualizationType(String virtualizationType)The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.AwsEc2InstanceDetails.BuildervpcId(String vpcId)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
type
AwsEc2InstanceDetails.Builder type(String 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
AwsEc2InstanceDetails.Builder imageId(String 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
AwsEc2InstanceDetails.Builder keyName(String 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
AwsEc2InstanceDetails.Builder vpcId(String 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
AwsEc2InstanceDetails.Builder subnetId(String 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.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Parameters:
launchedAt- Indicates when the instance was launched.For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- 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
AwsEc2NetworkInterfacesDetailsobject.- Parameters:
networkInterfaces- The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a correspondingAwsEc2NetworkInterfacesDetailsobject.- 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
AwsEc2NetworkInterfacesDetailsobject.- Parameters:
networkInterfaces- The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a correspondingAwsEc2NetworkInterfacesDetailsobject.- 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 theAwsEc2NetworkInterfacesDetailsobject.AwsEc2InstanceNetworkInterfacesDetails.Builderavoiding the need to create one manually viaAwsEc2InstanceNetworkInterfacesDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#networkInterfaces(List.) - 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:
#networkInterfaces(java.util.Collection)
-
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
AwsEc2InstanceDetails.Builder metadataOptions(AwsEc2InstanceMetadataOptions 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.Builderavoiding the need to create one manually viaAwsEc2InstanceMetadataOptions.builder().When the
Consumercompletes,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:
metadataOptions(AwsEc2InstanceMetadataOptions)
-
monitoring
AwsEc2InstanceDetails.Builder monitoring(AwsEc2InstanceMonitoringDetails 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.Builderavoiding the need to create one manually viaAwsEc2InstanceMonitoringDetails.builder().When the
Consumercompletes,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:
monitoring(AwsEc2InstanceMonitoringDetails)
-
-