AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OpsItemLimitExceededException.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 SSM
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSM_API OpsItemLimitExceededException() = default;
40
41
43
44 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
45 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
46 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
47 void SetResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::forward<ResourceTypesT>(value); }
48 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
49 OpsItemLimitExceededException& WithResourceTypes(ResourceTypesT&& value) { SetResourceTypes(std::forward<ResourceTypesT>(value)); return *this;}
50 template<typename ResourceTypesT = Aws::String>
51 OpsItemLimitExceededException& AddResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value)); return *this; }
53
55
56 inline int GetLimit() const { return m_limit; }
57 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
58 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
59 inline OpsItemLimitExceededException& WithLimit(int value) { SetLimit(value); return *this;}
61
63
64 inline const Aws::String& GetLimitType() const { return m_limitType; }
65 inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; }
66 template<typename LimitTypeT = Aws::String>
67 void SetLimitType(LimitTypeT&& value) { m_limitTypeHasBeenSet = true; m_limitType = std::forward<LimitTypeT>(value); }
68 template<typename LimitTypeT = Aws::String>
69 OpsItemLimitExceededException& WithLimitType(LimitTypeT&& value) { SetLimitType(std::forward<LimitTypeT>(value)); return *this;}
71
73
74 inline const Aws::String& GetMessage() const { return m_message; }
75 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
76 template<typename MessageT = Aws::String>
77 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
78 template<typename MessageT = Aws::String>
79 OpsItemLimitExceededException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
81 private:
82
83 Aws::Vector<Aws::String> m_resourceTypes;
84 bool m_resourceTypesHasBeenSet = false;
85
86 int m_limit{0};
87 bool m_limitHasBeenSet = false;
88
89 Aws::String m_limitType;
90 bool m_limitTypeHasBeenSet = false;
91
92 Aws::String m_message;
93 bool m_messageHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SSM
98} // 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