Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Vnic.Builder |
availabilityDomain(String availabilityDomain)
The VNIC’s availability domain.
|
Vnic |
build() |
Vnic.Builder |
compartmentId(String compartmentId)
The OCID of the compartment containing the VNIC.
|
Vnic.Builder |
copy(Vnic model) |
Vnic.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Vnic.Builder |
displayName(String displayName)
A user-friendly name.
|
Vnic.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
Vnic.Builder |
hostnameLabel(String hostnameLabel)
The hostname for the VNIC’s primary private IP.
|
Vnic.Builder |
id(String id)
The OCID of the VNIC.
|
Vnic.Builder |
isPrimary(Boolean isPrimary)
Whether the VNIC is the primary VNIC (the VNIC that is automatically created
and attached during instance launch).
|
Vnic.Builder |
lifecycleState(Vnic.LifecycleState lifecycleState)
The current state of the VNIC.
|
Vnic.Builder |
macAddress(String macAddress)
The MAC address of the VNIC.
|
Vnic.Builder |
nsgIds(List<String> nsgIds)
A list of the OCIDs of the network security groups that the VNIC belongs to.
|
Vnic.Builder |
privateIp(String privateIp)
The private IP address of the primary
privateIp object on the VNIC. |
Vnic.Builder |
publicIp(String publicIp)
The public IP address of the VNIC, if one is assigned.
|
Vnic.Builder |
skipSourceDestCheck(Boolean skipSourceDestCheck)
Whether the source/destination check is disabled on the VNIC.
|
Vnic.Builder |
subnetId(String subnetId)
The OCID of the subnet the VNIC is in.
|
Vnic.Builder |
timeCreated(Date timeCreated)
The date and time the VNIC was created, in the format defined by RFC3339.
|
public Vnic.Builder availabilityDomain(String availabilityDomain)
The VNIC’s availability domain.
Example: Uocm:PHX-AD-1
availabilityDomain
- the value to setpublic Vnic.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the VNIC.
compartmentId
- the value to setpublic Vnic.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 Vnic.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 Vnic.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 Vnic.Builder hostnameLabel(String hostnameLabel)
The hostname for the VNIC’s primary private IP. Used for DNS. The value is the hostname
portion of the primary private IP’s fully qualified domain name (FQDN)
(for example, bminstance-1
in FQDN bminstance-1.subnet123.vcn1.oraclevcn.com
).
Must be unique across all VNICs in the subnet and comply with
RFC 952 and
RFC 1123.
For more information, see [DNS in Your Virtual Cloud Network](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm).
Example: bminstance-1
hostnameLabel
- the value to setpublic Vnic.Builder id(String id)
The OCID of the VNIC.
id
- the value to setpublic Vnic.Builder isPrimary(Boolean isPrimary)
Whether the VNIC is the primary VNIC (the VNIC that is automatically created and attached during instance launch).
isPrimary
- the value to setpublic Vnic.Builder lifecycleState(Vnic.LifecycleState lifecycleState)
The current state of the VNIC.
lifecycleState
- the value to setpublic Vnic.Builder macAddress(String macAddress)
The MAC address of the VNIC.
Example: 00:00:00:00:00:01
macAddress
- the value to setpublic Vnic.Builder nsgIds(List<String> nsgIds)
A list of the OCIDs of the network security groups that the VNIC belongs to.
For more information about NSGs, see
NetworkSecurityGroup
.
nsgIds
- the value to setpublic Vnic.Builder privateIp(String privateIp)
The private IP address of the primary privateIp
object on the VNIC.
The address is within the CIDR of the VNIC’s subnet.
Example: 10.0.3.3
privateIp
- the value to setpublic Vnic.Builder publicIp(String publicIp)
The public IP address of the VNIC, if one is assigned.
publicIp
- the value to setpublic Vnic.Builder skipSourceDestCheck(Boolean skipSourceDestCheck)
Whether the source/destination check is disabled on the VNIC.
Defaults to false
, which means the check is performed. For information
about why you would skip the source/destination check, see
Using a Private IP as a Route Target.
Example: true
skipSourceDestCheck
- the value to setpublic Vnic.Builder subnetId(String subnetId)
The OCID of the subnet the VNIC is in.
subnetId
- the value to setpublic Vnic.Builder timeCreated(Date timeCreated)
The date and time the VNIC was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic Vnic build()
public Vnic.Builder copy(Vnic model)
Copyright © 2016–2023. All rights reserved.