Class VnicAttachment.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • availabilityDomain

        public VnicAttachment.Builder availabilityDomain​(String availabilityDomain)
        The availability domain of the instance.

        Example: Uocm:PHX-AD-1

        Parameters:
        availabilityDomain - the value to set
        Returns:
        this builder
      • compartmentId

        public VnicAttachment.Builder compartmentId​(String compartmentId)
        The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public VnicAttachment.Builder displayName​(String displayName)
        A user-friendly name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • id

        public VnicAttachment.Builder id​(String id)
        The OCID of the VNIC attachment.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • instanceId

        public VnicAttachment.Builder instanceId​(String instanceId)
        The OCID of the instance.
        Parameters:
        instanceId - the value to set
        Returns:
        this builder
      • nicIndex

        public 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).

        Parameters:
        nicIndex - the value to set
        Returns:
        this builder
      • subnetId

        public VnicAttachment.Builder subnetId​(String subnetId)
        The OCID of the subnet to create the VNIC in.
        Parameters:
        subnetId - the value to set
        Returns:
        this builder
      • vlanId

        public 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.

        Parameters:
        vlanId - the value to set
        Returns:
        this builder
      • timeCreated

        public 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

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • vlanTag

        public 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

        Parameters:
        vlanTag - the value to set
        Returns:
        this builder
      • vnicId

        public VnicAttachment.Builder vnicId​(String vnicId)
        The OCID of the VNIC.

        Available after the attachment process is complete.

        Parameters:
        vnicId - the value to set
        Returns:
        this builder