Class CosmosUserDefinedFunctionProperties

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

public final class CosmosUserDefinedFunctionProperties extends Object
The type Cosmos user defined function properties.
  • 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.
    • setBody

      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

      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.