ComputedProperty Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ComputedProperty
- com.
Implements
public final class ComputedProperty
implements JsonSerializable<ComputedProperty>
The definition of a computed property.
Constructor Summary
Constructor | Description |
---|---|
ComputedProperty() |
Creates an instance of Computed |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Computed |
fromJson(JsonReader jsonReader)
Reads an instance of Computed |
String |
name()
Get the name property: The name of a computed property, for example - "cp_lower |
String |
query()
Get the query property: The query that evaluates the value for computed property, for example - "SELECT VALUE LOWER(c. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Computed |
withName(String name)
Set the name property: The name of a computed property, for example - "cp_lower |
Computed |
withQuery(String query)
Set the query property: The query that evaluates the value for computed property, for example - "SELECT VALUE LOWER(c. |
Methods inherited from java.lang.Object
Constructor Details
ComputedProperty
public ComputedProperty()
Creates an instance of ComputedProperty class.
Method Details
fromJson
public static ComputedProperty fromJson(JsonReader jsonReader)
Reads an instance of ComputedProperty from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of a computed property, for example - "cp_lowerName".
Returns:
query
public String query()
Get the query property: The query that evaluates the value for computed property, for example - "SELECT VALUE LOWER(c.name) FROM c".
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public ComputedProperty withName(String name)
Set the name property: The name of a computed property, for example - "cp_lowerName".
Parameters:
Returns:
withQuery
public ComputedProperty withQuery(String query)
Set the query property: The query that evaluates the value for computed property, for example - "SELECT VALUE LOWER(c.name) FROM c".
Parameters:
Returns:
Applies to
Azure SDK for Java