public static final class IPSecVPNPolicyRule.Builder
extends java.lang.Object
IPSecVPNPolicyRule.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
IPSecVPNPolicyRule. |
| Modifier and Type | Method and Description |
|---|---|
IPSecVPNPolicyRule |
build() |
IPSecVPNPolicyRule.Builder |
setAction(java.lang.String action)
Possible values are:
IPSecVPNPolicyRule.ACTION_PROTECT IPSecVPNPolicyRule.ACTION_BYPASS PROTECT -
Protect rules are defined per policy based IPSec VPN session. |
IPSecVPNPolicyRule.Builder |
setDescription(java.lang.String description)
Description of this resource
|
IPSecVPNPolicyRule.Builder |
setDestinations(java.util.List<IPSecVPNPolicySubnet> destinations)
List of peer subnets.
|
IPSecVPNPolicyRule.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
IPSecVPNPolicyRule.Builder |
setEnabled(java.lang.Boolean enabled)
A flag to enable/disable the policy rule.
|
IPSecVPNPolicyRule.Builder |
setId(java.lang.String id)
Unique policy id.
|
IPSecVPNPolicyRule.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
IPSecVPNPolicyRule.Builder |
setLogged(java.lang.Boolean logged)
A flag to enable/disable the logging for the policy rule.
|
IPSecVPNPolicyRule.Builder |
setOwner(OwnerResourceLink owner) |
IPSecVPNPolicyRule.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
IPSecVPNPolicyRule.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
IPSecVPNPolicyRule.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
IPSecVPNPolicyRule.Builder |
setSelf(SelfResourceLink self) |
IPSecVPNPolicyRule.Builder |
setSources(java.util.List<IPSecVPNPolicySubnet> sources)
List of local subnets.
|
public Builder()
IPSecVPNPolicyRule.public IPSecVPNPolicyRule.Builder setLinks(java.util.List<ResourceLink> links)
links - New value for the property.public IPSecVPNPolicyRule.Builder setSchema(java.lang.String schema)
schema - New value for the property.public IPSecVPNPolicyRule.Builder setSelf(SelfResourceLink self)
self - New value for the property.public IPSecVPNPolicyRule.Builder setRevision(java.lang.Long revision)
revision - New value for the property.public IPSecVPNPolicyRule.Builder setOwner(OwnerResourceLink owner)
owner - New value for the property.public IPSecVPNPolicyRule.Builder setDescription(java.lang.String description)
description - New value for the property.public IPSecVPNPolicyRule.Builder setDisplayName(java.lang.String displayName)
displayName - New value for the property.public IPSecVPNPolicyRule.Builder setId(java.lang.String id)
id - New value for the property.public IPSecVPNPolicyRule.Builder setResourceType(java.lang.String resourceType)
resourceType - New value for the property.public IPSecVPNPolicyRule.Builder setAction(java.lang.String action)
action - New value for the property.public IPSecVPNPolicyRule.Builder setDestinations(java.util.List<IPSecVPNPolicySubnet> destinations)
destinations - New value for the property.public IPSecVPNPolicyRule.Builder setEnabled(java.lang.Boolean enabled)
enabled - New value for the property.public IPSecVPNPolicyRule.Builder setLogged(java.lang.Boolean logged)
logged - New value for the property.public IPSecVPNPolicyRule.Builder setSources(java.util.List<IPSecVPNPolicySubnet> sources)
sources - New value for the property.public IPSecVPNPolicyRule build()