Class OperationFilter
- java.lang.Object
-
- com.cumulocity.sdk.client.Filter
-
- com.cumulocity.sdk.client.devicecontrol.OperationFilter
-
public class OperationFilter extends Filter
A filter to be used in operation queries. The setter (by*) methods return the filter itself to provide chaining:OperationFilter filter = new OperationFilter().byStatus(status).byDevice(deviceId);
-
-
Constructor Summary
Constructors Constructor Description OperationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationFilter
byAgent(String agentId)
Specifies theagentId
query parameterOperationFilter
byDevice(String deviceId)
Specifies thedeviceId
query parameterOperationFilter
byFragmentType(Class<?> fragmentClass)
Specifies thefragmentType
query parameterOperationFilter
byFragmentType(String fragmentType)
OperationFilter
byStatus(OperationStatus status)
Specifies thestatus
query parameterString
getAgent()
String
getDevice()
String
getFragmentType()
String
getStatus()
-
Methods inherited from class com.cumulocity.sdk.client.Filter
encode, getQueryParams
-
-
-
-
Method Detail
-
byFragmentType
public OperationFilter byFragmentType(Class<?> fragmentClass)
Specifies thefragmentType
query parameter- Parameters:
fragmentClass
- the class representation of the type of the operation(s)- Returns:
- the operation filter with
fragmentType
set
-
byFragmentType
public OperationFilter byFragmentType(String fragmentType)
-
byStatus
public OperationFilter byStatus(OperationStatus status)
Specifies thestatus
query parameter- Parameters:
status
- status of the operation(s)- Returns:
- the operation filter with
status
set
-
byDevice
public OperationFilter byDevice(String deviceId)
Specifies thedeviceId
query parameter- Parameters:
deviceId
- id of the device associated with the the operations(s)- Returns:
- the operation filter with
deviceId
set
-
byAgent
public OperationFilter byAgent(String agentId)
Specifies theagentId
query parameter- Parameters:
agentId
- id of the agent associated with the the operations(s)- Returns:
- the operation filter with
agentId
set
-
getStatus
public String getStatus()
- Returns:
- the
status
parameter of the query
-
getDevice
public String getDevice()
- Returns:
- the
deviceId
parameter of the query
-
getAgent
public String getAgent()
- Returns:
- the
agentId
parameter of the query
-
getFragmentType
public String getFragmentType()
- Returns:
- the
fragmentType
parameter of the query
-
-