/* * 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.codecommit.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Represents the input of a create repository operation. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateRepositoryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The name of the new repository to be created. *
** The repository name must be unique across the calling AWS account. Repository names are limited to 100 * alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about * the limits on repository names, see Limits in the AWS CodeCommit * User Guide. The suffix .git is prohibited. *
** A comment or description about the new repository. *
** The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications * that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious * code. Make sure that you HTML-encode the description field in any application that uses this API to display the * repository description on a webpage. *
** One or more tag key-value pairs to use when tagging this repository. *
*/ private java.util.Map* The name of the new repository to be created. *
** The repository name must be unique across the calling AWS account. Repository names are limited to 100 * alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about * the limits on repository names, see Limits in the AWS CodeCommit * User Guide. The suffix .git is prohibited. *
** The repository name must be unique across the calling AWS account. Repository names are limited to 100 * alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information * about the limits on repository names, see Limits in the AWS * CodeCommit User Guide. The suffix .git is prohibited. *
*/ public void setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; } /** ** The name of the new repository to be created. *
** The repository name must be unique across the calling AWS account. Repository names are limited to 100 * alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about * the limits on repository names, see Limits in the AWS CodeCommit * User Guide. The suffix .git is prohibited. *
** The repository name must be unique across the calling AWS account. Repository names are limited to 100 * alphanumeric, dash, and underscore characters, and cannot include certain characters. For more * information about the limits on repository names, see Limits in the AWS * CodeCommit User Guide. The suffix .git is prohibited. *
*/ public String getRepositoryName() { return this.repositoryName; } /** ** The name of the new repository to be created. *
** The repository name must be unique across the calling AWS account. Repository names are limited to 100 * alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about * the limits on repository names, see Limits in the AWS CodeCommit * User Guide. The suffix .git is prohibited. *
** The repository name must be unique across the calling AWS account. Repository names are limited to 100 * alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information * about the limits on repository names, see Limits in the AWS * CodeCommit User Guide. The suffix .git is prohibited. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateRepositoryRequest withRepositoryName(String repositoryName) { setRepositoryName(repositoryName); return this; } /** ** A comment or description about the new repository. *
** The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications * that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious * code. Make sure that you HTML-encode the description field in any application that uses this API to display the * repository description on a webpage. *
** The description field for a repository accepts all HTML characters and all valid Unicode characters. * Applications that do not HTML-encode the description and display it in a webpage can expose users to * potentially malicious code. Make sure that you HTML-encode the description field in any application that * uses this API to display the repository description on a webpage. *
*/ public void setRepositoryDescription(String repositoryDescription) { this.repositoryDescription = repositoryDescription; } /** ** A comment or description about the new repository. *
** The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications * that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious * code. Make sure that you HTML-encode the description field in any application that uses this API to display the * repository description on a webpage. *
** The description field for a repository accepts all HTML characters and all valid Unicode characters. * Applications that do not HTML-encode the description and display it in a webpage can expose users to * potentially malicious code. Make sure that you HTML-encode the description field in any application that * uses this API to display the repository description on a webpage. *
*/ public String getRepositoryDescription() { return this.repositoryDescription; } /** ** A comment or description about the new repository. *
** The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications * that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious * code. Make sure that you HTML-encode the description field in any application that uses this API to display the * repository description on a webpage. *
** The description field for a repository accepts all HTML characters and all valid Unicode characters. * Applications that do not HTML-encode the description and display it in a webpage can expose users to * potentially malicious code. Make sure that you HTML-encode the description field in any application that * uses this API to display the repository description on a webpage. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateRepositoryRequest withRepositoryDescription(String repositoryDescription) { setRepositoryDescription(repositoryDescription); return this; } /** ** One or more tag key-value pairs to use when tagging this repository. *
* * @return One or more tag key-value pairs to use when tagging this repository. */ public java.util.Map* One or more tag key-value pairs to use when tagging this repository. *
* * @param tags * One or more tag key-value pairs to use when tagging this repository. */ public void setTags(java.util.Map* One or more tag key-value pairs to use when tagging this repository. *
* * @param tags * One or more tag key-value pairs to use when tagging this repository. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRepositoryRequest withTags(java.util.Map