Package com.azure.cosmos.models
Class CosmosUserDefinedFunctionProperties
- java.lang.Object
-
- com.azure.cosmos.models.CosmosUserDefinedFunctionProperties
-
public final class CosmosUserDefinedFunctionProperties extends Object
The type Cosmos user defined function properties.
-
-
Constructor Summary
Constructors Constructor Description CosmosUserDefinedFunctionProperties(String id, String body)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBody()
Get the body of the user defined function.String
getETag()
Get the entity tag associated with the resource.String
getId()
Gets the name of the resource.Instant
getTimestamp()
Get the last modified timestamp associated with the resource.CosmosUserDefinedFunctionProperties
setBody(String body)
Set the body of the user defined function.CosmosUserDefinedFunctionProperties
setId(String id)
Sets the id
-
-
-
Method Detail
-
getBody
public String getBody()
Get the body of the user defined function.- Returns:
- the body.
-
setBody
public CosmosUserDefinedFunctionProperties setBody(String body)
Set the body of the user defined function.- Parameters:
body
- the body.- Returns:
- the CosmosUserDefinedFunctionProperties.
-
getId
public String getId()
Gets the name of the resource.- Returns:
- the name of the resource.
-
setId
public CosmosUserDefinedFunctionProperties setId(String id)
Sets the id- Parameters:
id
- the name of the resource.- Returns:
- the current cosmos trigger properties instance
-
getTimestamp
public Instant getTimestamp()
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.- Returns:
- the timestamp.
-
getETag
public String getETag()
Get the entity tag associated with the resource. This is only relevant when getting response from the server.- Returns:
- the e tag.
-
-