Package com.ibm.cloud.is.vpc.v1.model
Class VPNGatewayConnectionPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.VPNGatewayConnectionPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class VPNGatewayConnectionPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
VPNGatewayConnectionPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VPNGatewayConnectionPatch.Builder
Builder.static interface
VPNGatewayConnectionPatch.RoutingProtocol
Routing protocols are disabled for this VPN gateway connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
adminStateUp()
Gets the adminStateUp.Map<String,Object>
asPatch()
Construct a JSON merge-patch from the VPNGatewayConnectionPatch.VPNGatewayConnectionDPDPatch
deadPeerDetection()
Gets the deadPeerDetection.VPNGatewayConnectionIKEPolicyPatch
ikePolicy()
Gets the ikePolicy.VPNGatewayConnectionIPsecPolicyPatch
ipsecPolicy()
Gets the ipsecPolicy.String
name()
Gets the name.VPNGatewayConnectionPatch.Builder
newBuilder()
New builder.String
peerAddress()
Gets the peerAddress.String
psk()
Gets the psk.String
routingProtocol()
Gets the routingProtocol.
-
-
-
Method Detail
-
newBuilder
public VPNGatewayConnectionPatch.Builder newBuilder()
New builder.- Returns:
- a VPNGatewayConnectionPatch builder
-
adminStateUp
public Boolean adminStateUp()
Gets the adminStateUp. If set to false, the VPN gateway connection is shut down.- Returns:
- the adminStateUp
-
deadPeerDetection
public VPNGatewayConnectionDPDPatch deadPeerDetection()
Gets the deadPeerDetection. The Dead Peer Detection settings.- Returns:
- the deadPeerDetection
-
ikePolicy
public VPNGatewayConnectionIKEPolicyPatch ikePolicy()
Gets the ikePolicy. The IKE policy to use. Specify `null` to remove any existing policy, [resulting in auto-negotiation](https://cloud.ibm.com/docs/vpc?topic=vpc-using-vpn&interface=ui#ike-auto-negotiation-phase-1).- Returns:
- the ikePolicy
-
ipsecPolicy
public VPNGatewayConnectionIPsecPolicyPatch ipsecPolicy()
Gets the ipsecPolicy. The IPsec policy to use. Specify `null` to remove any existing policy, [resulting in auto-negotiation](https://cloud.ibm.com/docs/vpc?topic=vpc-using-vpn&interface=ui#ipsec-auto-negotiation-phase-2).- Returns:
- the ipsecPolicy
-
name
public String name()
Gets the name. The name for this VPN gateway connection. The name must not be used by another connection for the VPN gateway.- Returns:
- the name
-
peerAddress
public String peerAddress()
Gets the peerAddress. The IP address of the peer VPN gateway.- Returns:
- the peerAddress
-
psk
public String psk()
Gets the psk. The pre-shared key.- Returns:
- the psk
-
routingProtocol
public String routingProtocol()
Gets the routingProtocol. Routing protocols are disabled for this VPN gateway connection.- Returns:
- the routingProtocol
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the VPNGatewayConnectionPatch. Note that properties of the VPNGatewayConnectionPatch 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 VPNGatewayConnectionPatch
-
-