@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutRepositoryPermissionsPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutRepositoryPermissionsPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutRepositoryPermissionsPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDomain()
The name of the domain containing the repository to set the resource policy on.
|
String |
getDomainOwner()
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
String |
getPolicyDocument()
A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided
repository.
|
String |
getPolicyRevision()
Sets the revision of the resource policy that specifies permissions to access the repository.
|
String |
getRepository()
The name of the repository to set the resource policy on.
|
int |
hashCode() |
void |
setDomain(String domain)
The name of the domain containing the repository to set the resource policy on.
|
void |
setDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
void |
setPolicyDocument(String policyDocument)
A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided
repository.
|
void |
setPolicyRevision(String policyRevision)
Sets the revision of the resource policy that specifies permissions to access the repository.
|
void |
setRepository(String repository)
The name of the repository to set the resource policy on.
|
String |
toString()
Returns a string representation of this object.
|
PutRepositoryPermissionsPolicyRequest |
withDomain(String domain)
The name of the domain containing the repository to set the resource policy on.
|
PutRepositoryPermissionsPolicyRequest |
withDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
PutRepositoryPermissionsPolicyRequest |
withPolicyDocument(String policyDocument)
A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided
repository.
|
PutRepositoryPermissionsPolicyRequest |
withPolicyRevision(String policyRevision)
Sets the revision of the resource policy that specifies permissions to access the repository.
|
PutRepositoryPermissionsPolicyRequest |
withRepository(String repository)
The name of the repository to set the resource policy on.
|
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 PutRepositoryPermissionsPolicyRequest()
public void setDomain(String domain)
The name of the domain containing the repository to set the resource policy on.
domain
- The name of the domain containing the repository to set the resource policy on.public String getDomain()
The name of the domain containing the repository to set the resource policy on.
public PutRepositoryPermissionsPolicyRequest withDomain(String domain)
The name of the domain containing the repository to set the resource policy on.
domain
- The name of the domain containing the repository to set the resource policy on.public void setDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
domainOwner
- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
dashes or spaces.public String getDomainOwner()
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
public PutRepositoryPermissionsPolicyRequest withDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
domainOwner
- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
dashes or spaces.public void setRepository(String repository)
The name of the repository to set the resource policy on.
repository
- The name of the repository to set the resource policy on.public String getRepository()
The name of the repository to set the resource policy on.
public PutRepositoryPermissionsPolicyRequest withRepository(String repository)
The name of the repository to set the resource policy on.
repository
- The name of the repository to set the resource policy on.public void setPolicyRevision(String policyRevision)
Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.
policyRevision
- Sets the revision of the resource policy that specifies permissions to access the repository. This
revision is used for optimistic locking, which prevents others from overwriting your changes to the
repository's resource policy.public String getPolicyRevision()
Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.
public PutRepositoryPermissionsPolicyRequest withPolicyRevision(String policyRevision)
Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.
policyRevision
- Sets the revision of the resource policy that specifies permissions to access the repository. This
revision is used for optimistic locking, which prevents others from overwriting your changes to the
repository's resource policy.public void setPolicyDocument(String policyDocument)
A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.
policyDocument
- A valid displayable JSON Aspen policy string to be set as the access control resource policy on the
provided repository.public String getPolicyDocument()
A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.
public PutRepositoryPermissionsPolicyRequest withPolicyDocument(String policyDocument)
A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.
policyDocument
- A valid displayable JSON Aspen policy string to be set as the access control resource policy on the
provided repository.public String toString()
toString
in class Object
Object.toString()
public PutRepositoryPermissionsPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()