AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OpsItemLimitExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SSM {
21namespace Model {
22
30 public:
31 AWS_SSM_API OpsItemLimitExceededException() = default;
35
37
38 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
39 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
40 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
41 void SetResourceTypes(ResourceTypesT&& value) {
42 m_resourceTypesHasBeenSet = true;
43 m_resourceTypes = std::forward<ResourceTypesT>(value);
44 }
45 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
47 SetResourceTypes(std::forward<ResourceTypesT>(value));
48 return *this;
49 }
50 template <typename ResourceTypesT = Aws::String>
52 m_resourceTypesHasBeenSet = true;
53 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
54 return *this;
55 }
57
59
60 inline int GetLimit() const { return m_limit; }
61 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
62 inline void SetLimit(int value) {
63 m_limitHasBeenSet = true;
64 m_limit = value;
65 }
67 SetLimit(value);
68 return *this;
69 }
71
73
74 inline const Aws::String& GetLimitType() const { return m_limitType; }
75 inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; }
76 template <typename LimitTypeT = Aws::String>
77 void SetLimitType(LimitTypeT&& value) {
78 m_limitTypeHasBeenSet = true;
79 m_limitType = std::forward<LimitTypeT>(value);
80 }
81 template <typename LimitTypeT = Aws::String>
83 SetLimitType(std::forward<LimitTypeT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetMessage() const { return m_message; }
91 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
92 template <typename MessageT = Aws::String>
93 void SetMessage(MessageT&& value) {
94 m_messageHasBeenSet = true;
95 m_message = std::forward<MessageT>(value);
96 }
97 template <typename MessageT = Aws::String>
99 SetMessage(std::forward<MessageT>(value));
100 return *this;
101 }
103 private:
104 Aws::Vector<Aws::String> m_resourceTypes;
105
106 int m_limit{0};
107
108 Aws::String m_limitType;
109
110 Aws::String m_message;
111 bool m_resourceTypesHasBeenSet = false;
112 bool m_limitHasBeenSet = false;
113 bool m_limitTypeHasBeenSet = false;
114 bool m_messageHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace SSM
119} // namespace Aws
OpsItemLimitExceededException & AddResourceTypes(ResourceTypesT &&value)
OpsItemLimitExceededException & WithLimitType(LimitTypeT &&value)
AWS_SSM_API OpsItemLimitExceededException(Aws::Utils::Json::JsonView jsonValue)
OpsItemLimitExceededException & WithResourceTypes(ResourceTypesT &&value)
OpsItemLimitExceededException & WithMessage(MessageT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
OpsItemLimitExceededException & WithLimit(int value)
const Aws::Vector< Aws::String > & GetResourceTypes() const
AWS_SSM_API OpsItemLimitExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue