Compartir a través de


CosmosUserDefinedFunctionProperties Class

  • java.lang.Object
    • com.azure.cosmos.models.CosmosUserDefinedFunctionProperties

public final class CosmosUserDefinedFunctionProperties

The type Cosmos user defined function properties.

Constructor Summary

Constructor Description
CosmosUserDefinedFunctionProperties(String id, String body)

Constructor.

Method Summary

Modifier and Type Method and 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

Methods inherited from java.lang.Object

Constructor Details

CosmosUserDefinedFunctionProperties

public CosmosUserDefinedFunctionProperties(String id, String body)

Constructor.

Parameters:

id - the id of the Cosmos user defined function.
body - the body of the Cosmos user defined function.

Method Details

getBody

public String getBody()

Get the body of the user defined function.

Returns:

the body.

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.

getId

public String getId()

Gets the name of the resource.

Returns:

the name of the resource.

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.

setBody

public CosmosUserDefinedFunctionProperties setBody(String body)

Set the body of the user defined function.

Parameters:

body - the body.

Returns:

the CosmosUserDefinedFunctionProperties.

setId

public CosmosUserDefinedFunctionProperties setId(String id)

Sets the id

Parameters:

id - the name of the resource.

Returns:

the current cosmos trigger properties instance

Applies to