Class SetRepositoryPolicyRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.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.The JSON repository policy text to apply to the repository.The AWS account ID associated with the registry that contains the repository.The name of the repository to receive the policy.int
hashCode()
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
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.toString()
Returns a string representation of this object; useful for testing and debugging.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.withPolicyText
(String policyText) The JSON repository policy text to apply to the repository.withRegistryId
(String registryId) The AWS account ID associated with the registry that contains the repository.withRepositoryName
(String repositoryName) The name of the repository to receive the policy.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
SetRepositoryPolicyRequest
public SetRepositoryPolicyRequest()
-
-
Method Details
-
setRegistryId
The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
- Parameters:
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.
-
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.
- Returns:
- The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
-
withRegistryId
The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRepositoryName
The name of the repository to receive the policy.
- Parameters:
repositoryName
- The name of the repository to receive the policy.
-
getRepositoryName
The name of the repository to receive the policy.
- Returns:
- The name of the repository to receive the policy.
-
withRepositoryName
The name of the repository to receive the policy.
- Parameters:
repositoryName
- The name of the repository to receive the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyText
The JSON repository policy text to apply to the repository.
- Parameters:
policyText
- The JSON repository policy text to apply to the repository.
-
getPolicyText
The JSON repository policy text to apply to the repository.
- Returns:
- The JSON repository policy text to apply to the repository.
-
withPolicyText
The JSON repository policy text to apply to the repository.
- Parameters:
policyText
- The JSON repository policy text to apply to the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setForce
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withForce
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Returns:
- 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.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-