/*
* 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 imagebuilder-2019-12-02.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.Imagebuilder.Model
{
///
/// Defines the settings for a specific Region.
///
public partial class Distribution
{
private AmiDistributionConfiguration _amiDistributionConfiguration;
private ContainerDistributionConfiguration _containerDistributionConfiguration;
private List _fastLaunchConfigurations = new List();
private List _launchTemplateConfigurations = new List();
private List _licenseConfigurationArns = new List();
private string _region;
private S3ExportConfiguration _s3ExportConfiguration;
///
/// Gets and sets the property AmiDistributionConfiguration.
///
/// The specific AMI settings; for example, launch permissions or AMI tags.
///
///
public AmiDistributionConfiguration AmiDistributionConfiguration
{
get { return this._amiDistributionConfiguration; }
set { this._amiDistributionConfiguration = value; }
}
// Check to see if AmiDistributionConfiguration property is set
internal bool IsSetAmiDistributionConfiguration()
{
return this._amiDistributionConfiguration != null;
}
///
/// Gets and sets the property ContainerDistributionConfiguration.
///
/// Container distribution settings for encryption, licensing, and sharing in a specific
/// Region.
///
///
public ContainerDistributionConfiguration ContainerDistributionConfiguration
{
get { return this._containerDistributionConfiguration; }
set { this._containerDistributionConfiguration = value; }
}
// Check to see if ContainerDistributionConfiguration property is set
internal bool IsSetContainerDistributionConfiguration()
{
return this._containerDistributionConfiguration != null;
}
///
/// Gets and sets the property FastLaunchConfigurations.
///
/// The Windows faster-launching configurations to use for AMI distribution.
///
///
[AWSProperty(Min=1, Max=1000)]
public List FastLaunchConfigurations
{
get { return this._fastLaunchConfigurations; }
set { this._fastLaunchConfigurations = value; }
}
// Check to see if FastLaunchConfigurations property is set
internal bool IsSetFastLaunchConfigurations()
{
return this._fastLaunchConfigurations != null && this._fastLaunchConfigurations.Count > 0;
}
///
/// Gets and sets the property LaunchTemplateConfigurations.
///
/// A group of launchTemplateConfiguration settings that apply to image distribution for
/// specified accounts.
///
///
[AWSProperty(Min=1, Max=100)]
public List LaunchTemplateConfigurations
{
get { return this._launchTemplateConfigurations; }
set { this._launchTemplateConfigurations = value; }
}
// Check to see if LaunchTemplateConfigurations property is set
internal bool IsSetLaunchTemplateConfigurations()
{
return this._launchTemplateConfigurations != null && this._launchTemplateConfigurations.Count > 0;
}
///
/// Gets and sets the property LicenseConfigurationArns.
///
/// The License Manager Configuration to associate with the AMI in the specified Region.
///
///
[AWSProperty(Min=1, Max=50)]
public List LicenseConfigurationArns
{
get { return this._licenseConfigurationArns; }
set { this._licenseConfigurationArns = value; }
}
// Check to see if LicenseConfigurationArns property is set
internal bool IsSetLicenseConfigurationArns()
{
return this._licenseConfigurationArns != null && this._licenseConfigurationArns.Count > 0;
}
///
/// Gets and sets the property Region.
///
/// The target Region.
///
///
[AWSProperty(Required=true, Min=1, Max=1024)]
public string Region
{
get { return this._region; }
set { this._region = value; }
}
// Check to see if Region property is set
internal bool IsSetRegion()
{
return this._region != null;
}
///
/// Gets and sets the property S3ExportConfiguration.
///
/// Configure export settings to deliver disk images created from your image build, using
/// a file format that is compatible with your VMs in that Region.
///
///
public S3ExportConfiguration S3ExportConfiguration
{
get { return this._s3ExportConfiguration; }
set { this._s3ExportConfiguration = value; }
}
// Check to see if S3ExportConfiguration property is set
internal bool IsSetS3ExportConfiguration()
{
return this._s3ExportConfiguration != null;
}
}
}