### YamlMime:JavaType uid: "com.azure.cosmos.models.CosmosBatchRequestOptions" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions" name: "CosmosBatchRequestOptions" nameWithType: "CosmosBatchRequestOptions" summary: "Encapsulates options that can be specified for a ." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **CosmosBatchRequestOptions**" constructors: - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.CosmosBatchRequestOptions()" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.CosmosBatchRequestOptions()" name: "CosmosBatchRequestOptions()" nameWithType: "CosmosBatchRequestOptions.CosmosBatchRequestOptions()" summary: "Creates an instance of the CosmosBatchRequestOptions class" syntax: "public CosmosBatchRequestOptions()" desc: "Creates an instance of the CosmosBatchRequestOptions class" methods: - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.getCustomItemSerializer()" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.getCustomItemSerializer()" name: "getCustomItemSerializer()" nameWithType: "CosmosBatchRequestOptions.getCustomItemSerializer()" summary: "Gets the custom item serializer defined for this instance of request options" syntax: "public CosmosItemSerializer getCustomItemSerializer()" desc: "Gets the custom item serializer defined for this instance of request options" returns: description: "the custom item serializer" type: "" - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.getDiagnosticsThresholds()" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.getDiagnosticsThresholds()" name: "getDiagnosticsThresholds()" nameWithType: "CosmosBatchRequestOptions.getDiagnosticsThresholds()" summary: "Gets the diagnostic thresholds used as an override for a specific operation." syntax: "public CosmosDiagnosticsThresholds getDiagnosticsThresholds()" desc: "Gets the diagnostic thresholds used as an override for a specific operation. If no operation specific diagnostic threshold has been specified, this method will return null, although at runtime the default thresholds specified at the client-level will be used." returns: description: "the diagnostic thresholds used as an override for a specific operation." type: "" - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.getExcludedRegions()" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.getExcludedRegions()" name: "getExcludedRegions()" nameWithType: "CosmosBatchRequestOptions.getExcludedRegions()" summary: "Gets the list of regions to be excluded for the request/retries." syntax: "public List getExcludedRegions()" desc: "Gets the list of regions to be excluded for the request/retries. These regions are excluded from the preferred region list." returns: description: "a list of excluded regions" type: "List<String>" - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.getKeywordIdentifiers()" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.getKeywordIdentifiers()" name: "getKeywordIdentifiers()" nameWithType: "CosmosBatchRequestOptions.getKeywordIdentifiers()" summary: "Gets the custom ids." syntax: "public Set getKeywordIdentifiers()" desc: "Gets the custom ids." returns: description: "the custom ids." type: "Set<String>" - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.getSessionToken()" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.getSessionToken()" name: "getSessionToken()" nameWithType: "CosmosBatchRequestOptions.getSessionToken()" summary: "Gets the token for use with session consistency." syntax: "public String getSessionToken()" desc: "Gets the token for use with session consistency." returns: description: "the session token." type: "String" - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.setCustomItemSerializer(com.azure.cosmos.CosmosItemSerializer)" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.setCustomItemSerializer(CosmosItemSerializer customItemSerializer)" name: "setCustomItemSerializer(CosmosItemSerializer customItemSerializer)" nameWithType: "CosmosBatchRequestOptions.setCustomItemSerializer(CosmosItemSerializer customItemSerializer)" summary: "Allows specifying a custom item serializer to be used for this operation." parameters: - description: "the custom item serializer for this operation" name: "customItemSerializer" type: "" syntax: "public CosmosBatchRequestOptions setCustomItemSerializer(CosmosItemSerializer customItemSerializer)" desc: "Allows specifying a custom item serializer to be used for this operation. If the serializer on the request options is null, the serializer on CosmosClientBuilder is used. If both serializers are null (the default), an internal Jackson ObjectMapper is ued for serialization/deserialization." returns: description: "the CosmosItemRequestOptions." type: "" - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.setDiagnosticsThresholds(com.azure.cosmos.CosmosDiagnosticsThresholds)" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.setDiagnosticsThresholds(CosmosDiagnosticsThresholds operationSpecificThresholds)" name: "setDiagnosticsThresholds(CosmosDiagnosticsThresholds operationSpecificThresholds)" nameWithType: "CosmosBatchRequestOptions.setDiagnosticsThresholds(CosmosDiagnosticsThresholds operationSpecificThresholds)" summary: "Allows overriding the diagnostic thresholds for a specific operation." parameters: - description: "the diagnostic threshold override for this operation" name: "operationSpecificThresholds" type: "" syntax: "public CosmosBatchRequestOptions setDiagnosticsThresholds(CosmosDiagnosticsThresholds operationSpecificThresholds)" desc: "Allows overriding the diagnostic thresholds for a specific operation." returns: description: "the TransactionalBatchRequestOptions." type: "" - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.setExcludedRegions(java.util.List)" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.setExcludedRegions(List excludeRegions)" name: "setExcludedRegions(List excludeRegions)" nameWithType: "CosmosBatchRequestOptions.setExcludedRegions(List excludeRegions)" summary: "List of regions to exclude for the request/retries." parameters: - description: "list of regions" name: "excludeRegions" type: "List<String>" syntax: "public CosmosBatchRequestOptions setExcludedRegions(List excludeRegions)" desc: "List of regions to exclude for the request/retries. Example \"East US\" or \"East US, West US\" These regions will be excluded from the preferred regions list" returns: description: "the " type: "" - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.setKeywordIdentifiers(java.util.Set)" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.setKeywordIdentifiers(Set keywordIdentifiers)" name: "setKeywordIdentifiers(Set keywordIdentifiers)" nameWithType: "CosmosBatchRequestOptions.setKeywordIdentifiers(Set keywordIdentifiers)" summary: "Sets the custom ids." parameters: - description: "the custom ids." name: "keywordIdentifiers" type: "Set<String>" syntax: "public CosmosBatchRequestOptions setKeywordIdentifiers(Set keywordIdentifiers)" desc: "Sets the custom ids." returns: description: "the current request options." type: "" - uid: "com.azure.cosmos.models.CosmosBatchRequestOptions.setSessionToken(java.lang.String)" fullName: "com.azure.cosmos.models.CosmosBatchRequestOptions.setSessionToken(String sessionToken)" name: "setSessionToken(String sessionToken)" nameWithType: "CosmosBatchRequestOptions.setSessionToken(String sessionToken)" summary: "Sets the token for use with session consistency." parameters: - description: "the session token." name: "sessionToken" type: "String" syntax: "public CosmosBatchRequestOptions setSessionToken(String sessionToken)" desc: "Sets the token for use with session consistency." returns: description: "the TransactionalBatchRequestOptions." type: "" type: "class" desc: "Encapsulates options that can be specified for a ." metadata: {} package: "com.azure.cosmos.models" artifact: com.azure:azure-cosmos:4.63.3