public static final class HostTypes.FilterSpec.Builder
extends java.lang.Object
HostTypes.FilterSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
HostTypes.FilterSpec . |
Modifier and Type | Method and Description |
---|---|
HostTypes.FilterSpec |
build() |
HostTypes.FilterSpec.Builder |
setClusters(java.util.Set<java.lang.String> clusters)
Clusters that must contain the hosts for the hosts to match the filter.
|
HostTypes.FilterSpec.Builder |
setConnectionStates(java.util.Set<HostTypes.ConnectionState> connectionStates)
Connection states that a host must be in to match the filter (see
HostTypes.Summary.getConnectionState() . |
HostTypes.FilterSpec.Builder |
setDatacenters(java.util.Set<java.lang.String> datacenters)
Datacenters that must contain the hosts for the hosts to match the filter.
|
HostTypes.FilterSpec.Builder |
setFolders(java.util.Set<java.lang.String> folders)
Folders that must contain the hosts for the hosts to match the filter.
|
HostTypes.FilterSpec.Builder |
setHosts(java.util.Set<java.lang.String> hosts)
Identifiers of hosts that can match the filter.
|
HostTypes.FilterSpec.Builder |
setNames(java.util.Set<java.lang.String> names)
Names that hosts must have to match the filter (see
HostTypes.Summary.getName() ). |
HostTypes.FilterSpec.Builder |
setStandalone(java.lang.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 Builder()
HostTypes.FilterSpec
.public HostTypes.FilterSpec.Builder setHosts(java.util.Set<java.lang.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(java.util.Set<java.lang.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(java.util.Set<java.lang.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(java.util.Set<java.lang.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(java.lang.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(java.util.Set<java.lang.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(java.util.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()