Class CreateInstanceNetworkAttachmentOptions

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class CreateInstanceNetworkAttachmentOptions
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    The createInstanceNetworkAttachment options.
    • Method Detail

      • instanceId

        public String instanceId()
        Gets the instanceId. The virtual server instance identifier.
        Returns:
        the instanceId
      • virtualNetworkInterface

        public InstanceNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface()
        Gets the virtualNetworkInterface. A virtual network interface for the instance network attachment. This can be specified using an existing virtual network interface, or a prototype object for a new virtual network interface. If an existing virtual network interface is specified, `enable_infrastructure_nat` must be `true`.
        Returns:
        the virtualNetworkInterface
      • name

        public String name()
        Gets the name. The name for this network attachment. Names must be unique within the instance the network attachment resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.
        Returns:
        the name