DocumentDbOutputDataSource Class
- java.
lang. Object - com.
azure. resourcemanager. streamanalytics. models. OutputDataSource - com.
azure. resourcemanager. streamanalytics. models. DocumentDbOutputDataSource
- com.
- com.
public final class DocumentDbOutputDataSource
extends OutputDataSource
Describes a DocumentDB output data source.
Constructor Summary
| Constructor | Description |
|---|---|
| DocumentDbOutputDataSource() |
Creates an instance of Document |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
accountId()
Get the account |
| String |
accountKey()
Get the account |
| String |
collectionNamePattern()
Get the collection |
| String |
database()
Get the database property: The name of the DocumentDB database. |
| String |
documentId()
Get the document |
|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
| String |
partitionKey()
Get the partition |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Indicates the type of data source output will be written to. |
| void |
validate()
Validates the instance. |
|
Document |
withAccountId(String accountId)
Set the account |
|
Document |
withAccountKey(String accountKey)
Set the account |
|
Document |
withCollectionNamePattern(String collectionNamePattern)
Set the collection |
|
Document |
withDatabase(String database)
Set the database property: The name of the DocumentDB database. |
|
Document |
withDocumentId(String documentId)
Set the document |
|
Document |
withPartitionKey(String partitionKey)
Set the partition |
Methods inherited from OutputDataSource
Methods inherited from java.lang.Object
Constructor Details
DocumentDbOutputDataSource
public DocumentDbOutputDataSource()
Creates an instance of DocumentDbOutputDataSource class.
Method Details
accountId
public String accountId()
Get the accountId property: The DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests.
Returns:
accountKey
public String accountKey()
Get the accountKey property: The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests.
Returns:
collectionNamePattern
public String collectionNamePattern()
Get the collectionNamePattern property: The collection name pattern for the collections to be used. The collection name format can be constructed using the optional {partition} token, where partitions start from 0. See the DocumentDB section of https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for more information. Required on PUT (CreateOrReplace) requests.
Returns:
database
public String database()
Get the database property: The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests.
Returns:
documentId
public String documentId()
Get the documentId property: The name of the field in output events used to specify the primary key which insert or update operations are based on.
Returns:
fromJson
public static DocumentDbOutputDataSource fromJson(JsonReader jsonReader)
Reads an instance of DocumentDbOutputDataSource from the JsonReader.
Parameters:
Returns:
Throws:
partitionKey
public String partitionKey()
Get the partitionKey property: The name of the field in output events used to specify the key for partitioning output across collections. If 'collectionNamePattern' contains the {partition} token, this property is required to be specified.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DocumentDbOutputDataSource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
Overrides:
DocumentDbOutputDataSource.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
DocumentDbOutputDataSource.validate()withAccountId
public DocumentDbOutputDataSource withAccountId(String accountId)
Set the accountId property: The DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests.
Parameters:
Returns:
withAccountKey
public DocumentDbOutputDataSource withAccountKey(String accountKey)
Set the accountKey property: The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests.
Parameters:
Returns:
withCollectionNamePattern
public DocumentDbOutputDataSource withCollectionNamePattern(String collectionNamePattern)
Set the collectionNamePattern property: The collection name pattern for the collections to be used. The collection name format can be constructed using the optional {partition} token, where partitions start from 0. See the DocumentDB section of https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for more information. Required on PUT (CreateOrReplace) requests.
Parameters:
Returns:
withDatabase
public DocumentDbOutputDataSource withDatabase(String database)
Set the database property: The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests.
Parameters:
Returns:
withDocumentId
public DocumentDbOutputDataSource withDocumentId(String documentId)
Set the documentId property: The name of the field in output events used to specify the primary key which insert or update operations are based on.
Parameters:
Returns:
withPartitionKey
public DocumentDbOutputDataSource withPartitionKey(String partitionKey)
Set the partitionKey property: The name of the field in output events used to specify the key for partitioning output across collections. If 'collectionNamePattern' contains the {partition} token, this property is required to be specified.
Parameters:
Returns: