/* * 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 health-2016-08-04.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.AWSHealth.Model { /// /// Information about an entity that is affected by a Health event. /// public partial class AffectedEntity { private string _awsAccountId; private string _entityArn; private string _entityUrl; private string _entityValue; private string _eventArn; private DateTime? _lastUpdatedTime; private EntityStatusCode _statusCode; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property AwsAccountId. /// /// The 12-digit Amazon Web Services account number that contains the affected entity. /// /// [AWSProperty(Max=12)] public string AwsAccountId { get { return this._awsAccountId; } set { this._awsAccountId = value; } } // Check to see if AwsAccountId property is set internal bool IsSetAwsAccountId() { return this._awsAccountId != null; } /// /// Gets and sets the property EntityArn. /// /// The unique identifier for the entity. Format: arn:aws:health:entity-region:aws-account:entity/entity-id /// . Example: arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K /// /// /// [AWSProperty(Max=1600)] public string EntityArn { get { return this._entityArn; } set { this._entityArn = value; } } // Check to see if EntityArn property is set internal bool IsSetEntityArn() { return this._entityArn != null; } /// /// Gets and sets the property EntityUrl. /// /// The URL of the affected entity. /// /// public string EntityUrl { get { return this._entityUrl; } set { this._entityUrl = value; } } // Check to see if EntityUrl property is set internal bool IsSetEntityUrl() { return this._entityUrl != null; } /// /// Gets and sets the property EntityValue. /// /// The ID of the affected entity. /// /// [AWSProperty(Max=1224)] public string EntityValue { get { return this._entityValue; } set { this._entityValue = value; } } // Check to see if EntityValue property is set internal bool IsSetEntityValue() { return this._entityValue != null; } /// /// Gets and sets the property EventArn. /// /// The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID /// format. /// /// /// /// For example, an event ARN might look like the following: /// /// /// /// arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456 /// /// /// [AWSProperty(Max=1600)] public string EventArn { get { return this._eventArn; } set { this._eventArn = value; } } // Check to see if EventArn property is set internal bool IsSetEventArn() { return this._eventArn != null; } /// /// Gets and sets the property LastUpdatedTime. /// /// The most recent time that the entity was updated. /// /// public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// /// Gets and sets the property StatusCode. /// /// The most recent status of the entity affected by the event. The possible values are /// IMPAIRED, UNIMPAIRED, and UNKNOWN. /// /// public EntityStatusCode StatusCode { get { return this._statusCode; } set { this._statusCode = value; } } // Check to see if StatusCode property is set internal bool IsSetStatusCode() { return this._statusCode != null; } /// /// Gets and sets the property Tags. /// /// A map of entity tags attached to the affected entity. /// /// /// /// Currently, the tags property isn't supported. /// /// /// [AWSProperty(Max=50)] public Dictionary 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; } } }