/* * 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 servicediscovery-2017-03-14.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.ServiceDiscovery.Model { /// /// A complex type that contains information about a specified operation. /// public partial class Operation { private DateTime? _createDate; private string _errorCode; private string _errorMessage; private string _id; private OperationStatus _status; private Dictionary _targets = new Dictionary(); private OperationType _type; private DateTime? _updateDate; /// /// Gets and sets the property CreateDate. /// /// The date and time that the request was submitted, in Unix date/time format and Coordinated /// Universal Time (UTC). The value of CreateDate is accurate to milliseconds. /// For example, the value 1516925490.087 represents Friday, January 26, /// 2018 12:11:30.087 AM. /// /// public DateTime CreateDate { get { return this._createDate.GetValueOrDefault(); } set { this._createDate = value; } } // Check to see if CreateDate property is set internal bool IsSetCreateDate() { return this._createDate.HasValue; } /// /// Gets and sets the property ErrorCode. /// /// The code associated with ErrorMessage. Values for ErrorCode /// include the following: /// ///
  • /// /// ACCESS_DENIED /// ///
  • /// /// CANNOT_CREATE_HOSTED_ZONE /// ///
  • /// /// EXPIRED_TOKEN /// ///
  • /// /// HOSTED_ZONE_NOT_FOUND /// ///
  • /// /// INTERNAL_FAILURE /// ///
  • /// /// INVALID_CHANGE_BATCH /// ///
  • /// /// THROTTLED_REQUEST /// ///
///
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 ErrorMessage. /// /// If the value of Status is FAIL, the reason that the operation /// failed. /// /// public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// /// Gets and sets the property Id. /// /// The ID of the operation that you want to get information about. /// /// [AWSProperty(Max=255)] 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 Status. /// /// The status of the operation. Values include the following: /// ///
SUBMITTED
/// /// This is the initial state that occurs immediately after you submit a request. /// ///
PENDING
/// /// Cloud Map is performing the operation. /// ///
SUCCESS
/// /// The operation succeeded. /// ///
FAIL
/// /// The operation failed. For the failure reason, see ErrorMessage. /// ///
///
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 Targets. /// /// The name of the target entity that's associated with the operation: /// ///
NAMESPACE
/// /// The namespace ID is returned in the ResourceId property. /// ///
SERVICE
/// /// The service ID is returned in the ResourceId property. /// ///
INSTANCE
/// /// The instance ID is returned in the ResourceId property. /// ///
///
public Dictionary Targets { get { return this._targets; } set { this._targets = value; } } // Check to see if Targets property is set internal bool IsSetTargets() { return this._targets != null && this._targets.Count > 0; } /// /// Gets and sets the property Type. /// /// The name of the operation that's associated with the specified ID. /// /// public OperationType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property UpdateDate. /// /// The date and time that the value of Status changed to the current value, /// in Unix date/time format and Coordinated Universal Time (UTC). The value of UpdateDate /// is accurate to milliseconds. For example, the value 1516925490.087 represents /// Friday, January 26, 2018 12:11:30.087 AM. /// /// public DateTime UpdateDate { get { return this._updateDate.GetValueOrDefault(); } set { this._updateDate = value; } } // Check to see if UpdateDate property is set internal bool IsSetUpdateDate() { return this._updateDate.HasValue; } } }