public static final class ServiceDefinition.Builder
extends java.lang.Object
ServiceDefinition
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ServiceDefinition . |
Modifier and Type | Method and Description |
---|---|
ServiceDefinition |
build() |
ServiceDefinition.Builder |
setAttachmentPoint(java.util.List<java.lang.String> attachmentPoint)
Possible values are:
ServiceDefinition.ATTACHMENT_POINT_TIER0_LR
ServiceDefinition.ATTACHMENT_POINT_TIER1_LR
ServiceDefinition.ATTACHMENT_POINT_SERVICE_PLANE
The point at which the service is deployed/attached for redirecting the
traffic to the the partner appliance. |
ServiceDefinition.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.
|
ServiceDefinition.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.
|
ServiceDefinition.Builder |
setDescription(java.lang.String description)
Description of this resource
|
ServiceDefinition.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
ServiceDefinition.Builder |
setFunctionalities(java.util.List<java.lang.String> functionalities)
Possible values are:
ServiceDefinition.FUNCTIONALITIES_NG_FW ServiceDefinition.FUNCTIONALITIES_IDS_IPS ServiceDefinition.FUNCTIONALITIES_NET_MON ServiceDefinition.FUNCTIONALITIES_HCX ServiceDefinition.FUNCTIONALITIES_BYOD ServiceDefinition.FUNCTIONALITIES_EPP ServiceDefinition.FUNCTIONALITIES_TLB ServiceDefinition.FUNCTIONALITIES_MPS The
capabilities provided by the services. |
ServiceDefinition.Builder |
setId(java.lang.String id)
Unique identifier of this resource
|
ServiceDefinition.Builder |
setImplementations(java.util.List<java.lang.String> implementations)
Possible values are:
ServiceDefinition.IMPLEMENTATIONS_NORTH_SOUTH
ServiceDefinition.IMPLEMENTATIONS_EAST_WEST
This indicates the insertion point of the service i.e whether the service
will be used to protect North-South or East-West traffic in the datacenter. |
ServiceDefinition.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.
|
ServiceDefinition.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.
|
ServiceDefinition.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
ServiceDefinition.Builder |
setOnFailurePolicy(java.lang.String onFailurePolicy)
Possible values are:
ServiceDefinition.ON_FAILURE_POLICY_ALLOW ServiceDefinition.ON_FAILURE_POLICY_BLOCK
Failure policy for the service tells datapath, the action to take i.e to Allow
or Block traffic during failure scenarios. |
ServiceDefinition.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.
|
ServiceDefinition.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
ServiceDefinition.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
ServiceDefinition.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.
|
ServiceDefinition.Builder |
setSelf(SelfResourceLink self) |
ServiceDefinition.Builder |
setServiceCapability(ServiceCapability serviceCapability) |
ServiceDefinition.Builder |
setServiceDeploymentSpec(ServiceDeploymentSpec serviceDeploymentSpec) |
ServiceDefinition.Builder |
setServiceManagerId(java.lang.String serviceManagerId)
ID of the service manager to which this service is attached with.
|
ServiceDefinition.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.
|
ServiceDefinition.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
ServiceDefinition.Builder |
setTransports(java.util.List<java.lang.String> transports)
Possible values are:
ServiceDefinition.TRANSPORTS_L2_BRIDGE ServiceDefinition.TRANSPORTS_L3_ROUTED ServiceDefinition.TRANSPORTS_NSH Transport Type
of the service, which is the mechanism of redirecting the traffic to the the
partner appliance. |
ServiceDefinition.Builder |
setVendorId(java.lang.String vendorId)
Id which is unique to a vendor or partner for which the service is created.
|
public Builder()
ServiceDefinition
.public ServiceDefinition.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public ServiceDefinition.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public ServiceDefinition.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public ServiceDefinition.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public ServiceDefinition.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public ServiceDefinition.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public ServiceDefinition.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public ServiceDefinition.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public ServiceDefinition.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public ServiceDefinition.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public ServiceDefinition.Builder setDescription(java.lang.String description)
description
- New value for the property.public ServiceDefinition.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public ServiceDefinition.Builder setId(java.lang.String id)
id
- New value for the property.public ServiceDefinition.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public ServiceDefinition.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public ServiceDefinition.Builder setAttachmentPoint(java.util.List<java.lang.String> attachmentPoint)
attachmentPoint
- New value for the property.public ServiceDefinition.Builder setFunctionalities(java.util.List<java.lang.String> functionalities)
ServiceDefinition.FUNCTIONALITIES_NG_FW
ServiceDefinition.FUNCTIONALITIES_IDS_IPS
ServiceDefinition.FUNCTIONALITIES_NET_MON
ServiceDefinition.FUNCTIONALITIES_HCX
ServiceDefinition.FUNCTIONALITIES_BYOD
ServiceDefinition.FUNCTIONALITIES_EPP
ServiceDefinition.FUNCTIONALITIES_TLB
ServiceDefinition.FUNCTIONALITIES_MPS
functionalities
- New value for the property.public ServiceDefinition.Builder setImplementations(java.util.List<java.lang.String> implementations)
implementations
- New value for the property.public ServiceDefinition.Builder setOnFailurePolicy(java.lang.String onFailurePolicy)
onFailurePolicy
- New value for the property.public ServiceDefinition.Builder setServiceCapability(ServiceCapability serviceCapability)
serviceCapability
- New value for the property.public ServiceDefinition.Builder setServiceDeploymentSpec(ServiceDeploymentSpec serviceDeploymentSpec)
serviceDeploymentSpec
- New value for the property.public ServiceDefinition.Builder setServiceManagerId(java.lang.String serviceManagerId)
serviceManagerId
- New value for the property.public ServiceDefinition.Builder setTransports(java.util.List<java.lang.String> transports)
transports
- New value for the property.public ServiceDefinition.Builder setVendorId(java.lang.String vendorId)
vendorId
- New value for the property.public ServiceDefinition build()