/*
* 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 resiliencehub-2020-04-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.ResilienceHub.Model
{
///
/// Defines a resiliency policy.
///
public partial class ResiliencyPolicy
{
private DateTime? _creationTime;
private DataLocationConstraint _dataLocationConstraint;
private EstimatedCostTier _estimatedCostTier;
private Dictionary _policy = new Dictionary();
private string _policyArn;
private string _policyDescription;
private string _policyName;
private Dictionary _tags = new Dictionary();
private ResiliencyPolicyTier _tier;
///
/// Gets and sets the property CreationTime.
///
/// The timestamp for when the resiliency policy 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 DataLocationConstraint.
///
/// Specifies a high-level geographical location constraint for where your resilience
/// policy data can be stored.
///
///
public DataLocationConstraint DataLocationConstraint
{
get { return this._dataLocationConstraint; }
set { this._dataLocationConstraint = value; }
}
// Check to see if DataLocationConstraint property is set
internal bool IsSetDataLocationConstraint()
{
return this._dataLocationConstraint != null;
}
///
/// Gets and sets the property EstimatedCostTier.
///
/// Specifies the estimated cost tier of the resiliency policy.
///
///
public EstimatedCostTier EstimatedCostTier
{
get { return this._estimatedCostTier; }
set { this._estimatedCostTier = value; }
}
// Check to see if EstimatedCostTier property is set
internal bool IsSetEstimatedCostTier()
{
return this._estimatedCostTier != null;
}
///
/// Gets and sets the property Policy.
///
/// The resiliency policy.
///
///
public Dictionary Policy
{
get { return this._policy; }
set { this._policy = value; }
}
// Check to see if Policy property is set
internal bool IsSetPolicy()
{
return this._policy != null && this._policy.Count > 0;
}
///
/// Gets and sets the property PolicyArn.
///
/// The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is:
/// arn:partition
:resiliencehub:region
:account
:resiliency-policy/policy-id
.
/// For more information about ARNs, see
/// Amazon Resource Names (ARNs) in the AWS General Reference guide.
///
///
public string PolicyArn
{
get { return this._policyArn; }
set { this._policyArn = value; }
}
// Check to see if PolicyArn property is set
internal bool IsSetPolicyArn()
{
return this._policyArn != null;
}
///
/// Gets and sets the property PolicyDescription.
///
/// The description for the policy.
///
///
[AWSProperty(Min=0, Max=500)]
public string PolicyDescription
{
get { return this._policyDescription; }
set { this._policyDescription = value; }
}
// Check to see if PolicyDescription property is set
internal bool IsSetPolicyDescription()
{
return this._policyDescription != null;
}
///
/// Gets and sets the property PolicyName.
///
/// The name of the policy
///
///
public string PolicyName
{
get { return this._policyName; }
set { this._policyName = value; }
}
// Check to see if PolicyName property is set
internal bool IsSetPolicyName()
{
return this._policyName != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags assigned to the resource. A tag is a label that you assign to an Amazon Web
/// Services resource. Each tag consists of a key/value pair.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=50)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property Tier.
///
/// The tier for this resiliency policy, ranging from the highest severity (MissionCritical
)
/// to lowest (NonCritical
).
///
///
public ResiliencyPolicyTier Tier
{
get { return this._tier; }
set { this._tier = value; }
}
// Check to see if Tier property is set
internal bool IsSetTier()
{
return this._tier != null;
}
}
}