/*
* 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
{
///
/// The details of the scanning configuration for a repository.
///
public partial class RepositoryScanningConfiguration
{
private List _appliedScanFilters = new List();
private string _repositoryArn;
private string _repositoryName;
private ScanFrequency _scanFrequency;
private bool? _scanOnPush;
///
/// Gets and sets the property AppliedScanFilters.
///
/// The scan filters applied to the repository.
///
///
[AWSProperty(Min=0, Max=100)]
public List AppliedScanFilters
{
get { return this._appliedScanFilters; }
set { this._appliedScanFilters = value; }
}
// Check to see if AppliedScanFilters property is set
internal bool IsSetAppliedScanFilters()
{
return this._appliedScanFilters != null && this._appliedScanFilters.Count > 0;
}
///
/// Gets and sets the property RepositoryArn.
///
/// The ARN of the repository.
///
///
public string RepositoryArn
{
get { return this._repositoryArn; }
set { this._repositoryArn = value; }
}
// Check to see if RepositoryArn property is set
internal bool IsSetRepositoryArn()
{
return this._repositoryArn != null;
}
///
/// Gets and sets the property RepositoryName.
///
/// The name of the repository.
///
///
[AWSProperty(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 ScanFrequency.
///
/// The scan frequency for the repository.
///
///
public ScanFrequency ScanFrequency
{
get { return this._scanFrequency; }
set { this._scanFrequency = value; }
}
// Check to see if ScanFrequency property is set
internal bool IsSetScanFrequency()
{
return this._scanFrequency != null;
}
///
/// Gets and sets the property ScanOnPush.
///
/// Whether or not scan on push is configured for the repository.
///
///
public bool ScanOnPush
{
get { return this._scanOnPush.GetValueOrDefault(); }
set { this._scanOnPush = value; }
}
// Check to see if ScanOnPush property is set
internal bool IsSetScanOnPush()
{
return this._scanOnPush.HasValue;
}
}
}