/*
* 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
{
///
/// Summary information about an event, returned by the DescribeEventsForOrganization
/// operation.
///
public partial class OrganizationEvent
{
private string _arn;
private DateTime? _endTime;
private EventScopeCode _eventScopeCode;
private EventTypeCategory _eventTypeCategory;
private string _eventTypeCode;
private DateTime? _lastUpdatedTime;
private string _region;
private string _service;
private DateTime? _startTime;
private EventStatusCode _statusCode;
///
/// Gets and sets the property Arn.
///
/// 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 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 EndTime.
///
/// The date and time that the event ended.
///
///
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property EventScopeCode.
///
/// This parameter specifies if the Health event is a public Amazon Web Service event
/// or an account-specific event.
///
/// -
///
/// If the
eventScopeCode
value is PUBLIC
, then the affectedAccounts
/// value is always empty.
///
/// -
///
/// If the
eventScopeCode
value is ACCOUNT_SPECIFIC
, then the
/// affectedAccounts
value lists the affected Amazon Web Services accounts
/// in your organization. For example, if an event affects a service such as Amazon Elastic
/// Compute Cloud and you have Amazon Web Services accounts that use that service, those
/// account IDs appear in the response.
///
/// -
///
/// If the
eventScopeCode
value is NONE
, then the eventArn
/// that you specified in the request is invalid or doesn't exist.
///
///
///
public EventScopeCode EventScopeCode
{
get { return this._eventScopeCode; }
set { this._eventScopeCode = value; }
}
// Check to see if EventScopeCode property is set
internal bool IsSetEventScopeCode()
{
return this._eventScopeCode != null;
}
///
/// Gets and sets the property EventTypeCategory.
///
/// A list of event type category codes. Possible values are issue
, accountNotification
,
/// or scheduledChange
. Currently, the investigation
value isn't
/// supported at this time.
///
///
[AWSProperty(Min=3, Max=255)]
public EventTypeCategory EventTypeCategory
{
get { return this._eventTypeCategory; }
set { this._eventTypeCategory = value; }
}
// Check to see if EventTypeCategory property is set
internal bool IsSetEventTypeCategory()
{
return this._eventTypeCategory != null;
}
///
/// Gets and sets the property EventTypeCode.
///
/// The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION
.
/// For example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
///
///
[AWSProperty(Min=3, Max=100)]
public string EventTypeCode
{
get { return this._eventTypeCode; }
set { this._eventTypeCode = value; }
}
// Check to see if EventTypeCode property is set
internal bool IsSetEventTypeCode()
{
return this._eventTypeCode != null;
}
///
/// Gets and sets the property LastUpdatedTime.
///
/// The most recent date and time that the event 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 Region.
///
/// The Amazon Web Services Region name of the event.
///
///
[AWSProperty(Min=2, Max=25)]
public string Region
{
get { return this._region; }
set { this._region = value; }
}
// Check to see if Region property is set
internal bool IsSetRegion()
{
return this._region != null;
}
///
/// Gets and sets the property Service.
///
/// The Amazon Web Service that is affected by the event, such as EC2 and RDS.
///
///
[AWSProperty(Min=2, Max=30)]
public string Service
{
get { return this._service; }
set { this._service = value; }
}
// Check to see if Service property is set
internal bool IsSetService()
{
return this._service != null;
}
///
/// Gets and sets the property StartTime.
///
/// The date and time that the event began.
///
///
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
///
/// Gets and sets the property StatusCode.
///
/// The most recent status of the event. Possible values are open
, closed
,
/// and upcoming
.
///
///
public EventStatusCode StatusCode
{
get { return this._statusCode; }
set { this._statusCode = value; }
}
// Check to see if StatusCode property is set
internal bool IsSetStatusCode()
{
return this._statusCode != null;
}
}
}