AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
40
41
43
44 inline const Aws::Vector<Aws::String>& GetResourceTypes() const{ return m_resourceTypes; }
45 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
46 inline void SetResourceTypes(const Aws::Vector<Aws::String>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
47 inline void SetResourceTypes(Aws::Vector<Aws::String>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); }
50 inline OpsItemLimitExceededException& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
51 inline OpsItemLimitExceededException& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; }
52 inline OpsItemLimitExceededException& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
54
56
57 inline int GetLimit() const{ return m_limit; }
58 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
59 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
60 inline OpsItemLimitExceededException& WithLimit(int value) { SetLimit(value); return *this;}
62
64
65 inline const Aws::String& GetLimitType() const{ return m_limitType; }
66 inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; }
67 inline void SetLimitType(const Aws::String& value) { m_limitTypeHasBeenSet = true; m_limitType = value; }
68 inline void SetLimitType(Aws::String&& value) { m_limitTypeHasBeenSet = true; m_limitType = std::move(value); }
69 inline void SetLimitType(const char* value) { m_limitTypeHasBeenSet = true; m_limitType.assign(value); }
70 inline OpsItemLimitExceededException& WithLimitType(const Aws::String& value) { SetLimitType(value); return *this;}
71 inline OpsItemLimitExceededException& WithLimitType(Aws::String&& value) { SetLimitType(std::move(value)); return *this;}
72 inline OpsItemLimitExceededException& WithLimitType(const char* value) { SetLimitType(value); return *this;}
74
76
77 inline const Aws::String& GetMessage() const{ return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
80 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
81 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
82 inline OpsItemLimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
83 inline OpsItemLimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
84 inline OpsItemLimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
86 private:
87
88 Aws::Vector<Aws::String> m_resourceTypes;
89 bool m_resourceTypesHasBeenSet = false;
90
91 int m_limit;
92 bool m_limitHasBeenSet = false;
93
94 Aws::String m_limitType;
95 bool m_limitTypeHasBeenSet = false;
96
97 Aws::String m_message;
98 bool m_messageHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace SSM
103} // namespace Aws
OpsItemLimitExceededException & WithMessage(const Aws::String &value)
OpsItemLimitExceededException & WithLimitType(Aws::String &&value)
OpsItemLimitExceededException & AddResourceTypes(const Aws::String &value)
OpsItemLimitExceededException & AddResourceTypes(Aws::String &&value)
void SetResourceTypes(Aws::Vector< Aws::String > &&value)
AWS_SSM_API OpsItemLimitExceededException(Aws::Utils::Json::JsonView jsonValue)
OpsItemLimitExceededException & AddResourceTypes(const char *value)
OpsItemLimitExceededException & WithResourceTypes(const Aws::Vector< Aws::String > &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
OpsItemLimitExceededException & WithLimit(int value)
const Aws::Vector< Aws::String > & GetResourceTypes() const
OpsItemLimitExceededException & WithLimitType(const char *value)
OpsItemLimitExceededException & WithResourceTypes(Aws::Vector< Aws::String > &&value)
AWS_SSM_API OpsItemLimitExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
OpsItemLimitExceededException & WithMessage(Aws::String &&value)
OpsItemLimitExceededException & WithMessage(const char *value)
OpsItemLimitExceededException & WithLimitType(const Aws::String &value)
void SetResourceTypes(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue