@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EcrRepositoryConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The proposed access control configuration for an Amazon ECR repository. You can propose a configuration for a new Amazon ECR repository or an existing Amazon ECR repository that you own by specifying the Amazon ECR policy. For more information, see Repository.
If the configuration is for an existing Amazon ECR repository and you do not specify the Amazon ECR policy, then the access preview uses the existing Amazon ECR policy for the repository.
If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon ECR repository without a policy.
To propose deletion of an existing Amazon ECR repository policy, you can specify an empty string for the Amazon ECR policy.
Constructor and Description |
---|
EcrRepositoryConfiguration() |
Modifier and Type | Method and Description |
---|---|
EcrRepositoryConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getRepositoryPolicy()
The JSON repository policy text to apply to the Amazon ECR repository.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRepositoryPolicy(String repositoryPolicy)
The JSON repository policy text to apply to the Amazon ECR repository.
|
String |
toString()
Returns a string representation of this object.
|
EcrRepositoryConfiguration |
withRepositoryPolicy(String repositoryPolicy)
The JSON repository policy text to apply to the Amazon ECR repository.
|
public void setRepositoryPolicy(String repositoryPolicy)
The JSON repository policy text to apply to the Amazon ECR repository. For more information, see Private repository policy examples in the Amazon ECR User Guide.
repositoryPolicy
- The JSON repository policy text to apply to the Amazon ECR repository. For more information, see Private
repository policy examples in the Amazon ECR User Guide.public String getRepositoryPolicy()
The JSON repository policy text to apply to the Amazon ECR repository. For more information, see Private repository policy examples in the Amazon ECR User Guide.
public EcrRepositoryConfiguration withRepositoryPolicy(String repositoryPolicy)
The JSON repository policy text to apply to the Amazon ECR repository. For more information, see Private repository policy examples in the Amazon ECR User Guide.
repositoryPolicy
- The JSON repository policy text to apply to the Amazon ECR repository. For more information, see Private
repository policy examples in the Amazon ECR User Guide.public String toString()
toString
in class Object
Object.toString()
public EcrRepositoryConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.