AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
LimitExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector/Inspector_EXPORTS.h>
9#include <aws/inspector/model/LimitExceededErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector {
21namespace Model {
22
31 public:
32 AWS_INSPECTOR_API LimitExceededException() = default;
35 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
54
56
59 inline LimitExceededErrorCode GetErrorCode() const { return m_errorCode; }
60 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 m_errorCodeHasBeenSet = true;
63 m_errorCode = value;
64 }
66 SetErrorCode(value);
67 return *this;
68 }
70
72
75 inline bool GetCanRetry() const { return m_canRetry; }
76 inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; }
77 inline void SetCanRetry(bool value) {
78 m_canRetryHasBeenSet = true;
79 m_canRetry = value;
80 }
82 SetCanRetry(value);
83 return *this;
84 }
86 private:
87 Aws::String m_message;
88
90
91 bool m_canRetry{false};
92 bool m_messageHasBeenSet = false;
93 bool m_errorCodeHasBeenSet = false;
94 bool m_canRetryHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Inspector
99} // 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