Class CreateContainerVnicDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.containerinstances.model.CreateContainerVnicDetails.Builder
-
- Enclosing class:
- CreateContainerVnicDetails
public static class CreateContainerVnicDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateContainerVnicDetails
build()
CreateContainerVnicDetails.Builder
copy(CreateContainerVnicDetails model)
CreateContainerVnicDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateContainerVnicDetails.Builder
displayName(String displayName)
A user-friendly name for the VNIC.CreateContainerVnicDetails.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.CreateContainerVnicDetails.Builder
hostnameLabel(String hostnameLabel)
The hostname for the VNIC’s primary private IP.CreateContainerVnicDetails.Builder
isPublicIpAssigned(Boolean isPublicIpAssigned)
Whether the VNIC should be assigned a public IP address.CreateContainerVnicDetails.Builder
nsgIds(List<String> nsgIds)
A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.CreateContainerVnicDetails.Builder
privateIp(String privateIp)
A private IP address of your choice to assign to the VNIC.CreateContainerVnicDetails.Builder
skipSourceDestCheck(Boolean skipSourceDestCheck)
Whether the source/destination check is disabled on the VNIC.CreateContainerVnicDetails.Builder
subnetId(String subnetId)
The OCID of the subnet to create the VNIC in.
-
-
-
Method Detail
-
displayName
public CreateContainerVnicDetails.Builder displayName(String displayName)
A user-friendly name for the VNIC.Does not have to be unique. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
hostnameLabel
public CreateContainerVnicDetails.Builder hostnameLabel(String hostnameLabel)
The hostname for the VNIC’s primary private IP.Used for DNS.
- Parameters:
hostnameLabel
- the value to set- Returns:
- this builder
-
isPublicIpAssigned
public CreateContainerVnicDetails.Builder isPublicIpAssigned(Boolean isPublicIpAssigned)
Whether the VNIC should be assigned a public IP address.- Parameters:
isPublicIpAssigned
- the value to set- Returns:
- this builder
-
skipSourceDestCheck
public CreateContainerVnicDetails.Builder skipSourceDestCheck(Boolean skipSourceDestCheck)
Whether the source/destination check is disabled on the VNIC.- Parameters:
skipSourceDestCheck
- the value to set- Returns:
- this builder
-
nsgIds
public CreateContainerVnicDetails.Builder nsgIds(List<String> nsgIds)
A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.- Parameters:
nsgIds
- the value to set- Returns:
- this builder
-
privateIp
public CreateContainerVnicDetails.Builder privateIp(String privateIp)
A private IP address of your choice to assign to the VNIC.Must be an available IP address within the subnet’s CIDR.
- Parameters:
privateIp
- the value to set- Returns:
- this builder
-
subnetId
public CreateContainerVnicDetails.Builder subnetId(String subnetId)
The OCID of the subnet to create the VNIC in.- Parameters:
subnetId
- the value to set- Returns:
- this builder
-
freeformTags
public CreateContainerVnicDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public CreateContainerVnicDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}.
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public CreateContainerVnicDetails build()
-
copy
public CreateContainerVnicDetails.Builder copy(CreateContainerVnicDetails model)
-
-