/*
* 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 physical resource. A physical resource is a resource that exists in your
/// account. It can be identified using an Amazon Resource Name (ARN) or an Resilience
/// Hub-native identifier.
///
public partial class PhysicalResource
{
private Dictionary> _additionalInfo = new Dictionary>();
private List _appComponents = new List();
private bool? _excluded;
private LogicalResourceId _logicalResourceId;
private string _parentResourceName;
private PhysicalResourceId _physicalResourceId;
private string _resourceName;
private string _resourceType;
private ResourceSourceType _sourceType;
///
/// Gets and sets the property AdditionalInfo.
///
/// Additional configuration parameters for an Resilience Hub application. If you want
/// to implement additionalInfo
through the Resilience Hub console rather
/// than using an API call, see Configure
/// the application configuration parameters.
///
///
///
/// Currently, this parameter accepts a key-value mapping (in a string format) of only
/// one failover region and one associated account.
///
///
///
/// Key: "failover-regions"
///
///
///
/// Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
///
///
///
///
public Dictionary> AdditionalInfo
{
get { return this._additionalInfo; }
set { this._additionalInfo = value; }
}
// Check to see if AdditionalInfo property is set
internal bool IsSetAdditionalInfo()
{
return this._additionalInfo != null && this._additionalInfo.Count > 0;
}
///
/// Gets and sets the property AppComponents.
///
/// The application components that belong to this resource.
///
///
public List AppComponents
{
get { return this._appComponents; }
set { this._appComponents = value; }
}
// Check to see if AppComponents property is set
internal bool IsSetAppComponents()
{
return this._appComponents != null && this._appComponents.Count > 0;
}
///
/// Gets and sets the property Excluded.
///
/// Indicates if a resource is included or excluded from the assessment.
///
///
public bool Excluded
{
get { return this._excluded.GetValueOrDefault(); }
set { this._excluded = value; }
}
// Check to see if Excluded property is set
internal bool IsSetExcluded()
{
return this._excluded.HasValue;
}
///
/// Gets and sets the property LogicalResourceId.
///
/// The logical identifier of the resource.
///
///
[AWSProperty(Required=true)]
public LogicalResourceId LogicalResourceId
{
get { return this._logicalResourceId; }
set { this._logicalResourceId = value; }
}
// Check to see if LogicalResourceId property is set
internal bool IsSetLogicalResourceId()
{
return this._logicalResourceId != null;
}
///
/// Gets and sets the property ParentResourceName.
///
/// The name of the parent resource.
///
///
public string ParentResourceName
{
get { return this._parentResourceName; }
set { this._parentResourceName = value; }
}
// Check to see if ParentResourceName property is set
internal bool IsSetParentResourceName()
{
return this._parentResourceName != null;
}
///
/// Gets and sets the property PhysicalResourceId.
///
/// The physical identifier of the resource.
///
///
[AWSProperty(Required=true)]
public PhysicalResourceId PhysicalResourceId
{
get { return this._physicalResourceId; }
set { this._physicalResourceId = value; }
}
// Check to see if PhysicalResourceId property is set
internal bool IsSetPhysicalResourceId()
{
return this._physicalResourceId != null;
}
///
/// Gets and sets the property ResourceName.
///
/// The name of the resource.
///
///
public string ResourceName
{
get { return this._resourceName; }
set { this._resourceName = value; }
}
// Check to see if ResourceName property is set
internal bool IsSetResourceName()
{
return this._resourceName != null;
}
///
/// Gets and sets the property ResourceType.
///
/// The type of resource.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
///
/// Gets and sets the property SourceType.
///
/// The type of input source.
///
///
public ResourceSourceType SourceType
{
get { return this._sourceType; }
set { this._sourceType = value; }
}
// Check to see if SourceType property is set
internal bool IsSetSourceType()
{
return this._sourceType != null;
}
}
}