/*
* 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
{
///
/// An object that represents the authorizations granted to aggregator accounts and regions.
///
public partial class AggregationAuthorization
{
private string _aggregationAuthorizationArn;
private string _authorizedAccountId;
private string _authorizedAwsRegion;
private DateTime? _creationTime;
///
/// Gets and sets the property AggregationAuthorizationArn.
///
/// The Amazon Resource Name (ARN) of the aggregation object.
///
///
public string AggregationAuthorizationArn
{
get { return this._aggregationAuthorizationArn; }
set { this._aggregationAuthorizationArn = value; }
}
// Check to see if AggregationAuthorizationArn property is set
internal bool IsSetAggregationAuthorizationArn()
{
return this._aggregationAuthorizationArn != null;
}
///
/// Gets and sets the property AuthorizedAccountId.
///
/// The 12-digit account ID of the account authorized to aggregate data.
///
///
public string AuthorizedAccountId
{
get { return this._authorizedAccountId; }
set { this._authorizedAccountId = value; }
}
// Check to see if AuthorizedAccountId property is set
internal bool IsSetAuthorizedAccountId()
{
return this._authorizedAccountId != null;
}
///
/// Gets and sets the property AuthorizedAwsRegion.
///
/// The region authorized to collect aggregated data.
///
///
[AWSProperty(Min=1, Max=64)]
public string AuthorizedAwsRegion
{
get { return this._authorizedAwsRegion; }
set { this._authorizedAwsRegion = value; }
}
// Check to see if AuthorizedAwsRegion property is set
internal bool IsSetAuthorizedAwsRegion()
{
return this._authorizedAwsRegion != null;
}
///
/// Gets and sets the property CreationTime.
///
/// The time stamp when the aggregation authorization 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;
}
}
}