AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LimitsExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/shield/Shield_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Shield {
20namespace Model {
21
29 public:
30 AWS_SHIELD_API LimitsExceededException() = default;
33 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetMessage() const { return m_message; }
38 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
39 template <typename MessageT = Aws::String>
40 void SetMessage(MessageT&& value) {
41 m_messageHasBeenSet = true;
42 m_message = std::forward<MessageT>(value);
43 }
44 template <typename MessageT = Aws::String>
46 SetMessage(std::forward<MessageT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetType() const { return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 template <typename TypeT = Aws::String>
58 void SetType(TypeT&& value) {
59 m_typeHasBeenSet = true;
60 m_type = std::forward<TypeT>(value);
61 }
62 template <typename TypeT = Aws::String>
64 SetType(std::forward<TypeT>(value));
65 return *this;
66 }
68
70
73 inline long long GetLimit() const { return m_limit; }
74 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
75 inline void SetLimit(long long value) {
76 m_limitHasBeenSet = true;
77 m_limit = value;
78 }
79 inline LimitsExceededException& WithLimit(long long value) {
80 SetLimit(value);
81 return *this;
82 }
84 private:
85 Aws::String m_message;
86
87 Aws::String m_type;
88
89 long long m_limit{0};
90 bool m_messageHasBeenSet = false;
91 bool m_typeHasBeenSet = false;
92 bool m_limitHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace Shield
97} // namespace Aws
LimitsExceededException & WithLimit(long long value)
AWS_SHIELD_API LimitsExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
LimitsExceededException & WithType(TypeT &&value)
AWS_SHIELD_API LimitsExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
LimitsExceededException & WithMessage(MessageT &&value)
AWS_SHIELD_API LimitsExceededException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue