Class GatewayVirtualConnectionPatchTemplate
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.networking.direct_link.v1.model.GatewayVirtualConnectionPatchTemplate
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class GatewayVirtualConnectionPatchTemplate extends com.ibm.cloud.sdk.core.service.model.GenericModelPatch virtual connection template.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGatewayVirtualConnectionPatchTemplate.BuilderBuilder.static interfaceGatewayVirtualConnectionPatchTemplate.StatusStatus of the virtual connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asPatch()Construct a JSON merge-patch from the GatewayVirtualConnectionPatchTemplate.Stringname()Gets the name.GatewayVirtualConnectionPatchTemplate.BuildernewBuilder()New builder.Stringstatus()Gets the status.
-
-
-
Method Detail
-
newBuilder
public GatewayVirtualConnectionPatchTemplate.Builder newBuilder()
New builder.- Returns:
- a GatewayVirtualConnectionPatchTemplate builder
-
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
-
-