@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetRepositoryPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SetRepositoryPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
SetRepositoryPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getForce()
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.
|
String |
getPolicyText()
The JSON repository policy text to apply to the repository.
|
String |
getRegistryId()
The Amazon Web Services account ID associated with the registry that contains the repository.
|
String |
getRepositoryName()
The name of the repository to receive the policy.
|
int |
hashCode() |
Boolean |
isForce()
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.
|
void |
setForce(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.
|
void |
setPolicyText(String policyText)
The JSON repository policy text to apply to the repository.
|
void |
setRegistryId(String registryId)
The Amazon Web Services account ID associated with the registry that contains the repository.
|
void |
setRepositoryName(String repositoryName)
The name of the repository to receive the policy.
|
String |
toString()
Returns a string representation of this object.
|
SetRepositoryPolicyRequest |
withForce(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 |
withPolicyText(String policyText)
The JSON repository policy text to apply to the repository.
|
SetRepositoryPolicyRequest |
withRegistryId(String registryId)
The Amazon Web Services account ID associated with the registry that contains the repository.
|
SetRepositoryPolicyRequest |
withRepositoryName(String repositoryName)
The name of the repository to receive the policy.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRegistryId(String registryId)
The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
registryId
- The Amazon Web Services account ID associated with the registry that contains the repository. If you do
not specify a registry, the default registry is assumed.public String getRegistryId()
The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
public SetRepositoryPolicyRequest withRegistryId(String registryId)
The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
registryId
- The Amazon Web Services account ID associated with the registry that contains the repository. If you do
not specify a registry, the default registry is assumed.public void setRepositoryName(String repositoryName)
The name of the repository to receive the policy.
repositoryName
- The name of the repository to receive the policy.public String getRepositoryName()
The name of the repository to receive the policy.
public SetRepositoryPolicyRequest withRepositoryName(String repositoryName)
The name of the repository to receive the policy.
repositoryName
- The name of the repository to receive the policy.public void setPolicyText(String 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.
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.public String getPolicyText()
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.
public SetRepositoryPolicyRequest withPolicyText(String 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.
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.public void setForce(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.public Boolean getForce()
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.
public SetRepositoryPolicyRequest withForce(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.public Boolean isForce()
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.
public String toString()
toString
in class Object
Object.toString()
public SetRepositoryPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()