Class ComputeInstanceVnicMapping.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • sourceVnicId

        public ComputeInstanceVnicMapping.Builder sourceVnicId​(String sourceVnicId)
        The OCID of the VNIC.

        Example: ocid1.vnic.oc1..uniqueID

        Parameters:
        sourceVnicId - the value to set
        Returns:
        this builder
      • destinationSubnetId

        public ComputeInstanceVnicMapping.Builder destinationSubnetId​(String destinationSubnetId)
        The OCID of the destination subnet to which the source VNIC should connect.

        Example: ocid1.subnet.oc1..uniqueID

        Parameters:
        destinationSubnetId - the value to set
        Returns:
        this builder
      • destinationNsgIdList

        public ComputeInstanceVnicMapping.Builder destinationNsgIdList​(List<String> destinationNsgIdList)
        A list of OCIDs of network security groups (NSG) in the destination region which should be assigned to the source VNIC.

        Example: [ ocid1.networksecuritygroup.oc1..uniqueID1, ocid1.networksecuritygroup.oc1..uniqueID2 ]

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