Class CreatePublicIpDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.CreatePublicIpDetails.Builder
-
- Enclosing class:
- CreatePublicIpDetails
public static class CreatePublicIpDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePublicIpDetails
build()
CreatePublicIpDetails.Builder
compartmentId(String compartmentId)
The OCID of the compartment to contain the public IP.CreatePublicIpDetails.Builder
copy(CreatePublicIpDetails model)
CreatePublicIpDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreatePublicIpDetails.Builder
displayName(String displayName)
A user-friendly name.CreatePublicIpDetails.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.CreatePublicIpDetails.Builder
lifetime(CreatePublicIpDetails.Lifetime lifetime)
Defines when the public IP is deleted and released back to the Oracle Cloud Infrastructure public IP pool.CreatePublicIpDetails.Builder
privateIpId(String privateIpId)
The OCID of the private IP to assign the public IP to.CreatePublicIpDetails.Builder
publicIpPoolId(String publicIpPoolId)
The OCID of the public IP pool.
-
-
-
Method Detail
-
compartmentId
public CreatePublicIpDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment to contain the public IP.For ephemeral public IPs, you must set this to the private IP’s compartment OCID.
- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public CreatePublicIpDetails.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
-
displayName
public CreatePublicIpDetails.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
freeformTags
public CreatePublicIpDetails.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
-
lifetime
public CreatePublicIpDetails.Builder lifetime(CreatePublicIpDetails.Lifetime lifetime)
Defines when the public IP is deleted and released back to the Oracle Cloud Infrastructure public IP pool.For more information, see Public IP Addresses.
- Parameters:
lifetime
- the value to set- Returns:
- this builder
-
privateIpId
public CreatePublicIpDetails.Builder privateIpId(String privateIpId)
The OCID of the private IP to assign the public IP to.Required for an ephemeral public IP because it must always be assigned to a private IP (specifically a *primary* private IP).
Optional for a reserved public IP. If you don't provide it, the public IP is created but not assigned to a private IP. You can later assign the public IP with
updatePublicIp
.- Parameters:
privateIpId
- the value to set- Returns:
- this builder
-
publicIpPoolId
public CreatePublicIpDetails.Builder publicIpPoolId(String publicIpPoolId)
The OCID of the public IP pool.- Parameters:
publicIpPoolId
- the value to set- Returns:
- this builder
-
build
public CreatePublicIpDetails build()
-
copy
public CreatePublicIpDetails.Builder copy(CreatePublicIpDetails model)
-
-