Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Subnet.Builder |
availabilityDomain(String availabilityDomain)
The subnet’s availability domain.
|
Subnet |
build() |
Subnet.Builder |
cidrBlock(String cidrBlock)
The subnet’s CIDR block.
|
Subnet.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment containing the subnet.
|
Subnet.Builder |
copy(Subnet model) |
Subnet.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Subnet.Builder |
dhcpOptionsId(String dhcpOptionsId)
The OCID
of the set of DHCP options that the subnet uses.
|
Subnet.Builder |
displayName(String displayName)
A user-friendly name.
|
Subnet.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,
bminstance1.subnet123.vcn1.oraclevcn.com ). |
Subnet.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
Subnet.Builder |
id(String id)
The subnet’s Oracle ID
(OCID).
|
Subnet.Builder |
ipv6CidrBlock(String ipv6CidrBlock)
For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet’s IP address
space.
|
Subnet.Builder |
ipv6CidrBlocks(List<String> ipv6CidrBlocks)
The list of all IPv6 CIDR blocks (Oracle allocated IPv6 GUA, ULA or private IPv6 CIDR
blocks, BYOIPv6 CIDR blocks) for the subnet.
|
Subnet.Builder |
ipv6VirtualRouterIp(String ipv6VirtualRouterIp)
For an IPv6-enabled subnet, this is the IPv6 address of the virtual router.
|
Subnet.Builder |
lifecycleState(Subnet.LifecycleState lifecycleState)
The subnet’s current state.
|
Subnet.Builder |
prohibitInternetIngress(Boolean prohibitInternetIngress)
Whether to disallow ingress internet traffic to VNICs within this subnet.
|
Subnet.Builder |
prohibitPublicIpOnVnic(Boolean prohibitPublicIpOnVnic)
Whether VNICs within this subnet can have public IP addresses.
|
Subnet.Builder |
routeTableId(String routeTableId)
The OCID
of the route table that the subnet uses.
|
Subnet.Builder |
securityListIds(List<String> securityListIds)
The OCIDs of the security list or lists that the subnet uses.
|
Subnet.Builder |
subnetDomainName(String subnetDomainName)
The subnet’s domain name, which consists of the subnet’s DNS label, the VCN’s DNS label,
and the
oraclevcn.com domain. |
Subnet.Builder |
timeCreated(Date timeCreated)
The date and time the subnet was created, in the format defined by
RFC3339.
|
Subnet.Builder |
vcnId(String vcnId)
The OCID
of the VCN the subnet is in.
|
Subnet.Builder |
virtualRouterIp(String virtualRouterIp)
The IP address of the virtual router.
|
Subnet.Builder |
virtualRouterMac(String virtualRouterMac)
The MAC address of the virtual router.
|
public Subnet.Builder availabilityDomain(String availabilityDomain)
The subnet’s availability domain. This attribute will be null if this is a regional subnet instead of an AD-specific subnet. Oracle recommends creating regional subnets.
Example: Uocm:PHX-AD-1
availabilityDomain
- the value to setpublic Subnet.Builder cidrBlock(String cidrBlock)
The subnet’s CIDR block.
Example: 10.0.1.0/24
cidrBlock
- the value to setpublic Subnet.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the subnet.
compartmentId
- the value to setpublic Subnet.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 Subnet.Builder dhcpOptionsId(String dhcpOptionsId)
The OCID of the set of DHCP options that the subnet uses.
dhcpOptionsId
- the value to setpublic Subnet.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 Subnet.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, bminstance1.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.
The absence of this parameter means the Internet and VCN Resolver will not resolve hostnames of instances in this subnet.
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 Subnet.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 Subnet.Builder id(String id)
The subnet’s Oracle ID (OCID).
id
- the value to setpublic Subnet.Builder ipv6CidrBlock(String ipv6CidrBlock)
For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet’s IP address space. The subnet size is always /64. See IPv6 Addresses.
Example: 2001:0db8:0123:1111::/64
ipv6CidrBlock
- the value to setpublic Subnet.Builder ipv6CidrBlocks(List<String> ipv6CidrBlocks)
The list of all IPv6 CIDR blocks (Oracle allocated IPv6 GUA, ULA or private IPv6 CIDR blocks, BYOIPv6 CIDR blocks) for the subnet.
ipv6CidrBlocks
- the value to setpublic Subnet.Builder ipv6VirtualRouterIp(String ipv6VirtualRouterIp)
For an IPv6-enabled subnet, this is the IPv6 address of the virtual router.
Example: 2001:0db8:0123:1111:89ab:cdef:1234:5678
ipv6VirtualRouterIp
- the value to setpublic Subnet.Builder lifecycleState(Subnet.LifecycleState lifecycleState)
The subnet’s current state.
lifecycleState
- the value to setpublic Subnet.Builder prohibitInternetIngress(Boolean prohibitInternetIngress)
Whether to disallow ingress internet traffic to VNICs within this subnet. Defaults to false.
For IPV4, prohibitInternetIngress
behaves similarly to prohibitPublicIpOnVnic
. If it is set to false, 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 prohibitInternetIngress
is set to true, VNICs created in
this subnet cannot have public IP addresses (that is, it's a privatesubnet).
For IPv6, if prohibitInternetIngress
is set to true
, internet access
is not allowed for any IPv6s assigned to VNICs in the subnet. Otherwise, ingress internet
traffic is allowed by default.
Example: true
prohibitInternetIngress
- the value to setpublic Subnet.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).
Example: true
prohibitPublicIpOnVnic
- the value to setpublic Subnet.Builder routeTableId(String routeTableId)
The OCID of the route table that the subnet uses.
routeTableId
- the value to setpublic Subnet.Builder securityListIds(List<String> securityListIds)
The OCIDs of the security list or lists that the subnet uses. 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 Subnet.Builder subnetDomainName(String subnetDomainName)
The subnet’s domain name, which consists of the subnet’s DNS label, the VCN’s DNS label,
and the oraclevcn.com
domain.
For more information, see [DNS in Your Virtual Cloud Network](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm).
Example: subnet123.vcn1.oraclevcn.com
subnetDomainName
- the value to setpublic Subnet.Builder timeCreated(Date timeCreated)
The date and time the subnet was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic Subnet.Builder vcnId(String vcnId)
The OCID of the VCN the subnet is in.
vcnId
- the value to setpublic Subnet.Builder virtualRouterIp(String virtualRouterIp)
The IP address of the virtual router.
Example: 10.0.14.1
virtualRouterIp
- the value to setpublic Subnet.Builder virtualRouterMac(String virtualRouterMac)
The MAC address of the virtual router.
Example: 00:00:00:00:00:01
virtualRouterMac
- the value to setpublic Subnet build()
public Subnet.Builder copy(Subnet model)
Copyright © 2016–2024. All rights reserved.