/**
 * 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/core/utils/memory/stl/AWSVector.h>
#include <aws/securityhub/SecurityHub_EXPORTS.h>

#include <utility>

namespace Aws {
template <typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils {
namespace Json {
class JsonValue;
}  // namespace Json
}  // namespace Utils
namespace SecurityHub {
namespace Model {
class CreateFindingAggregatorResult {
 public:
  AWS_SECURITYHUB_API CreateFindingAggregatorResult() = default;
  AWS_SECURITYHUB_API CreateFindingAggregatorResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
  AWS_SECURITYHUB_API CreateFindingAggregatorResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

  ///@{
  /**
   * <p>The ARN of the finding aggregator. You use the finding aggregator ARN to
   * retrieve details for, update, and stop cross-Region aggregation.</p>
   */
  inline const Aws::String& GetFindingAggregatorArn() const { return m_findingAggregatorArn; }
  template <typename FindingAggregatorArnT = Aws::String>
  void SetFindingAggregatorArn(FindingAggregatorArnT&& value) {
    m_findingAggregatorArnHasBeenSet = true;
    m_findingAggregatorArn = std::forward<FindingAggregatorArnT>(value);
  }
  template <typename FindingAggregatorArnT = Aws::String>
  CreateFindingAggregatorResult& WithFindingAggregatorArn(FindingAggregatorArnT&& value) {
    SetFindingAggregatorArn(std::forward<FindingAggregatorArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The home Region. Findings generated in linked Regions are replicated and sent
   * to the home Region.</p>
   */
  inline const Aws::String& GetFindingAggregationRegion() const { return m_findingAggregationRegion; }
  template <typename FindingAggregationRegionT = Aws::String>
  void SetFindingAggregationRegion(FindingAggregationRegionT&& value) {
    m_findingAggregationRegionHasBeenSet = true;
    m_findingAggregationRegion = std::forward<FindingAggregationRegionT>(value);
  }
  template <typename FindingAggregationRegionT = Aws::String>
  CreateFindingAggregatorResult& WithFindingAggregationRegion(FindingAggregationRegionT&& value) {
    SetFindingAggregationRegion(std::forward<FindingAggregationRegionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Indicates whether to link all Regions, all Regions except for a list of
   * excluded Regions, or a list of included Regions.</p>
   */
  inline const Aws::String& GetRegionLinkingMode() const { return m_regionLinkingMode; }
  template <typename RegionLinkingModeT = Aws::String>
  void SetRegionLinkingMode(RegionLinkingModeT&& value) {
    m_regionLinkingModeHasBeenSet = true;
    m_regionLinkingMode = std::forward<RegionLinkingModeT>(value);
  }
  template <typename RegionLinkingModeT = Aws::String>
  CreateFindingAggregatorResult& WithRegionLinkingMode(RegionLinkingModeT&& value) {
    SetRegionLinkingMode(std::forward<RegionLinkingModeT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The list of excluded Regions or included Regions.</p>
   */
  inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
  template <typename RegionsT = Aws::Vector<Aws::String>>
  void SetRegions(RegionsT&& value) {
    m_regionsHasBeenSet = true;
    m_regions = std::forward<RegionsT>(value);
  }
  template <typename RegionsT = Aws::Vector<Aws::String>>
  CreateFindingAggregatorResult& WithRegions(RegionsT&& value) {
    SetRegions(std::forward<RegionsT>(value));
    return *this;
  }
  template <typename RegionsT = Aws::String>
  CreateFindingAggregatorResult& AddRegions(RegionsT&& value) {
    m_regionsHasBeenSet = true;
    m_regions.emplace_back(std::forward<RegionsT>(value));
    return *this;
  }
  ///@}

  ///@{

  inline const Aws::String& GetRequestId() const { return m_requestId; }
  template <typename RequestIdT = Aws::String>
  void SetRequestId(RequestIdT&& value) {
    m_requestIdHasBeenSet = true;
    m_requestId = std::forward<RequestIdT>(value);
  }
  template <typename RequestIdT = Aws::String>
  CreateFindingAggregatorResult& WithRequestId(RequestIdT&& value) {
    SetRequestId(std::forward<RequestIdT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_findingAggregatorArn;

  Aws::String m_findingAggregationRegion;

  Aws::String m_regionLinkingMode;

  Aws::Vector<Aws::String> m_regions;

  Aws::String m_requestId;
  bool m_findingAggregatorArnHasBeenSet = false;
  bool m_findingAggregationRegionHasBeenSet = false;
  bool m_regionLinkingModeHasBeenSet = false;
  bool m_regionsHasBeenSet = false;
  bool m_requestIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace SecurityHub
}  // namespace Aws
