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

#pragma once
#include <aws/shield/Shield_EXPORTS.h>
#include <aws/shield/model/ProtectionGroupLimits.h>
#include <aws/shield/model/ProtectionLimits.h>

#include <utility>

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

/**
 * <p>Limits settings for your subscription. </p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/SubscriptionLimits">AWS
 * API Reference</a></p>
 */
class SubscriptionLimits {
 public:
  AWS_SHIELD_API SubscriptionLimits() = default;
  AWS_SHIELD_API SubscriptionLimits(Aws::Utils::Json::JsonView jsonValue);
  AWS_SHIELD_API SubscriptionLimits& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>Limits settings on protections for your subscription. </p>
   */
  inline const ProtectionLimits& GetProtectionLimits() const { return m_protectionLimits; }
  inline bool ProtectionLimitsHasBeenSet() const { return m_protectionLimitsHasBeenSet; }
  template <typename ProtectionLimitsT = ProtectionLimits>
  void SetProtectionLimits(ProtectionLimitsT&& value) {
    m_protectionLimitsHasBeenSet = true;
    m_protectionLimits = std::forward<ProtectionLimitsT>(value);
  }
  template <typename ProtectionLimitsT = ProtectionLimits>
  SubscriptionLimits& WithProtectionLimits(ProtectionLimitsT&& value) {
    SetProtectionLimits(std::forward<ProtectionLimitsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Limits settings on protection groups for your subscription. </p>
   */
  inline const ProtectionGroupLimits& GetProtectionGroupLimits() const { return m_protectionGroupLimits; }
  inline bool ProtectionGroupLimitsHasBeenSet() const { return m_protectionGroupLimitsHasBeenSet; }
  template <typename ProtectionGroupLimitsT = ProtectionGroupLimits>
  void SetProtectionGroupLimits(ProtectionGroupLimitsT&& value) {
    m_protectionGroupLimitsHasBeenSet = true;
    m_protectionGroupLimits = std::forward<ProtectionGroupLimitsT>(value);
  }
  template <typename ProtectionGroupLimitsT = ProtectionGroupLimits>
  SubscriptionLimits& WithProtectionGroupLimits(ProtectionGroupLimitsT&& value) {
    SetProtectionGroupLimits(std::forward<ProtectionGroupLimitsT>(value));
    return *this;
  }
  ///@}
 private:
  ProtectionLimits m_protectionLimits;

  ProtectionGroupLimits m_protectionGroupLimits;
  bool m_protectionLimitsHasBeenSet = false;
  bool m_protectionGroupLimitsHasBeenSet = false;
};

}  // namespace Model
}  // namespace Shield
}  // namespace Aws
