/*
* 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 an instance snapshot.
///
public partial class InstanceSnapshot
{
private string _arn;
private DateTime? _createdAt;
private List _fromAttachedDisks = new List();
private string _fromBlueprintId;
private string _fromBundleId;
private string _fromInstanceArn;
private string _fromInstanceName;
private bool? _isFromAutoSnapshot;
private ResourceLocation _location;
private string _name;
private string _progress;
private ResourceType _resourceType;
private int? _sizeInGb;
private InstanceSnapshotState _state;
private string _supportCode;
private List _tags = new List();
///
/// Gets and sets the property Arn.
///
/// The Amazon Resource Name (ARN) of the snapshot (e.g., arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).
///
///
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 timestamp when the snapshot was created (e.g., 1479907467.024
).
///
///
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 FromAttachedDisks.
///
/// An array of disk objects containing information about all block storage disks.
///
///
public List FromAttachedDisks
{
get { return this._fromAttachedDisks; }
set { this._fromAttachedDisks = value; }
}
// Check to see if FromAttachedDisks property is set
internal bool IsSetFromAttachedDisks()
{
return this._fromAttachedDisks != null && this._fromAttachedDisks.Count > 0;
}
///
/// Gets and sets the property FromBlueprintId.
///
/// The blueprint ID from which you created the snapshot (e.g., os_debian_8_3
).
/// A blueprint is a virtual private server (or instance) image used to create
/// instances quickly.
///
///
public string FromBlueprintId
{
get { return this._fromBlueprintId; }
set { this._fromBlueprintId = value; }
}
// Check to see if FromBlueprintId property is set
internal bool IsSetFromBlueprintId()
{
return this._fromBlueprintId != null;
}
///
/// Gets and sets the property FromBundleId.
///
/// The bundle ID from which you created the snapshot (e.g., micro_1_0
).
///
///
public string FromBundleId
{
get { return this._fromBundleId; }
set { this._fromBundleId = value; }
}
// Check to see if FromBundleId property is set
internal bool IsSetFromBundleId()
{
return this._fromBundleId != null;
}
///
/// Gets and sets the property FromInstanceArn.
///
/// The Amazon Resource Name (ARN) of the instance from which the snapshot was created
/// (e.g., arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).
///
///
public string FromInstanceArn
{
get { return this._fromInstanceArn; }
set { this._fromInstanceArn = value; }
}
// Check to see if FromInstanceArn property is set
internal bool IsSetFromInstanceArn()
{
return this._fromInstanceArn != null;
}
///
/// Gets and sets the property FromInstanceName.
///
/// The instance from which the snapshot was created.
///
///
public string FromInstanceName
{
get { return this._fromInstanceName; }
set { this._fromInstanceName = value; }
}
// Check to see if FromInstanceName property is set
internal bool IsSetFromInstanceName()
{
return this._fromInstanceName != null;
}
///
/// Gets and sets the property IsFromAutoSnapshot.
///
/// A Boolean value indicating whether the snapshot was created from an automatic snapshot.
///
///
public bool IsFromAutoSnapshot
{
get { return this._isFromAutoSnapshot.GetValueOrDefault(); }
set { this._isFromAutoSnapshot = value; }
}
// Check to see if IsFromAutoSnapshot property is set
internal bool IsSetIsFromAutoSnapshot()
{
return this._isFromAutoSnapshot.HasValue;
}
///
/// Gets and sets the property Location.
///
/// The region name and Availability Zone where you created the snapshot.
///
///
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 snapshot.
///
///
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 Progress.
///
/// The progress of the snapshot.
///
///
///
/// This is populated only for disk snapshots, and is null
for instance snapshots.
///
///
///
public string Progress
{
get { return this._progress; }
set { this._progress = value; }
}
// Check to see if Progress property is set
internal bool IsSetProgress()
{
return this._progress != null;
}
///
/// Gets and sets the property ResourceType.
///
/// The type of resource (usually InstanceSnapshot
).
///
///
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 SizeInGb.
///
/// The size in GB of the SSD.
///
///
public int SizeInGb
{
get { return this._sizeInGb.GetValueOrDefault(); }
set { this._sizeInGb = value; }
}
// Check to see if SizeInGb property is set
internal bool IsSetSizeInGb()
{
return this._sizeInGb.HasValue;
}
///
/// Gets and sets the property State.
///
/// The state the snapshot is in.
///
///
public InstanceSnapshotState 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 SupportCode.
///
/// The support code. Include this code in your email to support when you have questions
/// about an instance or another resource in Lightsail. This code enables our support
/// team to look up your Lightsail information more easily.
///
///
public string SupportCode
{
get { return this._supportCode; }
set { this._supportCode = value; }
}
// Check to see if SupportCode property is set
internal bool IsSetSupportCode()
{
return this._supportCode != null;
}
///
/// Gets and sets the property Tags.
///
/// The tag keys and optional values for the resource. For more information about tags
/// in Lightsail, see the Amazon
/// Lightsail Developer Guide.
///
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}