public class SetRepositoryPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.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.
|
private java.lang.String |
policyText
The JSON repository policy text to apply to the repository.
|
private java.lang.String |
registryId
The AWS account ID associated with the registry that contains the
repository.
|
private java.lang.String |
repositoryName
The name of the repository to receive the policy.
|
NOOP
Constructor and Description |
---|
SetRepositoryPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
SetRepositoryPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getPolicyText()
The JSON repository policy text to apply to the repository.
|
java.lang.String |
getRegistryId()
The AWS account ID associated with the registry that contains the
repository.
|
java.lang.String |
getRepositoryName()
The name of the repository to receive the policy.
|
int |
hashCode() |
java.lang.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(java.lang.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(java.lang.String policyText)
The JSON repository policy text to apply to the repository.
|
void |
setRegistryId(java.lang.String registryId)
The AWS account ID associated with the registry that contains the
repository.
|
void |
setRepositoryName(java.lang.String repositoryName)
The name of the repository to receive the policy.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetRepositoryPolicyRequest |
withForce(java.lang.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(java.lang.String policyText)
The JSON repository policy text to apply to the repository.
|
SetRepositoryPolicyRequest |
withRegistryId(java.lang.String registryId)
The AWS account ID associated with the registry that contains the
repository.
|
SetRepositoryPolicyRequest |
withRepositoryName(java.lang.String repositoryName)
The name of the repository to receive the policy.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.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.
private java.lang.String repositoryName
The name of the repository to receive the policy.
private java.lang.String policyText
The JSON repository policy text to apply to the repository.
private java.lang.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.
public void setRegistryId(java.lang.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.public java.lang.String getRegistryId()
The AWS 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(java.lang.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.public void setRepositoryName(java.lang.String repositoryName)
The name of the repository to receive the policy.
repositoryName
- The name of the repository to receive the policy.public java.lang.String getRepositoryName()
The name of the repository to receive the policy.
public SetRepositoryPolicyRequest withRepositoryName(java.lang.String repositoryName)
The name of the repository to receive the policy.
repositoryName
- The name of the repository to receive the policy.public void setPolicyText(java.lang.String policyText)
The JSON repository policy text to apply to the repository.
policyText
- The JSON repository policy text to apply to the repository.public java.lang.String getPolicyText()
The JSON repository policy text to apply to the repository.
public SetRepositoryPolicyRequest withPolicyText(java.lang.String policyText)
The JSON repository policy text to apply to the repository.
policyText
- The JSON repository policy text to apply to the repository.public void setForce(java.lang.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 java.lang.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(java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetRepositoryPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()