/*
* 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 config-2014-11-12.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.ConfigService.Model
{
///
/// The current sync status between the source and the aggregator account.
///
public partial class AggregatedSourceStatus
{
private string _awsRegion;
private string _lastErrorCode;
private string _lastErrorMessage;
private AggregatedSourceStatusType _lastUpdateStatus;
private DateTime? _lastUpdateTime;
private string _sourceId;
private AggregatedSourceType _sourceType;
///
/// Gets and sets the property AwsRegion.
///
/// The region authorized to collect aggregated data.
///
///
[AWSProperty(Min=1, Max=64)]
public string AwsRegion
{
get { return this._awsRegion; }
set { this._awsRegion = value; }
}
// Check to see if AwsRegion property is set
internal bool IsSetAwsRegion()
{
return this._awsRegion != null;
}
///
/// Gets and sets the property LastErrorCode.
///
/// The error code that Config returned when the source account aggregation last failed.
///
///
public string LastErrorCode
{
get { return this._lastErrorCode; }
set { this._lastErrorCode = value; }
}
// Check to see if LastErrorCode property is set
internal bool IsSetLastErrorCode()
{
return this._lastErrorCode != null;
}
///
/// Gets and sets the property LastErrorMessage.
///
/// The message indicating that the source account aggregation failed due to an error.
///
///
public string LastErrorMessage
{
get { return this._lastErrorMessage; }
set { this._lastErrorMessage = value; }
}
// Check to see if LastErrorMessage property is set
internal bool IsSetLastErrorMessage()
{
return this._lastErrorMessage != null;
}
///
/// Gets and sets the property LastUpdateStatus.
///
/// Filters the last updated status type.
///
/// -
///
/// Valid value FAILED indicates errors while moving data.
///
///
-
///
/// Valid value SUCCEEDED indicates the data was successfully moved.
///
///
-
///
/// Valid value OUTDATED indicates the data is not the most recent.
///
///
///
public AggregatedSourceStatusType LastUpdateStatus
{
get { return this._lastUpdateStatus; }
set { this._lastUpdateStatus = value; }
}
// Check to see if LastUpdateStatus property is set
internal bool IsSetLastUpdateStatus()
{
return this._lastUpdateStatus != null;
}
///
/// Gets and sets the property LastUpdateTime.
///
/// The time of the last update.
///
///
public DateTime LastUpdateTime
{
get { return this._lastUpdateTime.GetValueOrDefault(); }
set { this._lastUpdateTime = value; }
}
// Check to see if LastUpdateTime property is set
internal bool IsSetLastUpdateTime()
{
return this._lastUpdateTime.HasValue;
}
///
/// Gets and sets the property SourceId.
///
/// The source account ID or an organization.
///
///
public string SourceId
{
get { return this._sourceId; }
set { this._sourceId = value; }
}
// Check to see if SourceId property is set
internal bool IsSetSourceId()
{
return this._sourceId != null;
}
///
/// Gets and sets the property SourceType.
///
/// The source account or an organization.
///
///
public AggregatedSourceType SourceType
{
get { return this._sourceType; }
set { this._sourceType = value; }
}
// Check to see if SourceType property is set
internal bool IsSetSourceType()
{
return this._sourceType != null;
}
}
}