public static final class ClusterTypes.FilterSpec.Builder
extends java.lang.Object
ClusterTypes.FilterSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ClusterTypes.FilterSpec . |
Modifier and Type | Method and Description |
---|---|
ClusterTypes.FilterSpec |
build() |
ClusterTypes.FilterSpec.Builder |
setClusters(java.util.Set<java.lang.String> clusters)
Identifiers of clusters that can match the filter.
|
ClusterTypes.FilterSpec.Builder |
setDatacenters(java.util.Set<java.lang.String> datacenters)
Datacenters that must contain the cluster for the cluster to match the filter.
|
ClusterTypes.FilterSpec.Builder |
setFolders(java.util.Set<java.lang.String> folders)
Folders that must contain the cluster for the cluster to match the filter.
|
ClusterTypes.FilterSpec.Builder |
setNames(java.util.Set<java.lang.String> names)
Names that clusters must have to match the filter (see
ClusterTypes.Info.getName() ). |
public Builder()
ClusterTypes.FilterSpec
.public ClusterTypes.FilterSpec.Builder setClusters(java.util.Set<java.lang.String> clusters)
null
or empty, clusters with any identifier 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 ClusterTypes.FilterSpec.Builder setNames(java.util.Set<java.lang.String> names)
ClusterTypes.Info.getName()
).
If null
or empty, clusters with any name match the filter.names
- New value for the property.public ClusterTypes.FilterSpec.Builder setFolders(java.util.Set<java.lang.String> folders)
null
or empty, clusters 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 ClusterTypes.FilterSpec.Builder setDatacenters(java.util.Set<java.lang.String> datacenters)
null
or empty, clusters 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 ClusterTypes.FilterSpec build()