Class GatewayVirtualConnectionPatchTemplate

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

    public class GatewayVirtualConnectionPatchTemplate
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Patch virtual connection template.
    • Method Detail

      • name

        public String name()
        Gets the name. The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute.
        Returns:
        the name
      • status

        public String status()
        Gets the status. Status of the virtual connection. Virtual connections that span IBM Cloud Accounts are created in approval_pending status. The owner of the target network can accept or reject connection requests by patching status to attached or rejected respectively.
        Returns:
        the status
      • asPatch

        public Map<String,​Object> asPatch()
        Construct a JSON merge-patch from the GatewayVirtualConnectionPatchTemplate. Note that properties of the GatewayVirtualConnectionPatchTemplate with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.
        Returns:
        a JSON merge-patch for the GatewayVirtualConnectionPatchTemplate