public static final class VMTypes.FilterSpec.Builder
extends java.lang.Object
VMTypes.FilterSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
VMTypes.FilterSpec . |
Modifier and Type | Method and Description |
---|---|
VMTypes.FilterSpec |
build() |
VMTypes.FilterSpec.Builder |
setClusters(java.util.Set<java.lang.String> clusters)
Clusters that must contain the virtual machine for the virtual machine to match
the filter.
|
VMTypes.FilterSpec.Builder |
setDatacenters(java.util.Set<java.lang.String> datacenters)
Datacenters that must contain the virtual machine for the virtual machine to
match the filter.
|
VMTypes.FilterSpec.Builder |
setFolders(java.util.Set<java.lang.String> folders)
Folders that must contain the virtual machine for the virtual machine to match
the filter.
|
VMTypes.FilterSpec.Builder |
setHosts(java.util.Set<java.lang.String> hosts)
Hosts that must contain the virtual machine for the virtual machine to match the
filter.
|
VMTypes.FilterSpec.Builder |
setNames(java.util.Set<java.lang.String> names)
Names that virtual machines must have to match the filter (see
VMTypes.Info.getName() ). |
VMTypes.FilterSpec.Builder |
setPowerStates(java.util.Set<PowerTypes.State> powerStates)
Power states that a virtual machine must be in to match the filter (see
PowerTypes.Info.getState() . |
VMTypes.FilterSpec.Builder |
setResourcePools(java.util.Set<java.lang.String> resourcePools)
Resource pools that must contain the virtual machine for the virtual machine to
match the filter.
|
VMTypes.FilterSpec.Builder |
setVms(java.util.Set<java.lang.String> vms)
Identifiers of virtual machines that can match the filter.
|
public Builder()
VMTypes.FilterSpec
.public VMTypes.FilterSpec.Builder setVms(java.util.Set<java.lang.String> vms)
null
or empty, virtual machines with any identifier match the filter.vms
- 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: VirtualMachine
. When methods
return a value of this class as a return value, the property will contain
identifiers for the resource type: VirtualMachine
.public VMTypes.FilterSpec.Builder setNames(java.util.Set<java.lang.String> names)
VMTypes.Info.getName()
).
If null
or empty, virtual machines with any name match the filter.names
- New value for the property.public VMTypes.FilterSpec.Builder setFolders(java.util.Set<java.lang.String> folders)
null
or empty, virtual machines 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 VMTypes.FilterSpec.Builder setDatacenters(java.util.Set<java.lang.String> datacenters)
null
or empty, virtual machines 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 VMTypes.FilterSpec.Builder setHosts(java.util.Set<java.lang.String> hosts)
null
or empty, virtual machines on any host 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 VMTypes.FilterSpec.Builder setClusters(java.util.Set<java.lang.String> clusters)
null
or empty, virtual machines in any cluster 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 VMTypes.FilterSpec.Builder setResourcePools(java.util.Set<java.lang.String> resourcePools)
null
or empty, virtual machines in any resource pool match the
filter.resourcePools
- 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: ResourcePool
. When methods
return a value of this class as a return value, the property will contain
identifiers for the resource type: ResourcePool
.public VMTypes.FilterSpec.Builder setPowerStates(java.util.Set<PowerTypes.State> powerStates)
PowerTypes.Info.getState()
.
If null
or empty, virtual machines in any power state match the filter.powerStates
- New value for the property.public VMTypes.FilterSpec build()