/*
* 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-2015-09-21.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.ECR.Model
{
///
/// Container for the parameters to the CreateRepository operation.
/// Creates a repository. For more information, see Amazon
/// ECR repositories in the Amazon Elastic Container Registry User Guide.
///
public partial class CreateRepositoryRequest : AmazonECRRequest
{
private EncryptionConfiguration _encryptionConfiguration;
private ImageScanningConfiguration _imageScanningConfiguration;
private ImageTagMutability _imageTagMutability;
private string _registryId;
private string _repositoryName;
private List _tags = new List();
///
/// Gets and sets the property EncryptionConfiguration.
///
/// The encryption configuration for the repository. This determines how the contents
/// of your repository are encrypted at rest.
///
///
public EncryptionConfiguration EncryptionConfiguration
{
get { return this._encryptionConfiguration; }
set { this._encryptionConfiguration = value; }
}
// Check to see if EncryptionConfiguration property is set
internal bool IsSetEncryptionConfiguration()
{
return this._encryptionConfiguration != null;
}
///
/// Gets and sets the property ImageScanningConfiguration.
///
/// The image scanning configuration for the repository. This determines whether images
/// are scanned for known vulnerabilities after being pushed to the repository.
///
///
public ImageScanningConfiguration ImageScanningConfiguration
{
get { return this._imageScanningConfiguration; }
set { this._imageScanningConfiguration = value; }
}
// Check to see if ImageScanningConfiguration property is set
internal bool IsSetImageScanningConfiguration()
{
return this._imageScanningConfiguration != null;
}
///
/// Gets and sets the property 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.
///
///
public ImageTagMutability ImageTagMutability
{
get { return this._imageTagMutability; }
set { this._imageTagMutability = value; }
}
// Check to see if ImageTagMutability property is set
internal bool IsSetImageTagMutability()
{
return this._imageTagMutability != null;
}
///
/// Gets and sets the property RegistryId.
///
/// The Amazon Web Services account ID associated with the registry to create the repository.
/// If you do not specify a registry, the default registry is assumed.
///
///
public string RegistryId
{
get { return this._registryId; }
set { this._registryId = value; }
}
// Check to see if RegistryId property is set
internal bool IsSetRegistryId()
{
return this._registryId != null;
}
///
/// Gets and sets the property RepositoryName.
///
/// The name to use for the repository. The repository name may be specified on its own
/// (such as nginx-web-app
) or it can be prepended with a namespace to group
/// the repository into a category (such as project-a/nginx-web-app
).
///
///
[AWSProperty(Required=true, Min=2, Max=256)]
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 the repository to help you categorize and organize
/// them. 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 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;
}
}
}