/*
* 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 migrationhub-config-2019-06-30.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.MigrationHubConfig.Model
{
///
/// A home region control is an object that specifies the home region for an account,
/// with some additional information. It contains a target (always of type ACCOUNT
),
/// an ID, and a time at which the home region was set.
///
public partial class HomeRegionControl
{
private string _controlId;
private string _homeRegion;
private DateTime? _requestedTime;
private Target _target;
///
/// Gets and sets the property ControlId.
///
/// A unique identifier that's generated for each home region control. It's always a string
/// that begins with "hrc-" followed by 12 lowercase letters and numbers.
///
///
[AWSProperty(Min=1, Max=50)]
public string ControlId
{
get { return this._controlId; }
set { this._controlId = value; }
}
// Check to see if ControlId property is set
internal bool IsSetControlId()
{
return this._controlId != null;
}
///
/// Gets and sets the property HomeRegion.
///
/// The AWS Region that's been set as home region. For example, "us-west-2" or "eu-central-1"
/// are valid home regions.
///
///
[AWSProperty(Min=1, Max=50)]
public string HomeRegion
{
get { return this._homeRegion; }
set { this._homeRegion = value; }
}
// Check to see if HomeRegion property is set
internal bool IsSetHomeRegion()
{
return this._homeRegion != null;
}
///
/// Gets and sets the property RequestedTime.
///
/// A timestamp representing the time when the customer called CreateHomeregionControl
/// and set the home region for the account.
///
///
public DateTime RequestedTime
{
get { return this._requestedTime.GetValueOrDefault(); }
set { this._requestedTime = value; }
}
// Check to see if RequestedTime property is set
internal bool IsSetRequestedTime()
{
return this._requestedTime.HasValue;
}
///
/// Gets and sets the property Target.
///
/// The target parameter specifies the identifier to which the home region is applied,
/// which is always an ACCOUNT
. It applies the home region to the current
/// ACCOUNT
.
///
///
public Target Target
{
get { return this._target; }
set { this._target = value; }
}
// Check to see if Target property is set
internal bool IsSetTarget()
{
return this._target != null;
}
}
}