/* * 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 the API operation. /// public partial class Operation { private DateTime? _createdAt; private string _errorCode; private string _errorDetails; private string _id; private bool? _isTerminal; private ResourceLocation _location; private string _operationDetails; private OperationType _operationType; private string _resourceName; private ResourceType _resourceType; private OperationStatus _status; private DateTime? _statusChangedAt; /// /// Gets and sets the property CreatedAt. /// /// The timestamp when the operation was initialized (e.g., 1479816991.349). /// /// 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 ErrorCode. /// /// The error code. /// /// public string ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// /// Gets and sets the property ErrorDetails. /// /// The error details. /// /// public string ErrorDetails { get { return this._errorDetails; } set { this._errorDetails = value; } } // Check to see if ErrorDetails property is set internal bool IsSetErrorDetails() { return this._errorDetails != null; } /// /// Gets and sets the property Id. /// /// The ID of the operation. /// /// public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property IsTerminal. /// /// A Boolean value indicating whether the operation is terminal. /// /// public bool IsTerminal { get { return this._isTerminal.GetValueOrDefault(); } set { this._isTerminal = value; } } // Check to see if IsTerminal property is set internal bool IsSetIsTerminal() { return this._isTerminal.HasValue; } /// /// Gets and sets the property Location. /// /// The Amazon Web Services Region and Availability Zone. /// /// 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 OperationDetails. /// /// Details about the operation (e.g., Debian-1GB-Ohio-1). /// /// public string OperationDetails { get { return this._operationDetails; } set { this._operationDetails = value; } } // Check to see if OperationDetails property is set internal bool IsSetOperationDetails() { return this._operationDetails != null; } /// /// Gets and sets the property OperationType. /// /// The type of operation. /// /// public OperationType OperationType { get { return this._operationType; } set { this._operationType = value; } } // Check to see if OperationType property is set internal bool IsSetOperationType() { return this._operationType != null; } /// /// Gets and sets the property ResourceName. /// /// The resource name. /// /// public string ResourceName { get { return this._resourceName; } set { this._resourceName = value; } } // Check to see if ResourceName property is set internal bool IsSetResourceName() { return this._resourceName != null; } /// /// Gets and sets the property ResourceType. /// /// The resource type. /// /// 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 Status. /// /// The status of the operation. /// /// public OperationStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property StatusChangedAt. /// /// The timestamp when the status was changed (e.g., 1479816991.349). /// /// public DateTime StatusChangedAt { get { return this._statusChangedAt.GetValueOrDefault(); } set { this._statusChangedAt = value; } } // Check to see if StatusChangedAt property is set internal bool IsSetStatusChangedAt() { return this._statusChangedAt.HasValue; } } }