/* * 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 lightsail-2016-11-28.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.Lightsail.Model { /// /// Describes a CloudFormation stack record created as a result of the create cloud /// formation stack action. /// /// /// /// A CloudFormation stack record provides information about the AWS CloudFormation stack /// used to create a new Amazon Elastic Compute Cloud instance from an exported Lightsail /// instance snapshot. /// /// public partial class CloudFormationStackRecord { private string _arn; private DateTime? _createdAt; private DestinationInfo _destinationInfo; private ResourceLocation _location; private string _name; private ResourceType _resourceType; private List _sourceInfo = new List(); private RecordState _state; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the CloudFormation stack record. /// /// public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property CreatedAt. /// /// The date when the CloudFormation stack record was created. /// /// public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property DestinationInfo. /// /// A list of objects describing the destination service, which is AWS CloudFormation, /// and the Amazon Resource Name (ARN) of the AWS CloudFormation stack. /// /// public DestinationInfo DestinationInfo { get { return this._destinationInfo; } set { this._destinationInfo = value; } } // Check to see if DestinationInfo property is set internal bool IsSetDestinationInfo() { return this._destinationInfo != null; } /// /// Gets and sets the property Location. /// /// A list of objects describing the Availability Zone and Amazon Web Services Region /// of the CloudFormation stack record. /// /// public ResourceLocation Location { get { return this._location; } set { this._location = value; } } // Check to see if Location property is set internal bool IsSetLocation() { return this._location != null; } /// /// Gets and sets the property Name. /// /// The name of the CloudFormation stack record. It starts with CloudFormationStackRecord /// followed by a GUID. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property ResourceType. /// /// The Lightsail resource type (e.g., CloudFormationStackRecord). /// /// public ResourceType 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 SourceInfo. /// /// A list of objects describing the source of the CloudFormation stack record. /// /// public List SourceInfo { get { return this._sourceInfo; } set { this._sourceInfo = value; } } // Check to see if SourceInfo property is set internal bool IsSetSourceInfo() { return this._sourceInfo != null && this._sourceInfo.Count > 0; } /// /// Gets and sets the property State. /// /// The current state of the CloudFormation stack record. /// /// public RecordState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } } }