/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ecrpublic.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateRepositoryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name to use for the repository. This appears publicly in the Amazon ECR Public Gallery. The repository name
* can be specified on its own (for example nginx-web-app
) or prepended with a namespace to group the
* repository into a category (for example project-a/nginx-web-app
).
*
* The details about the repository that are publicly visible in the Amazon ECR Public Gallery. *
*/ private RepositoryCatalogDataInput catalogData; /** ** The metadata that you apply to each repository to help categorize and organize your repositories. Each tag * consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of * 128 characters, and tag values can have a maximum length of 256 characters. *
*/ private java.util.List
* The name to use for the repository. This appears publicly in the Amazon ECR Public Gallery. The repository name
* can be specified on its own (for example nginx-web-app
) or prepended with a namespace to group the
* repository into a category (for example project-a/nginx-web-app
).
*
nginx-web-app
) or prepended with a namespace to
* group the repository into a category (for example project-a/nginx-web-app
).
*/
public void setRepositoryName(String repositoryName) {
this.repositoryName = repositoryName;
}
/**
*
* The name to use for the repository. This appears publicly in the Amazon ECR Public Gallery. The repository name
* can be specified on its own (for example nginx-web-app
) or prepended with a namespace to group the
* repository into a category (for example project-a/nginx-web-app
).
*
nginx-web-app
) or prepended with a
* namespace to group the repository into a category (for example project-a/nginx-web-app
).
*/
public String getRepositoryName() {
return this.repositoryName;
}
/**
*
* The name to use for the repository. This appears publicly in the Amazon ECR Public Gallery. The repository name
* can be specified on its own (for example nginx-web-app
) or prepended with a namespace to group the
* repository into a category (for example project-a/nginx-web-app
).
*
nginx-web-app
) or prepended with a namespace to
* group the repository into a category (for example project-a/nginx-web-app
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateRepositoryRequest withRepositoryName(String repositoryName) {
setRepositoryName(repositoryName);
return this;
}
/**
* * The details about the repository that are publicly visible in the Amazon ECR Public Gallery. *
* * @param catalogData * The details about the repository that are publicly visible in the Amazon ECR Public Gallery. */ public void setCatalogData(RepositoryCatalogDataInput catalogData) { this.catalogData = catalogData; } /** ** The details about the repository that are publicly visible in the Amazon ECR Public Gallery. *
* * @return The details about the repository that are publicly visible in the Amazon ECR Public Gallery. */ public RepositoryCatalogDataInput getCatalogData() { return this.catalogData; } /** ** The details about the repository that are publicly visible in the Amazon ECR Public Gallery. *
* * @param catalogData * The details about the repository that are publicly visible in the Amazon ECR Public Gallery. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRepositoryRequest withCatalogData(RepositoryCatalogDataInput catalogData) { setCatalogData(catalogData); return this; } /** ** The metadata that you apply to each repository to help categorize and organize your repositories. Each tag * consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of * 128 characters, and tag values can have a maximum length of 256 characters. *
* * @return The metadata that you apply to each repository to help categorize and organize your repositories. Each * tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum * character length of 128 characters, and tag values can have a maximum length of 256 characters. */ public java.util.List* The metadata that you apply to each repository to help categorize and organize your repositories. Each tag * consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of * 128 characters, and tag values can have a maximum length of 256 characters. *
* * @param tags * The metadata that you apply to each repository to help categorize and organize your repositories. Each tag * consists of a key and an optional value. You define both of them. Tag keys can have a maximum character * length of 128 characters, and tag values can have a maximum length of 256 characters. */ public void setTags(java.util.Collection* The metadata that you apply to each repository to help categorize and organize your repositories. Each tag * consists of a key and an optional value. You define both of them. 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 * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The metadata that you apply to each repository to help categorize and organize your repositories. Each tag * consists of a key and an optional value. You define both of them. Tag keys can have a maximum character * length of 128 characters, and tag values can have a maximum length of 256 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRepositoryRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The metadata that you apply to each repository to help categorize and organize your repositories. Each tag * consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of * 128 characters, and tag values can have a maximum length of 256 characters. *
* * @param tags * The metadata that you apply to each repository to help categorize and organize your repositories. Each tag * consists of a key and an optional value. You define both of them. Tag keys can have a maximum character * length of 128 characters, and tag values can have a maximum length of 256 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRepositoryRequest withTags(java.util.Collection