### YamlMime:JavaType uid: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder" fullName: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder" name: "CosmosEndToEndOperationLatencyPolicyConfigBuilder" nameWithType: "CosmosEndToEndOperationLatencyPolicyConfigBuilder" summary: "Builder for CosmosEndToEndOperationLatencyPolicyConfig" inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public class **CosmosEndToEndOperationLatencyPolicyConfigBuilder**" constructors: - uid: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder.CosmosEndToEndOperationLatencyPolicyConfigBuilder(java.time.Duration)" fullName: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder.CosmosEndToEndOperationLatencyPolicyConfigBuilder(Duration endToEndOperationTimeout)" name: "CosmosEndToEndOperationLatencyPolicyConfigBuilder(Duration endToEndOperationTimeout)" nameWithType: "CosmosEndToEndOperationLatencyPolicyConfigBuilder.CosmosEndToEndOperationLatencyPolicyConfigBuilder(Duration endToEndOperationTimeout)" summary: "Create a builder for with end to end operation timeout" parameters: - description: "the timeout for request cancellation in Duration. Setting very low timeouts\n can cause the request to never succeed." name: "endToEndOperationTimeout" type: "Duration" syntax: "public CosmosEndToEndOperationLatencyPolicyConfigBuilder(Duration endToEndOperationTimeout)" desc: "Create a builder for with end to end operation timeout" methods: - uid: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder.availabilityStrategy(com.azure.cosmos.AvailabilityStrategy)" fullName: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder.availabilityStrategy(AvailabilityStrategy availabilityStrategy)" name: "availabilityStrategy(AvailabilityStrategy availabilityStrategy)" nameWithType: "CosmosEndToEndOperationLatencyPolicyConfigBuilder.availabilityStrategy(AvailabilityStrategy availabilityStrategy)" summary: "Sets the availability strategy to be used for the policy." parameters: - description: "the availability strategy to be used for the policy" name: "availabilityStrategy" type: "" syntax: "public CosmosEndToEndOperationLatencyPolicyConfigBuilder availabilityStrategy(AvailabilityStrategy availabilityStrategy)" desc: "Sets the availability strategy to be used for the policy." returns: description: "current CosmosEndToEndOperationConfigBuilder" type: "" - uid: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder.build()" fullName: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder.build()" name: "build()" nameWithType: "CosmosEndToEndOperationLatencyPolicyConfigBuilder.build()" summary: "Builds with specified properties" syntax: "public CosmosEndToEndOperationLatencyPolicyConfig build()" desc: "Builds with specified properties" returns: description: "the " type: "" - uid: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder.enable(boolean)" fullName: "com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfigBuilder.enable(boolean isEnabled)" name: "enable(boolean isEnabled)" nameWithType: "CosmosEndToEndOperationLatencyPolicyConfigBuilder.enable(boolean isEnabled)" summary: "Enables or disables the policy." parameters: - description: "flag to enable or disable the policy" name: "isEnabled" type: "" syntax: "public CosmosEndToEndOperationLatencyPolicyConfigBuilder enable(boolean isEnabled)" desc: "Enables or disables the policy. It defaults to enable. " returns: description: "current CosmosEndToEndOperationConfigBuilder" type: "" type: "class" desc: "Builder for CosmosEndToEndOperationLatencyPolicyConfig" metadata: {} package: "com.azure.cosmos" artifact: com.azure:azure-cosmos:4.63.4