Class CosmosDbMongoDbApiSink

java.lang.Object
com.azure.resourcemanager.datafactory.models.CopySink
com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiSink

public final class CosmosDbMongoDbApiSink extends CopySink
A copy activity sink for a CosmosDB (MongoDB API) database.
  • Constructor Details

    • CosmosDbMongoDbApiSink

      public CosmosDbMongoDbApiSink()
      Creates an instance of CosmosDbMongoDbApiSink class.
  • Method Details

    • writeBehavior

      public Object writeBehavior()
      Get the writeBehavior property: Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType string). Type: string (or Expression with resultType string).
      Returns:
      the writeBehavior value.
    • withWriteBehavior

      public CosmosDbMongoDbApiSink withWriteBehavior(Object writeBehavior)
      Set the writeBehavior property: Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType string). Type: string (or Expression with resultType string).
      Parameters:
      writeBehavior - the writeBehavior value to set.
      Returns:
      the CosmosDbMongoDbApiSink object itself.
    • withWriteBatchSize

      public CosmosDbMongoDbApiSink withWriteBatchSize(Object writeBatchSize)
      Set the writeBatchSize property: Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
      Overrides:
      withWriteBatchSize in class CopySink
      Parameters:
      writeBatchSize - the writeBatchSize value to set.
      Returns:
      the CopySink object itself.
    • withWriteBatchTimeout

      public CosmosDbMongoDbApiSink withWriteBatchTimeout(Object writeBatchTimeout)
      Set the writeBatchTimeout property: Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
      Overrides:
      withWriteBatchTimeout in class CopySink
      Parameters:
      writeBatchTimeout - the writeBatchTimeout value to set.
      Returns:
      the CopySink object itself.
    • withSinkRetryCount

      public CosmosDbMongoDbApiSink withSinkRetryCount(Object sinkRetryCount)
      Set the sinkRetryCount property: Sink retry count. Type: integer (or Expression with resultType integer).
      Overrides:
      withSinkRetryCount in class CopySink
      Parameters:
      sinkRetryCount - the sinkRetryCount value to set.
      Returns:
      the CopySink object itself.
    • withSinkRetryWait

      public CosmosDbMongoDbApiSink withSinkRetryWait(Object sinkRetryWait)
      Set the sinkRetryWait property: Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
      Overrides:
      withSinkRetryWait in class CopySink
      Parameters:
      sinkRetryWait - the sinkRetryWait value to set.
      Returns:
      the CopySink object itself.
    • withMaxConcurrentConnections

      public CosmosDbMongoDbApiSink withMaxConcurrentConnections(Object maxConcurrentConnections)
      Set the maxConcurrentConnections property: The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
      Overrides:
      withMaxConcurrentConnections in class CopySink
      Parameters:
      maxConcurrentConnections - the maxConcurrentConnections value to set.
      Returns:
      the CopySink object itself.
    • withDisableMetricsCollection

      public CosmosDbMongoDbApiSink withDisableMetricsCollection(Object disableMetricsCollection)
      Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
      Overrides:
      withDisableMetricsCollection in class CopySink
      Parameters:
      disableMetricsCollection - the disableMetricsCollection value to set.
      Returns:
      the CopySink object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class CopySink
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.