@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 AWS 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 AWS 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; useful for testing and debugging.
|
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 AWS 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 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 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(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(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.
policyText
- The JSON repository policy text to apply to the repository.public String getPolicyText()
The JSON repository policy text to apply to the repository.
public SetRepositoryPolicyRequest withPolicyText(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(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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.