CosmosDBInput Interface
public interface CosmosDBInput
CosmosDBInput(name = "database", databaseName = "ToDoList", collectionName = "Items", id = "{Query.id}", connectionStringSetting = "AzureCosmosDBConnection") Optional<String> item ) { return item.orElse("Not found"); }
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
collectionName()
Defines the collection name of the CosmosDB to which to bind. |
String |
connectionStringSetting()
Defines the app setting name that contains the CosmosDB connection string. |
String |
databaseName()
Defines the database name of the CosmosDB to which to bind. |
String |
dataType()
Defines how Functions runtime should treat the parameter value. Possible values are:
|
String |
id()
Defines the ID of the CosmosDB to which to bind. |
String |
name()
The variable name used in function.json. |
String |
partitionKey()
Defines partition key value for the lookup. May include binding parameters. |
String |
sqlQuery()
Defines the SQL query string to which to bind. |
Method Details
collectionName
public String collectionName()
Defines the collection name of the CosmosDB to which to bind.
Returns:
connectionStringSetting
public String connectionStringSetting()
Defines the app setting name that contains the CosmosDB connection string.
Returns:
databaseName
public String databaseName()
Defines the database name of the CosmosDB to which to bind.
Returns:
dataType
public String dataType() default ""
Defines how Functions runtime should treat the parameter value. Possible values are:
<li>
<p>"": get the value as a string, and try to deserialize to actual parameter type like POJO </p>
</li>
<li>
<p>string: always get the value as a string </p>
</li>
<li>
<p>binary: get the value as a binary data, and try to deserialize to actual parameter type byte[] </p>
</li>
Returns:
id
public String id() default ""
Defines the ID of the CosmosDB to which to bind.
Returns:
name
public String name()
The variable name used in function.json.
Returns:
partitionKey
public String partitionKey() default ""
Defines partition key value for the lookup. May include binding parameters.
Returns:
sqlQuery
public String sqlQuery() default ""
Defines the SQL query string to which to bind.
Returns: