public class TableRequestOptions extends RequestOptions
Modifier and Type | Class and Description |
---|---|
static interface |
TableRequestOptions.EncryptionResolver
The interface whose function is used to get the value indicating whether a property should be encrypted or not
given the partition key, row key, and the property name.
|
static interface |
TableRequestOptions.PropertyResolver
The interface whose function is used to get the
|
Constructor and Description |
---|
TableRequestOptions()
Creates an instance of the
TableRequestOptions |
TableRequestOptions(TableRequestOptions other)
Creates an instance of the
RequestOptions class by copying values from another
TableRequestOptions instance. |
Modifier and Type | Method and Description |
---|---|
protected static void |
applyDefaults(TableRequestOptions modifiedOptions)
Applies defaults to the options passed in.
|
protected void |
assertNoEncryptionPolicyOrStrictMode()
Assert that if validation is on, an encryption policy is not specified.
|
protected void |
assertPolicyIfRequired()
Assert that if strict mode is on, an encryption policy is specified.
|
protected void |
clearEncryption()
Clears the encryption properties on this TableRequestOptions object.
|
Boolean |
getDateBackwardCompatibility()
Gets whether the client should look to correct Date values stored on a
TableEntity
that may have been written using versions of this library prior to 2.0.0,
see setDateBackwardCompatibility(Boolean) . |
TableEncryptionPolicy |
getEncryptionPolicy()
Gets the encryption policy to use for this request.
|
TableRequestOptions.EncryptionResolver |
getEncryptionResolver()
Gets the interface that contains a function which is used to get the value indicating whether a property should
be encrypted or not given the partition key, row key, and the property name.
|
TableRequestOptions.PropertyResolver |
getPropertyResolver()
Gets the interface that contains a function which is used to get the
|
TablePayloadFormat |
getTablePayloadFormat()
Gets the
TablePayloadFormat to be used. |
protected static TableRequestOptions |
populateAndApplyDefaults(TableRequestOptions options,
CloudTableClient client)
Initializes the values for this
TableRequestOptions instance, if they are currently
null , using the values specified in the CloudTableClient parameter. |
void |
setDateBackwardCompatibility(Boolean dateBackwardCompatibility)
Sets whether the client should look to correct Date values stored on a
TableEntity
that may have been written using versions of this library prior to 2.0.0. |
void |
setEncryptionPolicy(TableEncryptionPolicy encryptionPolicy)
Sets the TableEncryptionPolicy object to use for this request.
|
void |
setEncryptionResolver(TableRequestOptions.EncryptionResolver encryptionResolver)
Sets the interface that contains a function which is used to get the value indicating whether a property should
be encrypted or not given the partition key, row key, and the property name.
|
void |
setPropertyResolver(TableRequestOptions.PropertyResolver propertyResolver)
Sets the interface that contains a function which is used to get the
|
void |
setTablePayloadFormat(TablePayloadFormat payloadFormat)
Sets the
TablePayloadFormat to be used. |
applyBaseDefaultsInternal, getLocationMode, getMaximumExecutionTimeInMs, getOperationExpiryTimeInMs, getRetryPolicyFactory, getTimeoutIntervalInMs, populateRequestOptions, requireEncryption, setLocationMode, setMaximumExecutionTimeInMs, setRequireEncryption, setRetryPolicyFactory, setTimeoutIntervalInMs
public TableRequestOptions()
TableRequestOptions
public TableRequestOptions(TableRequestOptions other)
RequestOptions
class by copying values from another
TableRequestOptions
instance.other
- A TableRequestOptions
object that represents the request options to copy.protected static final TableRequestOptions populateAndApplyDefaults(TableRequestOptions options, CloudTableClient client)
TableRequestOptions
instance, if they are currently
null
, using the values specified in the CloudTableClient
parameter.options
- A TableRequestOptions
object which represents the input options to copy from when applying
defaults.client
- A CloudTableClient
object from which to copy the timeout and retry policy.TableRequestOptions
object.protected void clearEncryption()
protected static void applyDefaults(TableRequestOptions modifiedOptions)
modifiedOptions
- The options to apply defaults to.public TablePayloadFormat getTablePayloadFormat()
TablePayloadFormat
to be used. For more information about TablePayloadFormat
defaults,
see setTablePayloadFormat(TablePayloadFormat)
.TablePayloadFormat
used by this TableRequest
.public TableRequestOptions.PropertyResolver getPropertyResolver()
TableRequestOptions.PropertyResolver
defaults, see setPropertyResolver(PropertyResolver)
.TableRequestOptions.PropertyResolver
object.public Boolean getDateBackwardCompatibility()
TableEntity
that may have been written using versions of this library prior to 2.0.0,
see setDateBackwardCompatibility(Boolean)
.
See here for more details.
true
if dateBackwardCompatibility
is enabled; otherwise, false
public TableEncryptionPolicy getEncryptionPolicy()
setEncryptionPolicy(TableEncryptionPolicy)
.TableEncryptionPolicy
object that represents the current encryption policy.public TableRequestOptions.EncryptionResolver getEncryptionResolver()
TableRequestOptions.EncryptionResolver
defaults, see setEncryptionResolver(EncryptionResolver)
.TableRequestOptions.PropertyResolver
object.public void setTablePayloadFormat(TablePayloadFormat payloadFormat)
TablePayloadFormat
to be used.
The default TablePayloadFormat
is set in the client and is by default TablePayloadFormat.Json
.
You can change the TablePayloadFormat
on this request by setting this property. You can also change the
value on the CloudTableClient.getDefaultRequestOptions()
object so that all subsequent requests made
via the service client will use that TablePayloadFormat
.
payloadFormat
- Specifies the TablePayloadFormat
to set.public void setPropertyResolver(TableRequestOptions.PropertyResolver propertyResolver)
The default TableRequestOptions.PropertyResolver
is set in the client and is by default null, indicating not to use a
property resolver. You can change the TableRequestOptions.PropertyResolver
on this request by setting this property. You can
also change the value on the CloudTableClient.getDefaultRequestOptions()
object so that all subsequent
requests made via the service client will use that TableRequestOptions.PropertyResolver
.
propertyResolver
- Specifies the TableRequestOptions.PropertyResolver
to set.public void setDateBackwardCompatibility(Boolean dateBackwardCompatibility)
TableEntity
that may have been written using versions of this library prior to 2.0.0.
dateBackwardCompatibility
is by default false
, indicating a post 2.0.0 version or mixed-
platform usage. You can change the dateBackwardCompatibility
on this request by setting this property.
You can also change the value on the CloudTableClient.getDefaultRequestOptions()
object so that all
subsequent requests made via the service client will use that dateBackwardCompatibility
.
See here for more details.
dateBackwardCompatibility
- true
to enable dateBackwardCompatibility
; otherwise, false
public void setEncryptionPolicy(TableEncryptionPolicy encryptionPolicy)
The default TableEncryptionPolicy is set in the client and is by default null, indicating no encryption. You can
change the TableEncryptionPolicy on this request by setting this property. You can also change the value on the
ServiceClient.getDefaultRequestOptions()
object so that all subsequent requests made via the service
client will use that TableEncryptionPolicy.
encryptionPolicy
- the TableEncryptionPolicy object to use when making service requests.public void setEncryptionResolver(TableRequestOptions.EncryptionResolver encryptionResolver)
TableRequestOptions.EncryptionResolver
is
required if a TableEncryptionPolicy
is specified.
You can change the TableRequestOptions.EncryptionResolver
on this request by setting this property. You can also change the
value on the TableServiceClient#getDefaultRequestOptions()
object so that all subsequent requests made
via the service client will use that TableRequestOptions.EncryptionResolver
.
propertyResolver
- Specifies the TableRequestOptions.PropertyResolver
to set.protected void assertNoEncryptionPolicyOrStrictMode()
protected void assertPolicyIfRequired()
Copyright © 2019. All rights reserved.