AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResourcePolicyLimitExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SSM {
20namespace Model {
21
31 public:
32 AWS_SSM_API ResourcePolicyLimitExceededException() = default;
36
38
39 inline int GetLimit() const { return m_limit; }
40 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
41 inline void SetLimit(int value) {
42 m_limitHasBeenSet = true;
43 m_limit = value;
44 }
46 SetLimit(value);
47 return *this;
48 }
50
52
53 inline const Aws::String& GetLimitType() const { return m_limitType; }
54 inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; }
55 template <typename LimitTypeT = Aws::String>
56 void SetLimitType(LimitTypeT&& value) {
57 m_limitTypeHasBeenSet = true;
58 m_limitType = std::forward<LimitTypeT>(value);
59 }
60 template <typename LimitTypeT = Aws::String>
62 SetLimitType(std::forward<LimitTypeT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetMessage() const { return m_message; }
70 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 template <typename MessageT = Aws::String>
72 void SetMessage(MessageT&& value) {
73 m_messageHasBeenSet = true;
74 m_message = std::forward<MessageT>(value);
75 }
76 template <typename MessageT = Aws::String>
78 SetMessage(std::forward<MessageT>(value));
79 return *this;
80 }
82 private:
83 int m_limit{0};
84
85 Aws::String m_limitType;
86
87 Aws::String m_message;
88 bool m_limitHasBeenSet = false;
89 bool m_limitTypeHasBeenSet = false;
90 bool m_messageHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace SSM
95} // namespace Aws
ResourcePolicyLimitExceededException & WithLimitType(LimitTypeT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API ResourcePolicyLimitExceededException(Aws::Utils::Json::JsonView jsonValue)
ResourcePolicyLimitExceededException & WithMessage(MessageT &&value)
ResourcePolicyLimitExceededException & WithLimit(int value)
AWS_SSM_API ResourcePolicyLimitExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue