text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #pragma once
  #include <aws/inspector/Inspector_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/inspector/model/LimitExceededErrorCode.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace Inspector
  {
  namespace Model
  {
  
    /**
     * <p>The request was rejected because it attempted to create resources beyond the
     * current AWS account limits. The error code describes the limit
     * exceeded.</p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/LimitExceededException">AWS
     * API Reference</a></p>
     */
    class AWS_INSPECTOR_API LimitExceededException
    {
    public:
      LimitExceededException();
      LimitExceededException(Aws::Utils::Json::JsonView jsonValue);
      LimitExceededException& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>Details of the exception error.</p>
       */
      inline const Aws::String& GetMessage() const{ return m_message; }
  
      /**
       * <p>Details of the exception error.</p>
       */
      inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
  
      /**
       * <p>Details of the exception error.</p>
       */
      inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
  
      /**
       * <p>Details of the exception error.</p>
       */
      inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
  
      /**
       * <p>Details of the exception error.</p>
       */
      inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
  
      /**
       * <p>Details of the exception error.</p>
       */
      inline LimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
  
      /**
       * <p>Details of the exception error.</p>
       */
      inline LimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
  
      /**
       * <p>Details of the exception error.</p>
       */
      inline LimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
  
  
      /**
       * <p>Code that indicates the type of error that is generated.</p>
       */
      inline const LimitExceededErrorCode& GetErrorCode() const{ return m_errorCode; }
  
      /**
       * <p>Code that indicates the type of error that is generated.</p>
       */
      inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
  
      /**
       * <p>Code that indicates the type of error that is generated.</p>
       */
      inline void SetErrorCode(const LimitExceededErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
  
      /**
       * <p>Code that indicates the type of error that is generated.</p>
       */
      inline void SetErrorCode(LimitExceededErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
  
      /**
       * <p>Code that indicates the type of error that is generated.</p>
       */
      inline LimitExceededException& WithErrorCode(const LimitExceededErrorCode& value) { SetErrorCode(value); return *this;}
  
      /**
       * <p>Code that indicates the type of error that is generated.</p>
       */
      inline LimitExceededException& WithErrorCode(LimitExceededErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
  
  
      /**
       * <p>You can immediately retry your request.</p>
       */
      inline bool GetCanRetry() const{ return m_canRetry; }
  
      /**
       * <p>You can immediately retry your request.</p>
       */
      inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; }
  
      /**
       * <p>You can immediately retry your request.</p>
       */
      inline void SetCanRetry(bool value) { m_canRetryHasBeenSet = true; m_canRetry = value; }
  
      /**
       * <p>You can immediately retry your request.</p>
       */
      inline LimitExceededException& WithCanRetry(bool value) { SetCanRetry(value); return *this;}
  
    private:
  
      Aws::String m_message;
      bool m_messageHasBeenSet;
  
      LimitExceededErrorCode m_errorCode;
      bool m_errorCodeHasBeenSet;
  
      bool m_canRetry;
      bool m_canRetryHasBeenSet;
    };
  
  } // namespace Model
  } // namespace Inspector
  } // namespace Aws
  