public static final class HostTypes.FilterSpec.Builder extends Object
HostTypes.FilterSpec.| Constructor and Description |
|---|
HostTypes.FilterSpec.Builder()
Constructor with parameters for the required properties of
HostTypes.FilterSpec. |
| Modifier and Type | Method and Description |
|---|---|
HostTypes.FilterSpec |
build() |
HostTypes.FilterSpec.Builder |
setClusters(Set<String> clusters)
Clusters that must contain the hosts for the hosts to match the filter.
|
HostTypes.FilterSpec.Builder |
setConnectionStates(Set<HostTypes.ConnectionState> connectionStates)
Connection states that a host must be in to match the filter (see
HostTypes.Summary.getConnectionState(). |
HostTypes.FilterSpec.Builder |
setDatacenters(Set<String> datacenters)
Datacenters that must contain the hosts for the hosts to match the filter.
|
HostTypes.FilterSpec.Builder |
setFolders(Set<String> folders)
Folders that must contain the hosts for the hosts to match the filter.
|
HostTypes.FilterSpec.Builder |
setHosts(Set<String> hosts)
Identifiers of hosts that can match the filter.
|
HostTypes.FilterSpec.Builder |
setNames(Set<String> names)
Names that hosts must have to match the filter (see
HostTypes.Summary.getName()). |
HostTypes.FilterSpec.Builder |
setStandalone(Boolean standalone)
If true, only hosts that are not part of a cluster can match the filter, and if
false, only hosts that are are part of a cluster can match the filter.
|
public HostTypes.FilterSpec.Builder()
HostTypes.FilterSpec.public HostTypes.FilterSpec.Builder setHosts(Set<String> hosts)
null or empty, hosts with any identifier match the filter.hosts - New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: HostSystem. When methods
return a value of this class as a return value, the property will contain
identifiers for the resource type: HostSystem.public HostTypes.FilterSpec.Builder setNames(Set<String> names)
HostTypes.Summary.getName()).
If null or empty, hosts with any name match the filter.names - New value for the property.public HostTypes.FilterSpec.Builder setFolders(Set<String> folders)
null or empty, hosts in any folder match the filter.folders - New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: Folder. When methods return a
value of this class as a return value, the property will contain identifiers for
the resource type: Folder.public HostTypes.FilterSpec.Builder setDatacenters(Set<String> datacenters)
null or empty, hosts in any datacenter match the filter.datacenters - New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: Datacenter. When methods
return a value of this class as a return value, the property will contain
identifiers for the resource type: Datacenter.public HostTypes.FilterSpec.Builder setStandalone(Boolean standalone)
null Hosts can match filter independent of whether they are part of a
cluster or not. If this field is true and HostTypes.FilterSpec.getClusters() os not empty, no hosts will
match the filter.standalone - New value for the property.public HostTypes.FilterSpec.Builder setClusters(Set<String> clusters)
null or empty, hosts in any cluster and hosts that are not in a
cluster match the filter. If this property is not empty and HostTypes.FilterSpec.getStandalone() is true, no hosts will
match the filter.clusters - New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: ClusterComputeResource. When
methods return a value of this class as a return value, the property will
contain identifiers for the resource type: ClusterComputeResource.public HostTypes.FilterSpec.Builder setConnectionStates(Set<HostTypes.ConnectionState> connectionStates)
HostTypes.Summary.getConnectionState().
If null or empty, hosts in any connection state match the filter.connectionStates - New value for the property.public HostTypes.FilterSpec build()
Copyright © 2016. All Rights Reserved.