AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LimitExceededException.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/model/LimitExceededErrorCode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_INSPECTOR_API LimitExceededException() = default;
40 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMessage() const { return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 template<typename MessageT = Aws::String>
50 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
51 template<typename MessageT = Aws::String>
52 LimitExceededException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
54
56
59 inline LimitExceededErrorCode GetErrorCode() const { return m_errorCode; }
60 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
61 inline void SetErrorCode(LimitExceededErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
64
66
69 inline bool GetCanRetry() const { return m_canRetry; }
70 inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; }
71 inline void SetCanRetry(bool value) { m_canRetryHasBeenSet = true; m_canRetry = value; }
72 inline LimitExceededException& WithCanRetry(bool value) { SetCanRetry(value); return *this;}
74 private:
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78
80 bool m_errorCodeHasBeenSet = false;
81
82 bool m_canRetry{false};
83 bool m_canRetryHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Inspector
88} // namespace Aws
LimitExceededException & WithErrorCode(LimitExceededErrorCode value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR_API LimitExceededException()=default
AWS_INSPECTOR_API LimitExceededException(Aws::Utils::Json::JsonView jsonValue)
LimitExceededException & WithMessage(MessageT &&value)
AWS_INSPECTOR_API LimitExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
LimitExceededException & WithCanRetry(bool value)
void SetErrorCode(LimitExceededErrorCode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue