/*
* 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 forecast-2018-06-26.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.ForecastService.Model
{
///
/// Provides a summary of the monitor properties used in the ListMonitors operation.
/// To get a complete set of properties, call the DescribeMonitor operation, and
/// provide the listed MonitorArn
.
///
public partial class MonitorSummary
{
private DateTime? _creationTime;
private DateTime? _lastModificationTime;
private string _monitorArn;
private string _monitorName;
private string _resourceArn;
private string _status;
///
/// Gets and sets the property CreationTime.
///
/// When the monitor resource was created.
///
///
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property LastModificationTime.
///
/// The last time the monitor resource was modified. The timestamp depends on the status
/// of the job:
///
/// -
///
///
CREATE_PENDING
- The CreationTime
.
///
/// -
///
///
CREATE_IN_PROGRESS
- The current timestamp.
///
/// -
///
///
STOPPED
- When the resource stopped.
///
/// -
///
///
ACTIVE
or CREATE_FAILED
- When the monitor creation finished
/// or failed.
///
///
///
public DateTime LastModificationTime
{
get { return this._lastModificationTime.GetValueOrDefault(); }
set { this._lastModificationTime = value; }
}
// Check to see if LastModificationTime property is set
internal bool IsSetLastModificationTime()
{
return this._lastModificationTime.HasValue;
}
///
/// Gets and sets the property MonitorArn.
///
/// The Amazon Resource Name (ARN) of the monitor resource.
///
///
[AWSProperty(Max=256)]
public string MonitorArn
{
get { return this._monitorArn; }
set { this._monitorArn = value; }
}
// Check to see if MonitorArn property is set
internal bool IsSetMonitorArn()
{
return this._monitorArn != null;
}
///
/// Gets and sets the property MonitorName.
///
/// The name of the monitor resource.
///
///
[AWSProperty(Min=1, Max=63)]
public string MonitorName
{
get { return this._monitorName; }
set { this._monitorName = value; }
}
// Check to see if MonitorName property is set
internal bool IsSetMonitorName()
{
return this._monitorName != null;
}
///
/// Gets and sets the property ResourceArn.
///
/// The Amazon Resource Name (ARN) of the predictor being monitored.
///
///
[AWSProperty(Max=256)]
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 Status.
///
/// The status of the monitor. States include:
///
/// -
///
///
ACTIVE
///
/// -
///
///
ACTIVE_STOPPING
, ACTIVE_STOPPED
///
/// -
///
///
UPDATE_IN_PROGRESS
///
/// -
///
///
CREATE_PENDING
, CREATE_IN_PROGRESS
, CREATE_FAILED
///
///
/// -
///
///
DELETE_PENDING
, DELETE_IN_PROGRESS
, DELETE_FAILED
///
///
///
///
[AWSProperty(Max=256)]
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}