/*
* 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
///
/// The event information.
///
public partial class ConfigurationEvent
{
private string _accountId;
private string _eventDetail;
private string _eventResourceName;
private ConfigurationEventResourceType _eventResourceType;
private ConfigurationEventStatus _eventStatus;
private DateTime? _eventTime;
private string _monitoredResourceARN;
private string _resourceGroupName;
///
/// Gets and sets the property AccountId.
///
/// The AWS account ID for the owner of the application to which the configuration event
/// belongs.
///
///
[AWSProperty(Min=12, Max=12)]
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property EventDetail.
///
/// The details of the event in plain text.
///
///
public string EventDetail
{
get { return this._eventDetail; }
set { this._eventDetail = value; }
}
// Check to see if EventDetail property is set
internal bool IsSetEventDetail()
{
return this._eventDetail != null;
}
///
/// Gets and sets the property EventResourceName.
///
/// The name of the resource Application Insights attempted to configure.
///
///
public string EventResourceName
{
get { return this._eventResourceName; }
set { this._eventResourceName = value; }
}
// Check to see if EventResourceName property is set
internal bool IsSetEventResourceName()
{
return this._eventResourceName != null;
}
///
/// Gets and sets the property EventResourceType.
///
/// The resource type that Application Insights attempted to configure, for example,
/// CLOUDWATCH_ALARM.
///
///
public ConfigurationEventResourceType EventResourceType
{
get { return this._eventResourceType; }
set { this._eventResourceType = value; }
}
// Check to see if EventResourceType property is set
internal bool IsSetEventResourceType()
{
return this._eventResourceType != null;
}
///
/// Gets and sets the property EventStatus.
///
/// The status of the configuration update event. Possible values include INFO, WARN,
/// and ERROR.
///
///
public ConfigurationEventStatus EventStatus
{
get { return this._eventStatus; }
set { this._eventStatus = value; }
}
// Check to see if EventStatus property is set
internal bool IsSetEventStatus()
{
return this._eventStatus != null;
}
///
/// Gets and sets the property EventTime.
///
/// The timestamp of the event.
///
///
public DateTime EventTime
{
get { return this._eventTime.GetValueOrDefault(); }
set { this._eventTime = value; }
}
// Check to see if EventTime property is set
internal bool IsSetEventTime()
{
return this._eventTime.HasValue;
}
///
/// Gets and sets the property MonitoredResourceARN.
///
/// The resource monitored by Application Insights.
///
///
public string MonitoredResourceARN
{
get { return this._monitoredResourceARN; }
set { this._monitoredResourceARN = value; }
}
// Check to see if MonitoredResourceARN property is set
internal bool IsSetMonitoredResourceARN()
{
return this._monitoredResourceARN != null;
}
///
/// Gets and sets the property ResourceGroupName.
///
/// The name of the resource group of the application to which the configuration event
/// belongs.
///
///
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
}