AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline LimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline LimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline LimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
61 inline const LimitExceededErrorCode& GetErrorCode() const{ return m_errorCode; }
62 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
63 inline void SetErrorCode(const LimitExceededErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
64 inline void SetErrorCode(LimitExceededErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
65 inline LimitExceededException& WithErrorCode(const LimitExceededErrorCode& value) { SetErrorCode(value); return *this;}
66 inline LimitExceededException& WithErrorCode(LimitExceededErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
68
70
73 inline bool GetCanRetry() const{ return m_canRetry; }
74 inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; }
75 inline void SetCanRetry(bool value) { m_canRetryHasBeenSet = true; m_canRetry = value; }
76 inline LimitExceededException& WithCanRetry(bool value) { SetCanRetry(value); return *this;}
78 private:
79
80 Aws::String m_message;
81 bool m_messageHasBeenSet = false;
82
83 LimitExceededErrorCode m_errorCode;
84 bool m_errorCodeHasBeenSet = false;
85
86 bool m_canRetry;
87 bool m_canRetryHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Inspector
92} // namespace Aws
void SetErrorCode(LimitExceededErrorCode &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const LimitExceededErrorCode & GetErrorCode() const
AWS_INSPECTOR_API LimitExceededException(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(const LimitExceededErrorCode &value)
AWS_INSPECTOR_API LimitExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
LimitExceededException & WithErrorCode(const LimitExceededErrorCode &value)
LimitExceededException & WithMessage(const Aws::String &value)
LimitExceededException & WithMessage(Aws::String &&value)
LimitExceededException & WithCanRetry(bool value)
LimitExceededException & WithErrorCode(LimitExceededErrorCode &&value)
LimitExceededException & WithMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue