public static final class VMTypes.FilterSpec.Builder extends Object
VMTypes.FilterSpec.| Constructor and Description |
|---|
VMTypes.FilterSpec.Builder()
Constructor with parameters for the required properties of
VMTypes.FilterSpec. |
| Modifier and Type | Method and Description |
|---|---|
VMTypes.FilterSpec |
build() |
VMTypes.FilterSpec.Builder |
setClusters(Set<String> clusters)
Clusters that must contain the virtual machine for the virtual machine to match
the filter.
|
VMTypes.FilterSpec.Builder |
setDatacenters(Set<String> datacenters)
Datacenters that must contain the virtual machine for the virtual machine to
match the filter.
|
VMTypes.FilterSpec.Builder |
setFolders(Set<String> folders)
Folders that must contain the virtual machine for the virtual machine to match
the filter.
|
VMTypes.FilterSpec.Builder |
setHosts(Set<String> hosts)
Hosts that must contain the virtual machine for the virtual machine to match the
filter.
|
VMTypes.FilterSpec.Builder |
setNames(Set<String> names)
Names that virtual machines must have to match the filter (see
VMTypes.Info.getName()). |
VMTypes.FilterSpec.Builder |
setPowerStates(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(Set<String> resourcePools)
Resource pools that must contain the virtual machine for the virtual machine to
match the filter.
|
VMTypes.FilterSpec.Builder |
setVms(Set<String> vms)
Identifiers of virtual machines that can match the filter.
|
public VMTypes.FilterSpec.Builder()
VMTypes.FilterSpec.public VMTypes.FilterSpec.Builder setVms(Set<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(Set<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(Set<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(Set<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(Set<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(Set<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(Set<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(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()
Copyright © 2016. All Rights Reserved.