/* * 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 { /// /// Define and configure faster launching for output Windows AMIs. /// public partial class FastLaunchConfiguration { private string _accountId; private bool? _enabled; private FastLaunchLaunchTemplateSpecification _launchTemplate; private int? _maxParallelLaunches; private FastLaunchSnapshotConfiguration _snapshotConfiguration; /// /// Gets and sets the property AccountId. /// /// The owner account ID for the fast-launch enabled Windows AMI. /// /// public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// /// Gets and sets the property Enabled. /// /// A Boolean that represents the current state of faster launching for the Windows AMI. /// Set to true to start using Windows faster launching, or false /// to stop using it. /// /// [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// /// Gets and sets the property LaunchTemplate. /// /// The launch template that the fast-launch enabled Windows AMI uses when it launches /// Windows instances to create pre-provisioned snapshots. /// /// public FastLaunchLaunchTemplateSpecification LaunchTemplate { get { return this._launchTemplate; } set { this._launchTemplate = value; } } // Check to see if LaunchTemplate property is set internal bool IsSetLaunchTemplate() { return this._launchTemplate != null; } /// /// Gets and sets the property MaxParallelLaunches. /// /// The maximum number of parallel instances that are launched for creating resources. /// /// [AWSProperty(Min=1, Max=10000)] public int MaxParallelLaunches { get { return this._maxParallelLaunches.GetValueOrDefault(); } set { this._maxParallelLaunches = value; } } // Check to see if MaxParallelLaunches property is set internal bool IsSetMaxParallelLaunches() { return this._maxParallelLaunches.HasValue; } /// /// Gets and sets the property SnapshotConfiguration. /// /// Configuration settings for managing the number of snapshots that are created from /// pre-provisioned instances for the Windows AMI when faster launching is enabled. /// /// public FastLaunchSnapshotConfiguration SnapshotConfiguration { get { return this._snapshotConfiguration; } set { this._snapshotConfiguration = value; } } // Check to see if SnapshotConfiguration property is set internal bool IsSetSnapshotConfiguration() { return this._snapshotConfiguration != null; } } }