public static interface SetDataRetrievalPolicyRequest.Builder extends GlacierRequest.Builder, CopyableBuilder<SetDataRetrievalPolicyRequest.Builder,SetDataRetrievalPolicyRequest>
Modifier and Type | Method and Description |
---|---|
SetDataRetrievalPolicyRequest.Builder |
accountId(String accountId)
The
AccountId value is the AWS account ID. |
default SetDataRetrievalPolicyRequest.Builder |
policy(Consumer<DataRetrievalPolicy.Builder> policy)
The data retrieval policy in JSON format.
|
SetDataRetrievalPolicyRequest.Builder |
policy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
|
SetDataRetrievalPolicyRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
SetDataRetrievalPolicyRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
build
requestOverrideConfig
copy
apply, build
SetDataRetrievalPolicyRequest.Builder accountId(String accountId)
The AccountId
value is the AWS account ID. This value must match the AWS account ID associated
with the credentials used to sign the request. You can either specify an AWS account ID or optionally a
single '-
' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the
credentials used to sign the request. If you specify your account ID, do not include any hyphens ('-') in the
ID.
accountId
- The AccountId
value is the AWS account ID. This value must match the AWS account ID
associated with the credentials used to sign the request. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon Glacier uses the AWS account ID
associated with the credentials used to sign the request. If you specify your account ID, do not
include any hyphens ('-') in the ID.SetDataRetrievalPolicyRequest.Builder policy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
policy
- The data retrieval policy in JSON format.default SetDataRetrievalPolicyRequest.Builder policy(Consumer<DataRetrievalPolicy.Builder> policy)
The data retrieval policy in JSON format.
This is a convenience that creates an instance of theDataRetrievalPolicy.Builder
avoiding the need
to create one manually via DataRetrievalPolicy.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to policy(DataRetrievalPolicy)
.policy
- a consumer that will call methods on DataRetrievalPolicy.Builder
policy(DataRetrievalPolicy)
SetDataRetrievalPolicyRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.SetDataRetrievalPolicyRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfig.Builder
will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.