CopyableBuilder<SetRepositoryPolicyRequest.Builder,SetRepositoryPolicyRequest>
, SdkBuilder<SetRepositoryPolicyRequest.Builder,SetRepositoryPolicyRequest>
public static interface SetRepositoryPolicyRequest.Builder extends CopyableBuilder<SetRepositoryPolicyRequest.Builder,SetRepositoryPolicyRequest>
Modifier and Type | Method | 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 |
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.
|
copy
apply, 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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.