/**
 * 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/dataexchange/DataExchange_EXPORTS.h>
#include <aws/dataexchange/model/LimitName.h>

#include <utility>

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

/**
 * <p>The request has exceeded the quotas imposed by the service.</p><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ServiceLimitExceededException">AWS
 * API Reference</a></p>
 */
class ServiceLimitExceededException {
 public:
  AWS_DATAEXCHANGE_API ServiceLimitExceededException() = default;
  AWS_DATAEXCHANGE_API ServiceLimitExceededException(Aws::Utils::Json::JsonView jsonValue);
  AWS_DATAEXCHANGE_API ServiceLimitExceededException& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The name of the limit that was reached.</p>
   */
  inline LimitName GetLimitName() const { return m_limitName; }
  inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
  inline void SetLimitName(LimitName value) {
    m_limitNameHasBeenSet = true;
    m_limitName = value;
  }
  inline ServiceLimitExceededException& WithLimitName(LimitName value) {
    SetLimitName(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The value of the exceeded limit.</p>
   */
  inline double GetLimitValue() const { return m_limitValue; }
  inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; }
  inline void SetLimitValue(double value) {
    m_limitValueHasBeenSet = true;
    m_limitValue = value;
  }
  inline ServiceLimitExceededException& WithLimitValue(double value) {
    SetLimitValue(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The request has exceeded the quotas imposed by the service.</p>
   */
  inline const Aws::String& GetMessage() const { return m_message; }
  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
  template <typename MessageT = Aws::String>
  void SetMessage(MessageT&& value) {
    m_messageHasBeenSet = true;
    m_message = std::forward<MessageT>(value);
  }
  template <typename MessageT = Aws::String>
  ServiceLimitExceededException& WithMessage(MessageT&& value) {
    SetMessage(std::forward<MessageT>(value));
    return *this;
  }
  ///@}
 private:
  LimitName m_limitName{LimitName::NOT_SET};

  double m_limitValue{0.0};

  Aws::String m_message;
  bool m_limitNameHasBeenSet = false;
  bool m_limitValueHasBeenSet = false;
  bool m_messageHasBeenSet = false;
};

}  // namespace Model
}  // namespace DataExchange
}  // namespace Aws
