/* * 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 ec2-2016-11-15.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.EC2.Model { /// /// This is the response object from the EnableFastLaunch operation. /// public partial class EnableFastLaunchResponse : AmazonWebServiceResponse { private string _imageId; private FastLaunchLaunchTemplateSpecificationResponse _launchTemplate; private int? _maxParallelLaunches; private string _ownerId; private FastLaunchResourceType _resourceType; private FastLaunchSnapshotConfigurationResponse _snapshotConfiguration; private FastLaunchStateCode _state; private string _stateTransitionReason; private DateTime? _stateTransitionTime; /// /// Gets and sets the property ImageId. /// /// The image ID that identifies the Windows AMI for which faster launching was enabled. /// /// public string ImageId { get { return this._imageId; } set { this._imageId = value; } } // Check to see if ImageId property is set internal bool IsSetImageId() { return this._imageId != null; } /// /// Gets and sets the property LaunchTemplate. /// /// The launch template that is used when launching Windows instances from pre-provisioned /// snapshots. /// /// public FastLaunchLaunchTemplateSpecificationResponse 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 instances that Amazon EC2 can launch at the same time to create /// pre-provisioned snapshots for Windows faster launching. /// /// 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 OwnerId. /// /// The owner ID for the Windows AMI for which faster launching was enabled. /// /// public string OwnerId { get { return this._ownerId; } set { this._ownerId = value; } } // Check to see if OwnerId property is set internal bool IsSetOwnerId() { return this._ownerId != null; } /// /// Gets and sets the property ResourceType. /// /// The type of resource that was defined for pre-provisioning the Windows AMI for faster /// launching. /// /// public FastLaunchResourceType ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// /// Gets and sets the property SnapshotConfiguration. /// /// Settings to create and manage the pre-provisioned snapshots that Amazon EC2 uses for /// faster launches from the Windows AMI. This property is returned when the associated /// resourceType is snapshot. /// /// public FastLaunchSnapshotConfigurationResponse SnapshotConfiguration { get { return this._snapshotConfiguration; } set { this._snapshotConfiguration = value; } } // Check to see if SnapshotConfiguration property is set internal bool IsSetSnapshotConfiguration() { return this._snapshotConfiguration != null; } /// /// Gets and sets the property State. /// /// The current state of faster launching for the specified Windows AMI. /// /// public FastLaunchStateCode State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property StateTransitionReason. /// /// The reason that the state changed for faster launching for the Windows AMI. /// /// public string StateTransitionReason { get { return this._stateTransitionReason; } set { this._stateTransitionReason = value; } } // Check to see if StateTransitionReason property is set internal bool IsSetStateTransitionReason() { return this._stateTransitionReason != null; } /// /// Gets and sets the property StateTransitionTime. /// /// The time that the state changed for faster launching for the Windows AMI. /// /// public DateTime StateTransitionTime { get { return this._stateTransitionTime.GetValueOrDefault(); } set { this._stateTransitionTime = value; } } // Check to see if StateTransitionTime property is set internal bool IsSetStateTransitionTime() { return this._stateTransitionTime.HasValue; } } }