public static interface SetRepositoryPolicyRequest.Builder extends EcrRequest.Builder, SdkPojo, CopyableBuilder<SetRepositoryPolicyRequest.Builder,SetRepositoryPolicyRequest>
Modifier and Type | Method and Description |
---|---|
SetRepositoryPolicyRequest.Builder |
force(Boolean force)
If the policy you are attempting to set on a repository policy would prevent you from setting another policy
in the future, you must force the SetRepositoryPolicy operation.
|
SetRepositoryPolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
SetRepositoryPolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
SetRepositoryPolicyRequest.Builder |
policyText(String policyText)
The JSON repository policy text to apply to the repository.
|
SetRepositoryPolicyRequest.Builder |
registryId(String registryId)
The AWS account ID associated with the registry that contains the repository.
|
SetRepositoryPolicyRequest.Builder |
repositoryName(String repositoryName)
The name of the repository to receive the policy.
|
build
overrideConfiguration
copy
applyMutation, build
SetRepositoryPolicyRequest.Builder registryId(String registryId)
The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
registryId
- The AWS account ID associated with the registry that contains the repository. If you do not specify a
registry, the default registry is assumed.SetRepositoryPolicyRequest.Builder repositoryName(String repositoryName)
The name of the repository to receive the policy.
repositoryName
- The name of the repository to receive the policy.SetRepositoryPolicyRequest.Builder policyText(String policyText)
The JSON repository policy text to apply to the repository.
policyText
- The JSON repository policy text to apply to the repository.SetRepositoryPolicyRequest.Builder force(Boolean force)
If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs.
force
- If the policy you are attempting to set on a repository policy would prevent you from setting another
policy in the future, you must force the SetRepositoryPolicy operation. This is intended to
prevent accidental repository lock outs.SetRepositoryPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.SetRepositoryPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.