public static class CreatePublicIpDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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)
Free-form tags for this resource.
|
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.
|
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.
compartmentId
- the value to setpublic CreatePublicIpDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic CreatePublicIpDetails.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic CreatePublicIpDetails.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic 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.
lifetime
- the value to setpublic 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
.
privateIpId
- the value to setpublic CreatePublicIpDetails.Builder publicIpPoolId(String publicIpPoolId)
The OCID of the public IP pool.
publicIpPoolId
- the value to setpublic CreatePublicIpDetails build()
public CreatePublicIpDetails.Builder copy(CreatePublicIpDetails model)
Copyright © 2016–2024. All rights reserved.