Package com.vmware.nsx_policy.model
Class IPSecVpnDpdProfile.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.IPSecVpnDpdProfile.Builder
-
- Enclosing class:
- IPSecVpnDpdProfile
public static final class IPSecVpnDpdProfile.Builder extends java.lang.Object
Builder class forIPSecVpnDpdProfile
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofIPSecVpnDpdProfile
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPSecVpnDpdProfile
build()
IPSecVpnDpdProfile.Builder
setChildren(java.util.List<com.vmware.vapi.bindings.Structure> children)
Subtree for this type within policy tree containing nested elements.IPSecVpnDpdProfile.Builder
setCreateTime(java.lang.Long createTime)
Timestamp of resource creation format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.IPSecVpnDpdProfile.Builder
setCreateUser(java.lang.String createUser)
ID of the user who created 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.IPSecVpnDpdProfile.Builder
setDescription(java.lang.String description)
Description of this resourceIPSecVpnDpdProfile.Builder
setDisplayName(java.lang.String displayName)
Defaults to ID if not setIPSecVpnDpdProfile.Builder
setDpdProbeInterval(java.lang.Long dpdProbeInterval)
DPD probe interval defines an interval for DPD probes (in seconds).IPSecVpnDpdProfile.Builder
setDpdProbeMode(java.lang.String dpdProbeMode)
Possible values are:IPSecVpnDpdProfile.DPD_PROBE_MODE_PERIODIC
IPSecVpnDpdProfile.DPD_PROBE_MODE_ON_DEMAND
DPD probe mode is used to query the liveliness of the peer.IPSecVpnDpdProfile.Builder
setEnabled(java.lang.Boolean enabled)
If true, enable dead peer detection.IPSecVpnDpdProfile.Builder
setId(java.lang.String id)
Unique identifier of this resourceIPSecVpnDpdProfile.Builder
setLastModifiedTime(java.lang.Long lastModifiedTime)
Timestamp of last modification format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.IPSecVpnDpdProfile.Builder
setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified 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.IPSecVpnDpdProfile.Builder
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.IPSecVpnDpdProfile.Builder
setMarkedForDelete(java.lang.Boolean markedForDelete)
Intent objects are not directly deleted from the system when a delete is invoked on them.IPSecVpnDpdProfile.Builder
setOriginSiteId(java.lang.String originSiteId)
This is a UUID generated by the system for knowing which site owns an object.IPSecVpnDpdProfile.Builder
setOverridden(java.lang.Boolean overridden)
Global intent objects cannot be modified by the user.IPSecVpnDpdProfile.Builder
setOwnerId(java.lang.String ownerId)
This is a UUID generated by the system for knowing who owns this object.IPSecVpnDpdProfile.Builder
setParentPath(java.lang.String parentPath)
Path of its parent This property may be present in responses from the server, but if it is present in a request to server it will be ignored.IPSecVpnDpdProfile.Builder
setPath(java.lang.String path)
Absolute path of this object This property may be present in responses from the server, but if it is present in a request to server it will be ignored.IPSecVpnDpdProfile.Builder
setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it.IPSecVpnDpdProfile.Builder
setRealizationId(java.lang.String realizationId)
This is a UUID generated by the system for realizing the entity object.IPSecVpnDpdProfile.Builder
setRelativePath(java.lang.String relativePath)
Path relative from its parent This property may be present in responses from the server, but if it is present in a request to server it will be ignored.IPSecVpnDpdProfile.Builder
setRemotePath(java.lang.String remotePath)
This is the path of the object on the local managers when queried on the NSX+ service, and path of the object on NSX+ service when queried from the local managers.IPSecVpnDpdProfile.Builder
setResourceType(java.lang.String resourceType)
The type of this resource.IPSecVpnDpdProfile.Builder
setRetryCount(java.lang.Long retryCount)
Maximum number of DPD messages' retry attempts.IPSecVpnDpdProfile.Builder
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.IPSecVpnDpdProfile.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.IPSecVpnDpdProfile.Builder
setSelf(SelfResourceLink self)
IPSecVpnDpdProfile.Builder
setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned 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.IPSecVpnDpdProfile.Builder
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API userIPSecVpnDpdProfile.Builder
setUniqueId(java.lang.String uniqueId)
This is a UUID generated by the GM/LM to uniquely identify entities in a federated environment.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofIPSecVpnDpdProfile
.
-
-
Method Detail
-
setLinks
public IPSecVpnDpdProfile.Builder setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
links
- New value for the property.
-
setSchema
public IPSecVpnDpdProfile.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.- Parameters:
schema
- New value for the property.
-
setSelf
public IPSecVpnDpdProfile.Builder setSelf(SelfResourceLink self)
- Parameters:
self
- New value for the property.
-
setRevision
public IPSecVpnDpdProfile.Builder setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32- Parameters:
revision
- New value for the property.
-
setCreateTime
public IPSecVpnDpdProfile.Builder setCreateTime(java.lang.Long createTime)
Timestamp of resource creation format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
createTime
- New value for the property.
-
setCreateUser
public IPSecVpnDpdProfile.Builder setCreateUser(java.lang.String createUser)
ID of the user who created 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.- Parameters:
createUser
- New value for the property.
-
setLastModifiedTime
public IPSecVpnDpdProfile.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
Timestamp of last modification format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
lastModifiedTime
- New value for the property.
-
setLastModifiedUser
public IPSecVpnDpdProfile.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified 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.- Parameters:
lastModifiedUser
- New value for the property.
-
setProtection
public IPSecVpnDpdProfile.Builder setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
protection
- New value for the property.
-
setSystemOwned
public IPSecVpnDpdProfile.Builder setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned 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.- Parameters:
systemOwned
- New value for the property.
-
setDescription
public IPSecVpnDpdProfile.Builder setDescription(java.lang.String description)
Description of this resource- Parameters:
description
- New value for the property.
-
setDisplayName
public IPSecVpnDpdProfile.Builder setDisplayName(java.lang.String displayName)
Defaults to ID if not set- Parameters:
displayName
- New value for the property.
-
setId
public IPSecVpnDpdProfile.Builder setId(java.lang.String id)
Unique identifier of this resource- Parameters:
id
- New value for the property.
-
setResourceType
public IPSecVpnDpdProfile.Builder setResourceType(java.lang.String resourceType)
The type of this resource.- Parameters:
resourceType
- New value for the property.
-
setTags
public IPSecVpnDpdProfile.Builder setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user- Parameters:
tags
- New value for the property.
-
setOriginSiteId
public IPSecVpnDpdProfile.Builder setOriginSiteId(java.lang.String originSiteId)
This is a UUID generated by the system for knowing which site owns an object. This is used in NSX+. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
originSiteId
- New value for the property.
-
setOwnerId
public IPSecVpnDpdProfile.Builder setOwnerId(java.lang.String ownerId)
This is a UUID generated by the system for knowing who owns this object. This is used in NSX+. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
ownerId
- New value for the property.
-
setParentPath
public IPSecVpnDpdProfile.Builder setParentPath(java.lang.String parentPath)
Path of its parent This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
parentPath
- New value for the property.
-
setPath
public IPSecVpnDpdProfile.Builder setPath(java.lang.String path)
Absolute path of this object This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
path
- New value for the property.
-
setRealizationId
public IPSecVpnDpdProfile.Builder setRealizationId(java.lang.String realizationId)
This is a UUID generated by the system for realizing the entity object. In most cases this should be same as 'unique_id' of the entity. However, in some cases this can be different because of entities have migrated their unique identifier to NSX Policy intent objects later in the timeline and did not use unique_id for realization. Realization id is helpful for users to debug data path to correlate the configuration with corresponding intent. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
realizationId
- New value for the property.
-
setRelativePath
public IPSecVpnDpdProfile.Builder setRelativePath(java.lang.String relativePath)
Path relative from its parent This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
relativePath
- New value for the property.
-
setRemotePath
public IPSecVpnDpdProfile.Builder setRemotePath(java.lang.String remotePath)
This is the path of the object on the local managers when queried on the NSX+ service, and path of the object on NSX+ service when queried from the local managers. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
remotePath
- New value for the property.
-
setUniqueId
public IPSecVpnDpdProfile.Builder setUniqueId(java.lang.String uniqueId)
This is a UUID generated by the GM/LM to uniquely identify entities in a federated environment. For entities that are stretched across multiple sites, the same ID will be used on all the stretched sites. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
uniqueId
- New value for the property.
-
setChildren
public IPSecVpnDpdProfile.Builder setChildren(java.util.List<com.vmware.vapi.bindings.Structure> children)
Subtree for this type within policy tree containing nested elements. Note that this type is applicable to be used in Hierarchical API only.- Parameters:
children
- New value for the property. When clients pass a value of this class as a parameter, the property must contain all the properties defined inChildPolicyConfigResource
. When methods return a value of this class as a return value, the property will contain all the properties defined inChildPolicyConfigResource
.
-
setMarkedForDelete
public IPSecVpnDpdProfile.Builder setMarkedForDelete(java.lang.Boolean markedForDelete)
Intent objects are not directly deleted from the system when a delete is invoked on them. They are marked for deletion and only when all the realized entities for that intent object gets deleted, the intent object is deleted. Objects that are marked for deletion are not returned in GET call. One can use the search API to get these objects. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
markedForDelete
- New value for the property.
-
setOverridden
public IPSecVpnDpdProfile.Builder setOverridden(java.lang.Boolean overridden)
Global intent objects cannot be modified by the user. However, certain global intent objects can be overridden locally by use of this property. In such cases, the overridden local values take precedence over the globally defined values for the properties. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
overridden
- New value for the property.
-
setDpdProbeInterval
public IPSecVpnDpdProfile.Builder setDpdProbeInterval(java.lang.Long dpdProbeInterval)
DPD probe interval defines an interval for DPD probes (in seconds). - When the DPD probe mode is periodic, this interval is the number of seconds between DPD messages. - When the DPD probe mode is on-demand, this interval is the number of seconds during which traffic is not received from the peer before DPD retry messages are sent if there is IPSec traffic to send. For PERIODIC Mode: Minimum: 3 Maximum: 360 Default: 60 For ON_DEMAND Mode: Minimum: 1 Maximum: 10 Default: 10 format: int64- Parameters:
dpdProbeInterval
- New value for the property.
-
setDpdProbeMode
public IPSecVpnDpdProfile.Builder setDpdProbeMode(java.lang.String dpdProbeMode)
Possible values are: DPD probe mode is used to query the liveliness of the peer. Two modes are possible: - PERIODIC: is used to query the liveliness of the peer at regular intervals (dpd_probe_interval). It does not take into consideration traffic coming from the peer. The benefit of this mode over the on-demand mode is earlier detection of dead peers. However, use of periodic DPD incurs extra overhead. When communicating to large numbers of peers, please consider using on-demand DPD instead. - ON_DEMAND: is used to query the liveliness of the peer by instructing the local endpoint to send DPD message to a peer if there is traffic to send to the peer AND the peer was idle for dpd_probe_interval seconds (i.e. there was no traffic from the peer for dpd_probe_interval seconds).- Parameters:
dpdProbeMode
- New value for the property.
-
setEnabled
public IPSecVpnDpdProfile.Builder setEnabled(java.lang.Boolean enabled)
If true, enable dead peer detection.- Parameters:
enabled
- New value for the property.
-
setRetryCount
public IPSecVpnDpdProfile.Builder setRetryCount(java.lang.Long retryCount)
Maximum number of DPD messages' retry attempts. This value is applicable for both dpd probe modes, periodic and on-demand. format: int64- Parameters:
retryCount
- New value for the property.
-
build
public IPSecVpnDpdProfile build()
-
-