public static final class VirtualSwitch.Builder
extends java.lang.Object
VirtualSwitch
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
VirtualSwitch . |
Modifier and Type | Method and Description |
---|---|
VirtualSwitch |
build() |
VirtualSwitch.Builder |
setCmLocalId(java.lang.String cmLocalId)
ID of the virtual switch in compute manager
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
VirtualSwitch.Builder |
setDescription(java.lang.String description)
Description of this resource
|
VirtualSwitch.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
VirtualSwitch.Builder |
setExternalId(java.lang.String externalId)
External id of the virtual switch
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
VirtualSwitch.Builder |
setLastSyncTime(java.lang.Long lastSyncTime)
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.
|
VirtualSwitch.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
VirtualSwitch.Builder |
setOriginId(java.lang.String originId)
ID of the compute manager where this virtual switch is discovered.
|
VirtualSwitch.Builder |
setOriginType(java.lang.String originType)
Switch type like VmwareDistributedVirtualSwitch
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
VirtualSwitch.Builder |
setOwnerNsx(java.lang.String ownerNsx)
Possible values are:
VirtualSwitch.OWNER_NSX_SELF VirtualSwitch.OWNER_NSX_OTHER VirtualSwitch.OWNER_NSX_MULTIPLE VirtualSwitch.OWNER_NSX_NONE Specifies owner
nsx of the virtual switch. |
VirtualSwitch.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
VirtualSwitch.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.
|
VirtualSwitch.Builder |
setScope(java.util.List<DiscoveredResourceScope> scope)
Specifies list of scope of discovered resource.
|
VirtualSwitch.Builder |
setSelf(SelfResourceLink self) |
VirtualSwitch.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
public Builder()
VirtualSwitch
.public VirtualSwitch.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public VirtualSwitch.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public VirtualSwitch.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public VirtualSwitch.Builder setLastSyncTime(java.lang.Long lastSyncTime)
lastSyncTime
- New value for the property.public VirtualSwitch.Builder setDescription(java.lang.String description)
description
- New value for the property.public VirtualSwitch.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public VirtualSwitch.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public VirtualSwitch.Builder setScope(java.util.List<DiscoveredResourceScope> scope)
scope
- New value for the property.public VirtualSwitch.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public VirtualSwitch.Builder setCmLocalId(java.lang.String cmLocalId)
cmLocalId
- New value for the property.public VirtualSwitch.Builder setExternalId(java.lang.String externalId)
externalId
- New value for the property.public VirtualSwitch.Builder setOriginId(java.lang.String originId)
originId
- New value for the property.public VirtualSwitch.Builder setOriginType(java.lang.String originType)
originType
- New value for the property.public VirtualSwitch.Builder setOwnerNsx(java.lang.String ownerNsx)
ownerNsx
- New value for the property.public VirtualSwitch build()