/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
#include <aws/resiliencehub/model/PhysicalIdentifierType.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace ResilienceHub {
namespace Model {

/**
 * <p>Defines a physical resource identifier.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/PhysicalResourceId">AWS
 * API Reference</a></p>
 */
class PhysicalResourceId {
 public:
  AWS_RESILIENCEHUB_API PhysicalResourceId() = default;
  AWS_RESILIENCEHUB_API PhysicalResourceId(Aws::Utils::Json::JsonView jsonValue);
  AWS_RESILIENCEHUB_API PhysicalResourceId& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The Amazon Web Services account that owns the physical resource.</p>
   */
  inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
  template <typename AwsAccountIdT = Aws::String>
  void SetAwsAccountId(AwsAccountIdT&& value) {
    m_awsAccountIdHasBeenSet = true;
    m_awsAccountId = std::forward<AwsAccountIdT>(value);
  }
  template <typename AwsAccountIdT = Aws::String>
  PhysicalResourceId& WithAwsAccountId(AwsAccountIdT&& value) {
    SetAwsAccountId(std::forward<AwsAccountIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The Amazon Web Services Region that the physical resource is located in.</p>
   */
  inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
  inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
  template <typename AwsRegionT = Aws::String>
  void SetAwsRegion(AwsRegionT&& value) {
    m_awsRegionHasBeenSet = true;
    m_awsRegion = std::forward<AwsRegionT>(value);
  }
  template <typename AwsRegionT = Aws::String>
  PhysicalResourceId& WithAwsRegion(AwsRegionT&& value) {
    SetAwsRegion(std::forward<AwsRegionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Identifier of the physical resource.</p>
   */
  inline const Aws::String& GetIdentifier() const { return m_identifier; }
  inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
  template <typename IdentifierT = Aws::String>
  void SetIdentifier(IdentifierT&& value) {
    m_identifierHasBeenSet = true;
    m_identifier = std::forward<IdentifierT>(value);
  }
  template <typename IdentifierT = Aws::String>
  PhysicalResourceId& WithIdentifier(IdentifierT&& value) {
    SetIdentifier(std::forward<IdentifierT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Specifies the type of physical resource identifier.</p> <dl> <dt>Arn</dt>
   * <dd> <p>The resource identifier is an Amazon Resource Name (ARN) and it can
   * identify the following list of resources:</p> <ul> <li> <p>
   * <code>AWS::ECS::Service</code> </p> </li> <li> <p>
   * <code>AWS::EFS::FileSystem</code> </p> </li> <li> <p>
   * <code>AWS::ElasticLoadBalancingV2::LoadBalancer</code> </p> </li> <li> <p>
   * <code>AWS::Lambda::Function</code> </p> </li> <li> <p>
   * <code>AWS::SNS::Topic</code> </p> </li> </ul> </dd> <dt>Native</dt> <dd> <p>The
   * resource identifier is an Resilience Hub-native identifier and it can identify
   * the following list of resources:</p> <ul> <li> <p>
   * <code>AWS::ApiGateway::RestApi</code> </p> </li> <li> <p>
   * <code>AWS::ApiGatewayV2::Api</code> </p> </li> <li> <p>
   * <code>AWS::AutoScaling::AutoScalingGroup</code> </p> </li> <li> <p>
   * <code>AWS::DocDB::DBCluster</code> </p> </li> <li> <p>
   * <code>AWS::DocDB::DBGlobalCluster</code> </p> </li> <li> <p>
   * <code>AWS::DocDB::DBInstance</code> </p> </li> <li> <p>
   * <code>AWS::DynamoDB::GlobalTable</code> </p> </li> <li> <p>
   * <code>AWS::DynamoDB::Table</code> </p> </li> <li> <p>
   * <code>AWS::EC2::EC2Fleet</code> </p> </li> <li> <p>
   * <code>AWS::EC2::Instance</code> </p> </li> <li> <p>
   * <code>AWS::EC2::NatGateway</code> </p> </li> <li> <p>
   * <code>AWS::EC2::Volume</code> </p> </li> <li> <p>
   * <code>AWS::ElasticLoadBalancing::LoadBalancer</code> </p> </li> <li> <p>
   * <code>AWS::RDS::DBCluster</code> </p> </li> <li> <p>
   * <code>AWS::RDS::DBInstance</code> </p> </li> <li> <p>
   * <code>AWS::RDS::GlobalCluster</code> </p> </li> <li> <p>
   * <code>AWS::Route53::RecordSet</code> </p> </li> <li> <p>
   * <code>AWS::S3::Bucket</code> </p> </li> <li> <p> <code>AWS::SQS::Queue</code>
   * </p> </li> </ul> </dd> </dl>
   */
  inline PhysicalIdentifierType GetType() const { return m_type; }
  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
  inline void SetType(PhysicalIdentifierType value) {
    m_typeHasBeenSet = true;
    m_type = value;
  }
  inline PhysicalResourceId& WithType(PhysicalIdentifierType value) {
    SetType(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_awsAccountId;

  Aws::String m_awsRegion;

  Aws::String m_identifier;

  PhysicalIdentifierType m_type{PhysicalIdentifierType::NOT_SET};
  bool m_awsAccountIdHasBeenSet = false;
  bool m_awsRegionHasBeenSet = false;
  bool m_identifierHasBeenSet = false;
  bool m_typeHasBeenSet = false;
};

}  // namespace Model
}  // namespace ResilienceHub
}  // namespace Aws
