QueueRequestOptions Class
- java.
lang. Object - RequestOptions
- com.
microsoft. azure. storage. queue. QueueRequestOptions
- com.
public class QueueRequestOptions extends RequestOptions
Represents a set of options that may be specified on a queue request.
Constructor Summary
Constructor | Description |
---|---|
QueueRequestOptions() |
Initializes a new instance of the QueueRequestOptions class. |
QueueRequestOptions(final QueueRequestOptions other) |
Initializes a new instance of the QueueRequestOptions class as a copy of another QueueRequestOptions instance. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
applyDefaults(QueueRequestOptions modifiedOptions)
Applies defaults to the options passed in. |
void |
assertPolicyIfRequired()
Assert that if strict mode is on, an encryption policy is specified. |
Queue |
getEncryptionPolicy()
Gets the encryption policy to use for this request. For more information about the encryption policy defaults, see setEncryptionPolicy(QueueEncryptionPolicy encryptionPolicy). |
final Queue |
populateAndApplyDefaults(QueueRequestOptions options, final CloudQueueClient client)
Populates the default timeout and retry policy from client if they are not set. |
void |
setEncryptionPolicy(QueueEncryptionPolicy encryptionPolicy)
Sets the QueueEncryptionPolicy object to use for this request. The default QueueEncryptionPolicy is set in the client and is by default null, indicating no encryption. You can change the QueueEncryptionPolicy on this request by setting this property. You can also change the value on the getDefaultRequestOptions() object so that all subsequent requests made via the service client will use that QueueEncryptionPolicy. |
Inherited Members
Constructor Details
QueueRequestOptions
public QueueRequestOptions()
Initializes a new instance of the QueueRequestOptions class.
QueueRequestOptions
public QueueRequestOptions(final QueueRequestOptions other)
Initializes a new instance of the QueueRequestOptions class as a copy of another QueueRequestOptions instance.
Parameters:
Method Details
applyDefaults
protected static void applyDefaults(QueueRequestOptions modifiedOptions)
Applies defaults to the options passed in.
Parameters:
assertPolicyIfRequired
protected void assertPolicyIfRequired()
Assert that if strict mode is on, an encryption policy is specified.
getEncryptionPolicy
public QueueEncryptionPolicy getEncryptionPolicy()
Gets the encryption policy to use for this request. For more information about the encryption policy defaults, see setEncryptionPolicy(QueueEncryptionPolicy encryptionPolicy).
Returns:
populateAndApplyDefaults
protected static final QueueRequestOptions populateAndApplyDefaults(QueueRequestOptions options, final CloudQueueClient client)
Populates the default timeout and retry policy from client if they are not set.
Parameters:
setEncryptionPolicy
public void setEncryptionPolicy(QueueEncryptionPolicy encryptionPolicy)
Sets the QueueEncryptionPolicy object to use for this request.
The default QueueEncryptionPolicy is set in the client and is by default null, indicating no encryption. You can change the QueueEncryptionPolicy on this request by setting this property. You can also change the value on the getDefaultRequestOptions() object so that all subsequent requests made via the service client will use that QueueEncryptionPolicy.
Parameters:
Applies to
Azure SDK for Java