Interface SetRepositoryPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SetRepositoryPolicyRequest.Builder,
,SetRepositoryPolicyRequest> EcrPublicRequest.Builder
,SdkBuilder<SetRepositoryPolicyRequest.Builder,
,SetRepositoryPolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SetRepositoryPolicyRequest
public static interface SetRepositoryPolicyRequest.Builder
extends EcrPublicRequest.Builder, SdkPojo, CopyableBuilder<SetRepositoryPolicyRequest.Builder,SetRepositoryPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionIf the policy that you want to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyText
(String policyText) The JSON repository policy text to apply to the repository.registryId
(String registryId) The Amazon Web Services account ID that's associated with the registry that contains the repository.repositoryName
(String repositoryName) The name of the repository to receive the policy.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ecrpublic.model.EcrPublicRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
registryId
The Amazon Web Services account ID that's associated with the registry that contains the repository. If you do not specify a registry, the default public registry is assumed.
- Parameters:
registryId
- The Amazon Web Services account ID that's associated with the registry that contains the repository. If you do not specify a registry, the default public registry is assumed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryName
The name of the repository to receive the policy.
- Parameters:
repositoryName
- The name of the repository to receive the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyText
The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.
- Parameters:
policyText
- The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
force
If the policy that you want to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This prevents accidental repository lockouts.
- Parameters:
force
- If the policy that you want to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This prevents accidental repository lockouts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SetRepositoryPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SetRepositoryPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-