Class CosmosOptions.CosmosClientBuilderFactory

java.lang.Object
org.apache.beam.sdk.io.azure.cosmos.CosmosOptions.CosmosClientBuilderFactory
All Implemented Interfaces:
DefaultValueFactory<com.azure.cosmos.CosmosClientBuilder>
Enclosing interface:
CosmosOptions

public static class CosmosOptions.CosmosClientBuilderFactory extends Object implements DefaultValueFactory<com.azure.cosmos.CosmosClientBuilder>
Create a cosmos client from the pipeline options.
  • Constructor Details

    • CosmosClientBuilderFactory

      public CosmosClientBuilderFactory()
  • Method Details

    • create

      public com.azure.cosmos.CosmosClientBuilder create(PipelineOptions options)
      Description copied from interface: DefaultValueFactory
      Creates a default value for a getter marked with Default.InstanceFactory.
      Specified by:
      create in interface DefaultValueFactory<com.azure.cosmos.CosmosClientBuilder>
      Parameters:
      options - The current pipeline options.
      Returns:
      The default value to be used for the annotated getter.