public static final class LogicalSwitch.Builder
extends java.lang.Object
LogicalSwitch.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
LogicalSwitch. |
| Modifier and Type | Method and Description |
|---|---|
LogicalSwitch |
build() |
LogicalSwitch.Builder |
setAdminState(java.lang.String adminState)
Possible values are:
LogicalSwitch.ADMIN_STATE_UP LogicalSwitch.ADMIN_STATE_DOWN Represents
Desired state of the Logical Switch |
LogicalSwitch.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.
|
LogicalSwitch.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.
|
LogicalSwitch.Builder |
setDescription(java.lang.String description)
Description of this resource
|
LogicalSwitch.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
LogicalSwitch.Builder |
setExtraConfigs(java.util.List<ExtraConfig> extraConfigs)
This property could be used for vendor specific configuration in key value
string pairs, the setting in extra_configs will be automatically inheritted by
logical ports in the logical switch.
|
LogicalSwitch.Builder |
setGlobalVni(java.lang.Long globalVni)
The VNI is used for intersite traffic and the global logical switch ID.
|
LogicalSwitch.Builder |
setHybrid(java.lang.Boolean hybrid)
If this flag is set to true, then all the logical switch ports attached to this
logical switch will behave in a hybrid fashion.
|
LogicalSwitch.Builder |
setId(java.lang.String id)
Unique identifier of this resource
|
LogicalSwitch.Builder |
setIpPoolId(java.lang.String ipPoolId)
IP pool id that associated with a LogicalSwitch.
|
LogicalSwitch.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.
|
LogicalSwitch.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.
|
LogicalSwitch.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
LogicalSwitch.Builder |
setMacPoolId(java.lang.String macPoolId)
Mac pool id that associated with a LogicalSwitch.
|
LogicalSwitch.Builder |
setNodeLocalSwitch(java.lang.Boolean nodeLocalSwitch)
A flag to prevent BUM (broadcast, unknown-unicast and multicast) traffic from
reaching the other spanned edges.
|
LogicalSwitch.Builder |
setOriginId(java.lang.String originId)
ID populated by NSX when NSX on DVPG is used to indicate the source DVPG.
|
LogicalSwitch.Builder |
setOriginType(java.lang.String originType)
Possible values are:
LogicalSwitch.ORIGIN_TYPE_VCENTER The type of
source from which the DVPG is discovered
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
LogicalSwitch.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.
|
LogicalSwitch.Builder |
setReplicationMode(java.lang.String replicationMode)
Possible values are:
LogicalSwitch.REPLICATION_MODE_MTEP LogicalSwitch.REPLICATION_MODE_SOURCE
Replication mode of the Logical Switch |
LogicalSwitch.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
LogicalSwitch.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
LogicalSwitch.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.
|
LogicalSwitch.Builder |
setSelf(SelfResourceLink self) |
LogicalSwitch.Builder |
setSpan(java.util.List<java.lang.String> span)
Each manager ID represents the NSX Local Manager the logical switch connects.
|
LogicalSwitch.Builder |
setSwitchingProfileIds(java.util.List<SwitchingProfileTypeIdEntry> switchingProfileIds) |
LogicalSwitch.Builder |
setSwitchType(java.lang.String switchType)
Possible values are:
LogicalSwitch.SWITCH_TYPE_DEFAULT LogicalSwitch.SWITCH_TYPE_SERVICE_PLANE LogicalSwitch.SWITCH_TYPE_DHCP_RELAY LogicalSwitch.SWITCH_TYPE_GLOBAL LogicalSwitch.SWITCH_TYPE_INTER_ROUTER LogicalSwitch.SWITCH_TYPE_EVPN LogicalSwitch.SWITCH_TYPE_DVPG This field
indicates purpose of a LogicalSwitch. |
LogicalSwitch.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.
|
LogicalSwitch.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
LogicalSwitch.Builder |
setTransportZoneId(java.lang.String transportZoneId)
Id of the TransportZone to which this LogicalSwitch is associated
|
LogicalSwitch.Builder |
setUplinkTeamingPolicyName(java.lang.String uplinkTeamingPolicyName)
This name has to be one of the switching uplink teaming policy names listed
inside the logical switch's TransportZone.
|
LogicalSwitch.Builder |
setVlan(java.lang.Long vlan)
This property is dedicated to VLAN based network, to set VLAN of logical
network.
|
LogicalSwitch.Builder |
setVlanTrunkSpec(VlanTrunkSpec vlanTrunkSpec) |
LogicalSwitch.Builder |
setVni(java.lang.Long vni)
Only for OVERLAY network.
|
public Builder()
LogicalSwitch.public LogicalSwitch.Builder setLinks(java.util.List<ResourceLink> links)
links - New value for the property.public LogicalSwitch.Builder setSchema(java.lang.String schema)
schema - New value for the property.public LogicalSwitch.Builder setSelf(SelfResourceLink self)
self - New value for the property.public LogicalSwitch.Builder setRevision(java.lang.Long revision)
revision - New value for the property.public LogicalSwitch.Builder setCreateTime(java.lang.Long createTime)
createTime - New value for the property.public LogicalSwitch.Builder setCreateUser(java.lang.String createUser)
createUser - New value for the property.public LogicalSwitch.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime - New value for the property.public LogicalSwitch.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser - New value for the property.public LogicalSwitch.Builder setProtection(java.lang.String protection)
protection - New value for the property.public LogicalSwitch.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned - New value for the property.public LogicalSwitch.Builder setDescription(java.lang.String description)
description - New value for the property.public LogicalSwitch.Builder setDisplayName(java.lang.String displayName)
displayName - New value for the property.public LogicalSwitch.Builder setId(java.lang.String id)
id - New value for the property.public LogicalSwitch.Builder setResourceType(java.lang.String resourceType)
resourceType - New value for the property.public LogicalSwitch.Builder setTags(java.util.List<Tag> tags)
tags - New value for the property.public LogicalSwitch.Builder setAdminState(java.lang.String adminState)
adminState - New value for the property.public LogicalSwitch.Builder setExtraConfigs(java.util.List<ExtraConfig> extraConfigs)
extraConfigs - New value for the property.public LogicalSwitch.Builder setGlobalVni(java.lang.Long globalVni)
globalVni - New value for the property.public LogicalSwitch.Builder setHybrid(java.lang.Boolean hybrid)
hybrid - New value for the property.public LogicalSwitch.Builder setIpPoolId(java.lang.String ipPoolId)
ipPoolId - New value for the property.public LogicalSwitch.Builder setMacPoolId(java.lang.String macPoolId)
macPoolId - New value for the property.public LogicalSwitch.Builder setNodeLocalSwitch(java.lang.Boolean nodeLocalSwitch)
nodeLocalSwitch - New value for the property.public LogicalSwitch.Builder setOriginId(java.lang.String originId)
originId - New value for the property.public LogicalSwitch.Builder setOriginType(java.lang.String originType)
originType - New value for the property.public LogicalSwitch.Builder setReplicationMode(java.lang.String replicationMode)
replicationMode - New value for the property.public LogicalSwitch.Builder setSpan(java.util.List<java.lang.String> span)
span - New value for the property.public LogicalSwitch.Builder setSwitchType(java.lang.String switchType)
switchType - New value for the property.public LogicalSwitch.Builder setSwitchingProfileIds(java.util.List<SwitchingProfileTypeIdEntry> switchingProfileIds)
switchingProfileIds - New value for the property.public LogicalSwitch.Builder setTransportZoneId(java.lang.String transportZoneId)
transportZoneId - New value for the property.public LogicalSwitch.Builder setUplinkTeamingPolicyName(java.lang.String uplinkTeamingPolicyName)
uplinkTeamingPolicyName - New value for the property.public LogicalSwitch.Builder setVlan(java.lang.Long vlan)
vlan - New value for the property.public LogicalSwitch.Builder setVlanTrunkSpec(VlanTrunkSpec vlanTrunkSpec)
vlanTrunkSpec - New value for the property.public LogicalSwitch.Builder setVni(java.lang.Long vni)
vni - New value for the property.public LogicalSwitch build()