Cumulocity API Services / com.softwareag.jc.cumulocity.services.models / ManagedObjectQuery

ManagedObjectQuery

class ManagedObjectQuery

Class representing a set of query arguments to used when using the query method of the ManagedObjectsService to fetch ManagedObjects. Currently all queries have to be true i.e. they are ANDED together

Types

Operator

enum class Operator

Represents the operator to be applied to the value of the query i.e. equals, not equals etc.

Query

data class Query

Represents an individual query to be applied, consisting of a key (left hand), an operator and a value (right hand). If the operator is blank, then the key is assumed to be a function e.g.

Constructors

<init>

ManagedObjectQuery()

Class representing a set of query arguments to used when using the query method of the ManagedObjectsService to fetch ManagedObjects. Currently all queries have to be true i.e. they are ANDED together

Functions

add

fun add(query: ManagedObjectQuery.Query): Unit

Adds a new query to the existing set

fun add(key: String, operator: ManagedObjectQuery.Operator?, value: String): ManagedObjectQuery

Adds a new query to the existing set based on the individual values

build

fun build(): String