public static final class TasksTypes.FilterSpec.Builder
extends java.lang.Object
TasksTypes.FilterSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
TasksTypes.FilterSpec . |
Modifier and Type | Method and Description |
---|---|
TasksTypes.FilterSpec |
build() |
TasksTypes.FilterSpec.Builder |
setOperations(java.util.Set<java.lang.String> operations)
Identifiers of operations.
|
TasksTypes.FilterSpec.Builder |
setServices(java.util.Set<java.lang.String> services)
Identifiers of services.
|
TasksTypes.FilterSpec.Builder |
setStatus(java.util.Set<Status> status)
Status that a task must have to match the filter (see
CommonInfo.getStatus() ). |
TasksTypes.FilterSpec.Builder |
setTargets(java.util.List<DynamicID> targets)
Identifiers of the targets the operation for the associated task created or was
performed on (see
CommonInfo.getTarget() ). |
TasksTypes.FilterSpec.Builder |
setTasks(java.util.Set<java.lang.String> tasks)
Identifiers of tasks that can match the filter.
|
TasksTypes.FilterSpec.Builder |
setUsers(java.util.Set<java.lang.String> users)
Users who must have initiated the operation for the associated task to match the
filter (see
CommonInfo.getUser() ). |
public Builder()
TasksTypes.FilterSpec
.public TasksTypes.FilterSpec.Builder setTasks(java.util.Set<java.lang.String> tasks)
null
if getServices()
is specified.
Currently all tasks must be from the same provider. If null
or empty,
tasks with any identifier will match the filter.tasks
- 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: com.vmware.cis.task
. When
methods return a value of this class as a return value, the property will
contain identifiers for the resource type: com.vmware.cis.task
.public TasksTypes.FilterSpec.Builder setServices(java.util.Set<java.lang.String> services)
CommonInfo.getService()
). This property
was added in vSphere API 6.7.1.
This property may be null
if getTasks()
is specified. Currently
all services must be from the same provider. If this property is null
or
empty, tasks for any service will match the filter.services
- 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: com.vmware.vapi.service
. When
methods return a value of this class as a return value, the property will
contain identifiers for the resource type: com.vmware.vapi.service
.public TasksTypes.FilterSpec.Builder setOperations(java.util.Set<java.lang.String> operations)
CommonInfo.getOperation()
).
Note that an
operation identifier by itself is not globally unique. To filter on an
operation, the identifier of the service interface containing the operation
should also be specified in getServices()
.
null
or empty, tasks associated with any operation will match the
filter.operations
- 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: com.vmware.vapi.operation
.
When methods return a value of this class as a return value, the property will
contain identifiers for the resource type: com.vmware.vapi.operation
.public TasksTypes.FilterSpec.Builder setStatus(java.util.Set<Status> status)
CommonInfo.getStatus()
). This property was added in vSphere
API 6.7.1.
If null
or empty, tasks with any status match the filter.status
- New value for the property.public TasksTypes.FilterSpec.Builder setTargets(java.util.List<DynamicID> targets)
CommonInfo.getTarget()
). This
property was added in vSphere API 6.7.1.
If null
or empty, tasks associated with operations on any target match
the filter.targets
- New value for the property.public TasksTypes.FilterSpec.Builder setUsers(java.util.Set<java.lang.String> users)
CommonInfo.getUser()
). This property was
added in vSphere API 6.7.1.
If null
or empty, tasks associated with operations initiated by any user
match the filter.users
- New value for the property.public TasksTypes.FilterSpec build()