/*
* 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 mediatailor-2018-04-23.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.MediaTailor.Model
{
///
/// Alert configuration parameters.
///
public partial class Alert
{
private string _alertCode;
private string _alertMessage;
private AlertCategory _category;
private DateTime? _lastModifiedTime;
private List _relatedResourceArns = new List();
private string _resourceArn;
///
/// Gets and sets the property AlertCode.
///
/// The code for the alert. For example, NOT_PROCESSED
.
///
///
[AWSProperty(Required=true)]
public string AlertCode
{
get { return this._alertCode; }
set { this._alertCode = value; }
}
// Check to see if AlertCode property is set
internal bool IsSetAlertCode()
{
return this._alertCode != null;
}
///
/// Gets and sets the property AlertMessage.
///
/// If an alert is generated for a resource, an explanation of the reason for the alert.
///
///
[AWSProperty(Required=true)]
public string AlertMessage
{
get { return this._alertMessage; }
set { this._alertMessage = value; }
}
// Check to see if AlertMessage property is set
internal bool IsSetAlertMessage()
{
return this._alertMessage != null;
}
///
/// Gets and sets the property Category.
///
/// The category that MediaTailor assigns to the alert.
///
///
public AlertCategory Category
{
get { return this._category; }
set { this._category = value; }
}
// Check to see if Category property is set
internal bool IsSetCategory()
{
return this._category != null;
}
///
/// Gets and sets the property LastModifiedTime.
///
/// The timestamp when the alert was last modified.
///
///
[AWSProperty(Required=true)]
public DateTime LastModifiedTime
{
get { return this._lastModifiedTime.GetValueOrDefault(); }
set { this._lastModifiedTime = value; }
}
// Check to see if LastModifiedTime property is set
internal bool IsSetLastModifiedTime()
{
return this._lastModifiedTime.HasValue;
}
///
/// Gets and sets the property RelatedResourceArns.
///
/// The Amazon Resource Names (ARNs) related to this alert.
///
///
[AWSProperty(Required=true)]
public List RelatedResourceArns
{
get { return this._relatedResourceArns; }
set { this._relatedResourceArns = value; }
}
// Check to see if RelatedResourceArns property is set
internal bool IsSetRelatedResourceArns()
{
return this._relatedResourceArns != null && this._relatedResourceArns.Count > 0;
}
///
/// Gets and sets the property ResourceArn.
///
/// The Amazon Resource Name (ARN) of the resource.
///
///
[AWSProperty(Required=true)]
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;
}
}
}