Package com.oracle.bmc.cloudbridge.model
Class AwsEc2Properties.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudbridge.model.AwsEc2Properties.Builder
-
- Enclosing class:
- AwsEc2Properties
public static class AwsEc2Properties.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsEc2Properties.Builder
architecture(String architecture)
The architecture of the image.AwsEc2Properties.Builder
areElasticInferenceAcceleratorsPresent(Boolean areElasticInferenceAcceleratorsPresent)
Indicates if the elastic inference accelerators attached to an instanceAwsEc2Properties.Builder
bootMode(String bootMode)
The boot mode of the instance.AwsEc2Properties
build()
AwsEc2Properties.Builder
capacityReservationKey(String capacityReservationKey)
The ID of the Capacity Reservation.AwsEc2Properties.Builder
copy(AwsEc2Properties model)
AwsEc2Properties.Builder
imageKey(String imageKey)
The ID of the AMI used to launch the instance.AwsEc2Properties.Builder
instanceKey(String instanceKey)
The ID of the instance.AwsEc2Properties.Builder
instanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.AwsEc2Properties.Builder
instanceType(String instanceType)
The instance type.AwsEc2Properties.Builder
ipAddress(String ipAddress)
The public IPv4 address, or the Carrier IP address assigned to the instance.AwsEc2Properties.Builder
ipv6Address(String ipv6Address)
The IPv6 address assigned to the instance.AwsEc2Properties.Builder
isEnclaveOptions(Boolean isEnclaveOptions)
Indicates whether the instance is enabled for AWS Nitro Enclaves.AwsEc2Properties.Builder
isHibernationOptions(Boolean isHibernationOptions)
Indicates whether the instance is enabled for hibernation.AwsEc2Properties.Builder
isSourceDestCheck(Boolean isSourceDestCheck)
Indicates whether source/destination checking is enabled.AwsEc2Properties.Builder
isSpotInstance(Boolean isSpotInstance)
If the request is a Spot Instance request, this value will be true.AwsEc2Properties.Builder
kernelKey(String kernelKey)
The kernel associated with this instance, if applicable.AwsEc2Properties.Builder
licenses(List<String> licenses)
The license configurations for the instance.AwsEc2Properties.Builder
maintenanceOptions(String maintenanceOptions)
Provides information on the recovery and maintenance options of your instance.AwsEc2Properties.Builder
monitoring(String monitoring)
The monitoring for the instance.AwsEc2Properties.Builder
networkInterfaces(List<InstanceNetworkInterface> networkInterfaces)
The network interfaces for the instance.AwsEc2Properties.Builder
placement(Placement placement)
AwsEc2Properties.Builder
privateDnsName(String privateDnsName)
(IPv4 only) The private DNS hostname name assigned to the instance.AwsEc2Properties.Builder
privateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.AwsEc2Properties.Builder
rootDeviceName(String rootDeviceName)
The device name of the root device volume.AwsEc2Properties.Builder
rootDeviceType(String rootDeviceType)
The root device type used by the AMI.AwsEc2Properties.Builder
securityGroups(List<GroupIdentifier> securityGroups)
The security groups for the instance.AwsEc2Properties.Builder
sriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.AwsEc2Properties.Builder
state(InstanceState state)
AwsEc2Properties.Builder
subnetKey(String subnetKey)
EC2-VPC The ID of the subnet in which the instance is running.AwsEc2Properties.Builder
tags(List<Tag> tags)
Any tags assigned to the instance.AwsEc2Properties.Builder
timeLaunch(Date timeLaunch)
The time the instance was launched.AwsEc2Properties.Builder
tpmSupport(String tpmSupport)
If the instance is configured for NitroTPM support, the value is v2.0.AwsEc2Properties.Builder
virtualizationType(String virtualizationType)
The virtualization type of the instance.AwsEc2Properties.Builder
vpcKey(String vpcKey)
EC2-VPC The ID of the VPC in which the instance is running.
-
-
-
Method Detail
-
architecture
public AwsEc2Properties.Builder architecture(String architecture)
The architecture of the image.- Parameters:
architecture
- the value to set- Returns:
- this builder
-
bootMode
public AwsEc2Properties.Builder bootMode(String bootMode)
The boot mode of the instance.- Parameters:
bootMode
- the value to set- Returns:
- this builder
-
capacityReservationKey
public AwsEc2Properties.Builder capacityReservationKey(String capacityReservationKey)
The ID of the Capacity Reservation.- Parameters:
capacityReservationKey
- the value to set- Returns:
- this builder
-
areElasticInferenceAcceleratorsPresent
public AwsEc2Properties.Builder areElasticInferenceAcceleratorsPresent(Boolean areElasticInferenceAcceleratorsPresent)
Indicates if the elastic inference accelerators attached to an instance- Parameters:
areElasticInferenceAcceleratorsPresent
- the value to set- Returns:
- this builder
-
isEnclaveOptions
public AwsEc2Properties.Builder isEnclaveOptions(Boolean isEnclaveOptions)
Indicates whether the instance is enabled for AWS Nitro Enclaves.- Parameters:
isEnclaveOptions
- the value to set- Returns:
- this builder
-
isHibernationOptions
public AwsEc2Properties.Builder isHibernationOptions(Boolean isHibernationOptions)
Indicates whether the instance is enabled for hibernation.- Parameters:
isHibernationOptions
- the value to set- Returns:
- this builder
-
imageKey
public AwsEc2Properties.Builder imageKey(String imageKey)
The ID of the AMI used to launch the instance.- Parameters:
imageKey
- the value to set- Returns:
- this builder
-
instanceKey
public AwsEc2Properties.Builder instanceKey(String instanceKey)
The ID of the instance.- Parameters:
instanceKey
- the value to set- Returns:
- this builder
-
instanceLifecycle
public AwsEc2Properties.Builder instanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.- Parameters:
instanceLifecycle
- the value to set- Returns:
- this builder
-
instanceType
public AwsEc2Properties.Builder instanceType(String instanceType)
The instance type.- Parameters:
instanceType
- the value to set- Returns:
- this builder
-
ipAddress
public AwsEc2Properties.Builder ipAddress(String ipAddress)
The public IPv4 address, or the Carrier IP address assigned to the instance.- Parameters:
ipAddress
- the value to set- Returns:
- this builder
-
ipv6Address
public AwsEc2Properties.Builder ipv6Address(String ipv6Address)
The IPv6 address assigned to the instance.- Parameters:
ipv6Address
- the value to set- Returns:
- this builder
-
kernelKey
public AwsEc2Properties.Builder kernelKey(String kernelKey)
The kernel associated with this instance, if applicable.- Parameters:
kernelKey
- the value to set- Returns:
- this builder
-
timeLaunch
public AwsEc2Properties.Builder timeLaunch(Date timeLaunch)
The time the instance was launched.- Parameters:
timeLaunch
- the value to set- Returns:
- this builder
-
licenses
public AwsEc2Properties.Builder licenses(List<String> licenses)
The license configurations for the instance.- Parameters:
licenses
- the value to set- Returns:
- this builder
-
maintenanceOptions
public AwsEc2Properties.Builder maintenanceOptions(String maintenanceOptions)
Provides information on the recovery and maintenance options of your instance.- Parameters:
maintenanceOptions
- the value to set- Returns:
- this builder
-
monitoring
public AwsEc2Properties.Builder monitoring(String monitoring)
The monitoring for the instance.- Parameters:
monitoring
- the value to set- Returns:
- this builder
-
networkInterfaces
public AwsEc2Properties.Builder networkInterfaces(List<InstanceNetworkInterface> networkInterfaces)
The network interfaces for the instance.- Parameters:
networkInterfaces
- the value to set- Returns:
- this builder
-
placement
public AwsEc2Properties.Builder placement(Placement placement)
-
privateDnsName
public AwsEc2Properties.Builder privateDnsName(String privateDnsName)
(IPv4 only) The private DNS hostname name assigned to the instance.- Parameters:
privateDnsName
- the value to set- Returns:
- this builder
-
privateIpAddress
public AwsEc2Properties.Builder privateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.- Parameters:
privateIpAddress
- the value to set- Returns:
- this builder
-
rootDeviceName
public AwsEc2Properties.Builder rootDeviceName(String rootDeviceName)
The device name of the root device volume.- Parameters:
rootDeviceName
- the value to set- Returns:
- this builder
-
rootDeviceType
public AwsEc2Properties.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 value to set- Returns:
- this builder
-
securityGroups
public AwsEc2Properties.Builder securityGroups(List<GroupIdentifier> securityGroups)
The security groups for the instance.- Parameters:
securityGroups
- the value to set- Returns:
- this builder
-
isSourceDestCheck
public AwsEc2Properties.Builder isSourceDestCheck(Boolean isSourceDestCheck)
Indicates whether source/destination checking is enabled.- Parameters:
isSourceDestCheck
- the value to set- Returns:
- this builder
-
isSpotInstance
public AwsEc2Properties.Builder isSpotInstance(Boolean isSpotInstance)
If the request is a Spot Instance request, this value will be true.- Parameters:
isSpotInstance
- the value to set- Returns:
- this builder
-
sriovNetSupport
public AwsEc2Properties.Builder sriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.- Parameters:
sriovNetSupport
- the value to set- Returns:
- this builder
-
state
public AwsEc2Properties.Builder state(InstanceState state)
-
subnetKey
public AwsEc2Properties.Builder subnetKey(String subnetKey)
EC2-VPC The ID of the subnet in which the instance is running.- Parameters:
subnetKey
- the value to set- Returns:
- this builder
-
tags
public AwsEc2Properties.Builder tags(List<Tag> tags)
Any tags assigned to the instance.- Parameters:
tags
- the value to set- Returns:
- this builder
-
tpmSupport
public AwsEc2Properties.Builder tpmSupport(String tpmSupport)
If the instance is configured for NitroTPM support, the value is v2.0.- Parameters:
tpmSupport
- the value to set- Returns:
- this builder
-
virtualizationType
public AwsEc2Properties.Builder virtualizationType(String virtualizationType)
The virtualization type of the instance.- Parameters:
virtualizationType
- the value to set- Returns:
- this builder
-
vpcKey
public AwsEc2Properties.Builder vpcKey(String vpcKey)
EC2-VPC The ID of the VPC in which the instance is running.- Parameters:
vpcKey
- the value to set- Returns:
- this builder
-
build
public AwsEc2Properties build()
-
copy
public AwsEc2Properties.Builder copy(AwsEc2Properties model)
-
-