/* * 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 license-manager-2018-08-01.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.LicenseManager.Model { /// /// Describes the failure of a license operation. /// public partial class LicenseOperationFailure { private string _errorMessage; private DateTime? _failureTime; private List _metadataList = new List(); private string _operationName; private string _operationRequestedBy; private string _resourceArn; private string _resourceOwnerId; private ResourceType _resourceType; /// /// Gets and sets the property ErrorMessage. /// /// Error message. /// /// 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 FailureTime. /// /// Failure time. /// /// public DateTime FailureTime { get { return this._failureTime.GetValueOrDefault(); } set { this._failureTime = value; } } // Check to see if FailureTime property is set internal bool IsSetFailureTime() { return this._failureTime.HasValue; } /// /// Gets and sets the property MetadataList. /// /// Reserved. /// /// public List MetadataList { get { return this._metadataList; } set { this._metadataList = value; } } // Check to see if MetadataList property is set internal bool IsSetMetadataList() { return this._metadataList != null && this._metadataList.Count > 0; } /// /// Gets and sets the property OperationName. /// /// Name of the operation. /// /// public string OperationName { get { return this._operationName; } set { this._operationName = value; } } // Check to see if OperationName property is set internal bool IsSetOperationName() { return this._operationName != null; } /// /// Gets and sets the property OperationRequestedBy. /// /// The requester is "License Manager Automated Discovery". /// /// public string OperationRequestedBy { get { return this._operationRequestedBy; } set { this._operationRequestedBy = value; } } // Check to see if OperationRequestedBy property is set internal bool IsSetOperationRequestedBy() { return this._operationRequestedBy != null; } /// /// Gets and sets the property ResourceArn. /// /// Amazon Resource Name (ARN) of the resource. /// /// public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// /// Gets and sets the property ResourceOwnerId. /// /// ID of the Amazon Web Services account that owns the resource. /// /// public string ResourceOwnerId { get { return this._resourceOwnerId; } set { this._resourceOwnerId = value; } } // Check to see if ResourceOwnerId property is set internal bool IsSetResourceOwnerId() { return this._resourceOwnerId != null; } /// /// Gets and sets the property ResourceType. /// /// 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; } } }