/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the ecr-public-2020-10-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ECRPublic.Model { /// /// Container for the parameters to the CreateRepository operation. /// Creates a repository in a public registry. For more information, see Amazon /// ECR repositories in the Amazon Elastic Container Registry User Guide. /// public partial class CreateRepositoryRequest : AmazonECRPublicRequest { private RepositoryCatalogDataInput _catalogData; private string _repositoryName; private List _tags = new List(); /// /// Gets and sets the property CatalogData. /// /// The details about the repository that are publicly visible in the Amazon ECR Public /// Gallery. /// /// public RepositoryCatalogDataInput CatalogData { get { return this._catalogData; } set { this._catalogData = value; } } // Check to see if CatalogData property is set internal bool IsSetCatalogData() { return this._catalogData != null; } /// /// Gets and sets the property 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). /// /// [AWSProperty(Required=true, Min=2, Max=205)] public string RepositoryName { get { return this._repositoryName; } set { this._repositoryName = value; } } // Check to see if RepositoryName property is set internal bool IsSetRepositoryName() { return this._repositoryName != null; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=0, Max=200)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }