public static class CreateSubnetDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateSubnetDetails.Builder |
availabilityDomain(String availabilityDomain)
The availability domain to contain the subnet.
|
CreateSubnetDetails |
build() |
CreateSubnetDetails.Builder |
cidrBlock(String cidrBlock)
The CIDR IP address range of the subnet.
|
CreateSubnetDetails.Builder |
compartmentId(String compartmentId)
The OCID of the compartment to contain the subnet.
|
CreateSubnetDetails.Builder |
copy(CreateSubnetDetails model) |
CreateSubnetDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateSubnetDetails.Builder |
dhcpOptionsId(String dhcpOptionsId)
The OCID of the set of DHCP options the subnet will use.
|
CreateSubnetDetails.Builder |
displayName(String displayName)
A user-friendly name.
|
CreateSubnetDetails.Builder |
dnsLabel(String dnsLabel)
A DNS label for the subnet, used in conjunction with the VNIC’s hostname and
VCN’s DNS label to form a fully qualified domain name (FQDN) for each VNIC
within this subnet (for example,
bminstance-1.subnet123.vcn1.oraclevcn.com ). |
CreateSubnetDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
CreateSubnetDetails.Builder |
ipv6CidrBlock(String ipv6CidrBlock)
Use this to enable IPv6 addressing for this subnet.
|
CreateSubnetDetails.Builder |
prohibitPublicIpOnVnic(Boolean prohibitPublicIpOnVnic)
Whether VNICs within this subnet can have public IP addresses.
|
CreateSubnetDetails.Builder |
routeTableId(String routeTableId)
The OCID of the route table the subnet will use.
|
CreateSubnetDetails.Builder |
securityListIds(List<String> securityListIds)
The OCIDs of the security list or lists the subnet will use.
|
CreateSubnetDetails.Builder |
vcnId(String vcnId)
The OCID of the VCN to contain the subnet.
|
public CreateSubnetDetails.Builder availabilityDomain(String availabilityDomain)
The availability domain to contain the subnet.
Example: Uocm:PHX-AD-1
availabilityDomain
- the value to setpublic CreateSubnetDetails.Builder cidrBlock(String cidrBlock)
The CIDR IP address range of the subnet. The CIDR must maintain the following rules -
a. The CIDR block is valid and correctly formatted. b. The new range is within one of the parent VCN ranges.
Example: 10.0.1.0/24
cidrBlock
- the value to setpublic CreateSubnetDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment to contain the subnet.
compartmentId
- the value to setpublic CreateSubnetDetails.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"}}
definedTags
- the value to setpublic CreateSubnetDetails.Builder dhcpOptionsId(String dhcpOptionsId)
The OCID of the set of DHCP options the subnet will use. If you don’t provide a value, the subnet uses the VCN’s default set of DHCP options.
dhcpOptionsId
- the value to setpublic CreateSubnetDetails.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 CreateSubnetDetails.Builder dnsLabel(String dnsLabel)
A DNS label for the subnet, used in conjunction with the VNIC’s hostname and
VCN’s DNS label to form a fully qualified domain name (FQDN) for each VNIC
within this subnet (for example, bminstance-1.subnet123.vcn1.oraclevcn.com
).
Must be an alphanumeric string that begins with a letter and is unique within the VCN.
The value cannot be changed.
This value must be set if you want to use the Internet and VCN Resolver to resolve the hostnames of instances in the subnet. It can only be set if the VCN itself was created with a DNS label.
For more information, see [DNS in Your Virtual Cloud Network](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm).
Example: subnet123
dnsLabel
- the value to setpublic CreateSubnetDetails.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"}
freeformTags
- the value to setpublic CreateSubnetDetails.Builder ipv6CidrBlock(String ipv6CidrBlock)
Use this to enable IPv6 addressing for this subnet. The VCN must be enabled for IPv6. You can’t change this subnet characteristic later. All subnets are /64 in size. The subnet portion of the IPv6 address is the fourth hextet from the left (1111 in the following example).
For important details about IPv6 addressing in a VCN, see [IPv6 Addresses](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm).
Example: 2001:0db8:0123:1111::/64
ipv6CidrBlock
- the value to setpublic CreateSubnetDetails.Builder prohibitPublicIpOnVnic(Boolean prohibitPublicIpOnVnic)
Whether VNICs within this subnet can have public IP addresses.
Defaults to false, which means VNICs created in this subnet will
automatically be assigned public IP addresses unless specified
otherwise during instance launch or VNIC creation (with the
assignPublicIp
flag in CreateVnicDetails
).
If prohibitPublicIpOnVnic
is set to true, VNICs created in this
subnet cannot have public IP addresses (that is, it’s a private
subnet).
For IPv6, if prohibitPublicIpOnVnic
is set to true
, internet access is not allowed for any
IPv6s assigned to VNICs in the subnet.
Example: true
prohibitPublicIpOnVnic
- the value to setpublic CreateSubnetDetails.Builder routeTableId(String routeTableId)
The OCID of the route table the subnet will use. If you don’t provide a value, the subnet uses the VCN’s default route table.
routeTableId
- the value to setpublic CreateSubnetDetails.Builder securityListIds(List<String> securityListIds)
The OCIDs of the security list or lists the subnet will use. If you don’t provide a value, the subnet uses the VCN’s default security list. Remember that security lists are associated with the subnet, but the rules are applied to the individual VNICs in the subnet.
securityListIds
- the value to setpublic CreateSubnetDetails.Builder vcnId(String vcnId)
The OCID of the VCN to contain the subnet.
vcnId
- the value to setpublic CreateSubnetDetails build()
public CreateSubnetDetails.Builder copy(CreateSubnetDetails model)
Copyright © 2016–2023. All rights reserved.