public static class VnicAttachment.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VnicAttachment.Builder |
availabilityDomain(String availabilityDomain)
The availability domain of the instance.
|
VnicAttachment |
build() |
VnicAttachment.Builder |
compartmentId(String compartmentId)
The OCID of the compartment the VNIC attachment is in, which is the same compartment the
instance is in.
|
VnicAttachment.Builder |
copy(VnicAttachment model) |
VnicAttachment.Builder |
displayName(String displayName)
A user-friendly name.
|
VnicAttachment.Builder |
id(String id)
The OCID of the VNIC attachment.
|
VnicAttachment.Builder |
instanceId(String instanceId)
The OCID of the instance.
|
VnicAttachment.Builder |
lifecycleState(VnicAttachment.LifecycleState lifecycleState)
The current state of the VNIC attachment.
|
VnicAttachment.Builder |
nicIndex(Integer nicIndex)
Which physical network interface card (NIC) the VNIC uses.
|
VnicAttachment.Builder |
subnetId(String subnetId)
The OCID of the subnet to create the VNIC in.
|
VnicAttachment.Builder |
timeCreated(Date timeCreated)
The date and time the VNIC attachment was created, in the format defined by
RFC3339.
|
VnicAttachment.Builder |
vlanId(String vlanId)
The OCID of the VLAN to create the VNIC in.
|
VnicAttachment.Builder |
vlanTag(Integer vlanTag)
The Oracle-assigned VLAN tag of the attached VNIC.
|
VnicAttachment.Builder |
vnicId(String vnicId)
The OCID of the VNIC.
|
public VnicAttachment.Builder availabilityDomain(String availabilityDomain)
The availability domain of the instance.
Example: Uocm:PHX-AD-1
availabilityDomain
- the value to setpublic VnicAttachment.Builder compartmentId(String compartmentId)
The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
compartmentId
- the value to setpublic VnicAttachment.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 VnicAttachment.Builder id(String id)
The OCID of the VNIC attachment.
id
- the value to setpublic VnicAttachment.Builder instanceId(String instanceId)
The OCID of the instance.
instanceId
- the value to setpublic VnicAttachment.Builder lifecycleState(VnicAttachment.LifecycleState lifecycleState)
The current state of the VNIC attachment.
lifecycleState
- the value to setpublic VnicAttachment.Builder nicIndex(Integer nicIndex)
Which physical network interface card (NIC) the VNIC uses. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
nicIndex
- the value to setpublic VnicAttachment.Builder subnetId(String subnetId)
The OCID of the subnet to create the VNIC in.
subnetId
- the value to setpublic VnicAttachment.Builder vlanId(String vlanId)
The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a
subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan
.
An error is returned if the instance already has a VNIC attached to it from this VLAN.
vlanId
- the value to setpublic VnicAttachment.Builder timeCreated(Date timeCreated)
The date and time the VNIC attachment was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic VnicAttachment.Builder vlanTag(Integer vlanTag)
The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
However, if the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution,
the vlanTag
value is instead the value of the vlanTag
attribute for the
VLAN. See Vlan
.
Example: 0
vlanTag
- the value to setpublic VnicAttachment.Builder vnicId(String vnicId)
The OCID of the VNIC. Available after the attachment process is complete.
vnicId
- the value to setpublic VnicAttachment build()
public VnicAttachment.Builder copy(VnicAttachment model)
Copyright © 2016–2024. All rights reserved.