@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RepositoryCreationTemplate extends Object implements Serializable, Cloneable, StructuredPojo
The details of the repository creation template associated with the request.
Constructor and Description |
---|
RepositoryCreationTemplate() |
Modifier and Type | Method and Description |
---|---|
RepositoryCreationTemplate |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAppliedFor()
A list of enumerable Strings representing the repository creation scenarios that this template will apply
towards.
|
Date |
getCreatedAt()
The date and time, in JavaScript date format, when the repository creation template was created.
|
String |
getCustomRoleArn()
The ARN of the role to be assumed by Amazon ECR.
|
String |
getDescription()
The description associated with the repository creation template.
|
EncryptionConfigurationForRepositoryCreationTemplate |
getEncryptionConfiguration()
The encryption configuration associated with the repository creation template.
|
String |
getImageTagMutability()
The tag mutability setting for the repository.
|
String |
getLifecyclePolicy()
The lifecycle policy to use for repositories created using the template.
|
String |
getPrefix()
The repository namespace prefix associated with the repository creation template.
|
String |
getRepositoryPolicy()
he repository policy to apply to repositories created using the template.
|
List<Tag> |
getResourceTags()
The metadata to apply to the repository to help you categorize and organize.
|
Date |
getUpdatedAt()
The date and time, in JavaScript date format, when the repository creation template was last updated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAppliedFor(Collection<String> appliedFor)
A list of enumerable Strings representing the repository creation scenarios that this template will apply
towards.
|
void |
setCreatedAt(Date createdAt)
The date and time, in JavaScript date format, when the repository creation template was created.
|
void |
setCustomRoleArn(String customRoleArn)
The ARN of the role to be assumed by Amazon ECR.
|
void |
setDescription(String description)
The description associated with the repository creation template.
|
void |
setEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate encryptionConfiguration)
The encryption configuration associated with the repository creation template.
|
void |
setImageTagMutability(String imageTagMutability)
The tag mutability setting for the repository.
|
void |
setLifecyclePolicy(String lifecyclePolicy)
The lifecycle policy to use for repositories created using the template.
|
void |
setPrefix(String prefix)
The repository namespace prefix associated with the repository creation template.
|
void |
setRepositoryPolicy(String repositoryPolicy)
he repository policy to apply to repositories created using the template.
|
void |
setResourceTags(Collection<Tag> resourceTags)
The metadata to apply to the repository to help you categorize and organize.
|
void |
setUpdatedAt(Date updatedAt)
The date and time, in JavaScript date format, when the repository creation template was last updated.
|
String |
toString()
Returns a string representation of this object.
|
RepositoryCreationTemplate |
withAppliedFor(Collection<String> appliedFor)
A list of enumerable Strings representing the repository creation scenarios that this template will apply
towards.
|
RepositoryCreationTemplate |
withAppliedFor(RCTAppliedFor... appliedFor)
A list of enumerable Strings representing the repository creation scenarios that this template will apply
towards.
|
RepositoryCreationTemplate |
withAppliedFor(String... appliedFor)
A list of enumerable Strings representing the repository creation scenarios that this template will apply
towards.
|
RepositoryCreationTemplate |
withCreatedAt(Date createdAt)
The date and time, in JavaScript date format, when the repository creation template was created.
|
RepositoryCreationTemplate |
withCustomRoleArn(String customRoleArn)
The ARN of the role to be assumed by Amazon ECR.
|
RepositoryCreationTemplate |
withDescription(String description)
The description associated with the repository creation template.
|
RepositoryCreationTemplate |
withEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate encryptionConfiguration)
The encryption configuration associated with the repository creation template.
|
RepositoryCreationTemplate |
withImageTagMutability(ImageTagMutability imageTagMutability)
The tag mutability setting for the repository.
|
RepositoryCreationTemplate |
withImageTagMutability(String imageTagMutability)
The tag mutability setting for the repository.
|
RepositoryCreationTemplate |
withLifecyclePolicy(String lifecyclePolicy)
The lifecycle policy to use for repositories created using the template.
|
RepositoryCreationTemplate |
withPrefix(String prefix)
The repository namespace prefix associated with the repository creation template.
|
RepositoryCreationTemplate |
withRepositoryPolicy(String repositoryPolicy)
he repository policy to apply to repositories created using the template.
|
RepositoryCreationTemplate |
withResourceTags(Collection<Tag> resourceTags)
The metadata to apply to the repository to help you categorize and organize.
|
RepositoryCreationTemplate |
withResourceTags(Tag... resourceTags)
The metadata to apply to the repository to help you categorize and organize.
|
RepositoryCreationTemplate |
withUpdatedAt(Date updatedAt)
The date and time, in JavaScript date format, when the repository creation template was last updated.
|
public void setPrefix(String prefix)
The repository namespace prefix associated with the repository creation template.
prefix
- The repository namespace prefix associated with the repository creation template.public String getPrefix()
The repository namespace prefix associated with the repository creation template.
public RepositoryCreationTemplate withPrefix(String prefix)
The repository namespace prefix associated with the repository creation template.
prefix
- The repository namespace prefix associated with the repository creation template.public void setDescription(String description)
The description associated with the repository creation template.
description
- The description associated with the repository creation template.public String getDescription()
The description associated with the repository creation template.
public RepositoryCreationTemplate withDescription(String description)
The description associated with the repository creation template.
description
- The description associated with the repository creation template.public void setEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate encryptionConfiguration)
The encryption configuration associated with the repository creation template.
encryptionConfiguration
- The encryption configuration associated with the repository creation template.public EncryptionConfigurationForRepositoryCreationTemplate getEncryptionConfiguration()
The encryption configuration associated with the repository creation template.
public RepositoryCreationTemplate withEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate encryptionConfiguration)
The encryption configuration associated with the repository creation template.
encryptionConfiguration
- The encryption configuration associated with the repository creation template.public List<Tag> getResourceTags()
The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
public void setResourceTags(Collection<Tag> resourceTags)
The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
resourceTags
- The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key
and an optional value, both of which you define. Tag keys can have a maximum character length of 128
characters, and tag values can have a maximum length of 256 characters.public RepositoryCreationTemplate withResourceTags(Tag... resourceTags)
The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTags(java.util.Collection)
or withResourceTags(java.util.Collection)
if you want to
override the existing values.
resourceTags
- The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key
and an optional value, both of which you define. Tag keys can have a maximum character length of 128
characters, and tag values can have a maximum length of 256 characters.public RepositoryCreationTemplate withResourceTags(Collection<Tag> resourceTags)
The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
resourceTags
- The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key
and an optional value, both of which you define. Tag keys can have a maximum character length of 128
characters, and tag values can have a maximum length of 256 characters.public void setImageTagMutability(String imageTagMutability)
The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
imageTagMutability
- The tag mutability setting for the repository. If this parameter is omitted, the default setting of
MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image
tags within the repository will be immutable which will prevent them from being overwritten.ImageTagMutability
public String getImageTagMutability()
The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
ImageTagMutability
public RepositoryCreationTemplate withImageTagMutability(String imageTagMutability)
The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
imageTagMutability
- The tag mutability setting for the repository. If this parameter is omitted, the default setting of
MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image
tags within the repository will be immutable which will prevent them from being overwritten.ImageTagMutability
public RepositoryCreationTemplate withImageTagMutability(ImageTagMutability imageTagMutability)
The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
imageTagMutability
- The tag mutability setting for the repository. If this parameter is omitted, the default setting of
MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image
tags within the repository will be immutable which will prevent them from being overwritten.ImageTagMutability
public void setRepositoryPolicy(String repositoryPolicy)
he repository policy to apply to repositories created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.
repositoryPolicy
- he repository policy to apply to repositories created using the template. A repository policy is a
permissions policy associated with a repository to control access permissions.public String getRepositoryPolicy()
he repository policy to apply to repositories created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.
public RepositoryCreationTemplate withRepositoryPolicy(String repositoryPolicy)
he repository policy to apply to repositories created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.
repositoryPolicy
- he repository policy to apply to repositories created using the template. A repository policy is a
permissions policy associated with a repository to control access permissions.public void setLifecyclePolicy(String lifecyclePolicy)
The lifecycle policy to use for repositories created using the template.
lifecyclePolicy
- The lifecycle policy to use for repositories created using the template.public String getLifecyclePolicy()
The lifecycle policy to use for repositories created using the template.
public RepositoryCreationTemplate withLifecyclePolicy(String lifecyclePolicy)
The lifecycle policy to use for repositories created using the template.
lifecyclePolicy
- The lifecycle policy to use for repositories created using the template.public List<String> getAppliedFor()
A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION
RCTAppliedFor
public void setAppliedFor(Collection<String> appliedFor)
A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION
appliedFor
- A list of enumerable Strings representing the repository creation scenarios that this template will apply
towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATIONRCTAppliedFor
public RepositoryCreationTemplate withAppliedFor(String... appliedFor)
A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION
NOTE: This method appends the values to the existing list (if any). Use
setAppliedFor(java.util.Collection)
or withAppliedFor(java.util.Collection)
if you want to
override the existing values.
appliedFor
- A list of enumerable Strings representing the repository creation scenarios that this template will apply
towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATIONRCTAppliedFor
public RepositoryCreationTemplate withAppliedFor(Collection<String> appliedFor)
A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION
appliedFor
- A list of enumerable Strings representing the repository creation scenarios that this template will apply
towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATIONRCTAppliedFor
public RepositoryCreationTemplate withAppliedFor(RCTAppliedFor... appliedFor)
A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION
appliedFor
- A list of enumerable Strings representing the repository creation scenarios that this template will apply
towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATIONRCTAppliedFor
public void setCustomRoleArn(String customRoleArn)
The ARN of the role to be assumed by Amazon ECR.
customRoleArn
- The ARN of the role to be assumed by Amazon ECR.public String getCustomRoleArn()
The ARN of the role to be assumed by Amazon ECR.
public RepositoryCreationTemplate withCustomRoleArn(String customRoleArn)
The ARN of the role to be assumed by Amazon ECR.
customRoleArn
- The ARN of the role to be assumed by Amazon ECR.public void setCreatedAt(Date createdAt)
The date and time, in JavaScript date format, when the repository creation template was created.
createdAt
- The date and time, in JavaScript date format, when the repository creation template was created.public Date getCreatedAt()
The date and time, in JavaScript date format, when the repository creation template was created.
public RepositoryCreationTemplate withCreatedAt(Date createdAt)
The date and time, in JavaScript date format, when the repository creation template was created.
createdAt
- The date and time, in JavaScript date format, when the repository creation template was created.public void setUpdatedAt(Date updatedAt)
The date and time, in JavaScript date format, when the repository creation template was last updated.
updatedAt
- The date and time, in JavaScript date format, when the repository creation template was last updated.public Date getUpdatedAt()
The date and time, in JavaScript date format, when the repository creation template was last updated.
public RepositoryCreationTemplate withUpdatedAt(Date updatedAt)
The date and time, in JavaScript date format, when the repository creation template was last updated.
updatedAt
- The date and time, in JavaScript date format, when the repository creation template was last updated.public String toString()
toString
in class Object
Object.toString()
public RepositoryCreationTemplate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.