AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Group.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.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 ResourceGroups
23{
24namespace Model
25{
26
42 class Group
43 {
44 public:
45 AWS_RESOURCEGROUPS_API Group();
46 AWS_RESOURCEGROUPS_API Group(Aws::Utils::Json::JsonView jsonValue);
47 AWS_RESOURCEGROUPS_API Group& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetGroupArn() const{ return m_groupArn; }
56 inline bool GroupArnHasBeenSet() const { return m_groupArnHasBeenSet; }
57 inline void SetGroupArn(const Aws::String& value) { m_groupArnHasBeenSet = true; m_groupArn = value; }
58 inline void SetGroupArn(Aws::String&& value) { m_groupArnHasBeenSet = true; m_groupArn = std::move(value); }
59 inline void SetGroupArn(const char* value) { m_groupArnHasBeenSet = true; m_groupArn.assign(value); }
60 inline Group& WithGroupArn(const Aws::String& value) { SetGroupArn(value); return *this;}
61 inline Group& WithGroupArn(Aws::String&& value) { SetGroupArn(std::move(value)); return *this;}
62 inline Group& WithGroupArn(const char* value) { SetGroupArn(value); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline Group& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline Group& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline Group& WithName(const char* value) { SetName(value); return *this;}
78
80
83 inline const Aws::String& GetDescription() const{ return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
86 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
87 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
88 inline Group& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
89 inline Group& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
90 inline Group& WithDescription(const char* value) { SetDescription(value); return *this;}
92
94
98 inline int GetCriticality() const{ return m_criticality; }
99 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
100 inline void SetCriticality(int value) { m_criticalityHasBeenSet = true; m_criticality = value; }
101 inline Group& WithCriticality(int value) { SetCriticality(value); return *this;}
103
105
109 inline const Aws::String& GetOwner() const{ return m_owner; }
110 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
111 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
112 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
113 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
114 inline Group& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
115 inline Group& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
116 inline Group& WithOwner(const char* value) { SetOwner(value); return *this;}
118
120
123 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
124 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
125 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
126 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
127 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
128 inline Group& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
129 inline Group& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
130 inline Group& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
132
134
138 inline const Aws::Map<Aws::String, Aws::String>& GetApplicationTag() const{ return m_applicationTag; }
139 inline bool ApplicationTagHasBeenSet() const { return m_applicationTagHasBeenSet; }
140 inline void SetApplicationTag(const Aws::Map<Aws::String, Aws::String>& value) { m_applicationTagHasBeenSet = true; m_applicationTag = value; }
141 inline void SetApplicationTag(Aws::Map<Aws::String, Aws::String>&& value) { m_applicationTagHasBeenSet = true; m_applicationTag = std::move(value); }
143 inline Group& WithApplicationTag(Aws::Map<Aws::String, Aws::String>&& value) { SetApplicationTag(std::move(value)); return *this;}
144 inline Group& AddApplicationTag(const Aws::String& key, const Aws::String& value) { m_applicationTagHasBeenSet = true; m_applicationTag.emplace(key, value); return *this; }
145 inline Group& AddApplicationTag(Aws::String&& key, const Aws::String& value) { m_applicationTagHasBeenSet = true; m_applicationTag.emplace(std::move(key), value); return *this; }
146 inline Group& AddApplicationTag(const Aws::String& key, Aws::String&& value) { m_applicationTagHasBeenSet = true; m_applicationTag.emplace(key, std::move(value)); return *this; }
147 inline Group& AddApplicationTag(Aws::String&& key, Aws::String&& value) { m_applicationTagHasBeenSet = true; m_applicationTag.emplace(std::move(key), std::move(value)); return *this; }
148 inline Group& AddApplicationTag(const char* key, Aws::String&& value) { m_applicationTagHasBeenSet = true; m_applicationTag.emplace(key, std::move(value)); return *this; }
149 inline Group& AddApplicationTag(Aws::String&& key, const char* value) { m_applicationTagHasBeenSet = true; m_applicationTag.emplace(std::move(key), value); return *this; }
150 inline Group& AddApplicationTag(const char* key, const char* value) { m_applicationTagHasBeenSet = true; m_applicationTag.emplace(key, value); return *this; }
152 private:
153
154 Aws::String m_groupArn;
155 bool m_groupArnHasBeenSet = false;
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
160 Aws::String m_description;
161 bool m_descriptionHasBeenSet = false;
162
163 int m_criticality;
164 bool m_criticalityHasBeenSet = false;
165
166 Aws::String m_owner;
167 bool m_ownerHasBeenSet = false;
168
169 Aws::String m_displayName;
170 bool m_displayNameHasBeenSet = false;
171
172 Aws::Map<Aws::String, Aws::String> m_applicationTag;
173 bool m_applicationTagHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace ResourceGroups
178} // namespace Aws
Group & WithName(Aws::String &&value)
Definition Group.h:75
Group & WithDisplayName(const Aws::String &value)
Definition Group.h:128
void SetName(const char *value)
Definition Group.h:73
Group & WithApplicationTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition Group.h:143
void SetGroupArn(Aws::String &&value)
Definition Group.h:58
void SetOwner(Aws::String &&value)
Definition Group.h:112
bool DescriptionHasBeenSet() const
Definition Group.h:84
Group & WithGroupArn(const Aws::String &value)
Definition Group.h:60
bool ApplicationTagHasBeenSet() const
Definition Group.h:139
const Aws::String & GetOwner() const
Definition Group.h:109
const Aws::String & GetName() const
Definition Group.h:69
void SetName(const Aws::String &value)
Definition Group.h:71
void SetGroupArn(const Aws::String &value)
Definition Group.h:57
bool DisplayNameHasBeenSet() const
Definition Group.h:124
Group & WithApplicationTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition Group.h:142
bool CriticalityHasBeenSet() const
Definition Group.h:99
Group & WithOwner(const Aws::String &value)
Definition Group.h:114
void SetDisplayName(const char *value)
Definition Group.h:127
void SetDisplayName(Aws::String &&value)
Definition Group.h:126
bool GroupArnHasBeenSet() const
Definition Group.h:56
Group & WithOwner(const char *value)
Definition Group.h:116
Group & AddApplicationTag(const char *key, Aws::String &&value)
Definition Group.h:148
Group & AddApplicationTag(Aws::String &&key, const char *value)
Definition Group.h:149
Group & WithDescription(const char *value)
Definition Group.h:90
Group & AddApplicationTag(const Aws::String &key, Aws::String &&value)
Definition Group.h:146
Group & WithGroupArn(const char *value)
Definition Group.h:62
const Aws::String & GetDisplayName() const
Definition Group.h:123
void SetName(Aws::String &&value)
Definition Group.h:72
Group & WithGroupArn(Aws::String &&value)
Definition Group.h:61
AWS_RESOURCEGROUPS_API Group()
Group & WithDisplayName(const char *value)
Definition Group.h:130
void SetDescription(const Aws::String &value)
Definition Group.h:85
void SetGroupArn(const char *value)
Definition Group.h:59
Group & AddApplicationTag(Aws::String &&key, const Aws::String &value)
Definition Group.h:145
Group & WithDescription(Aws::String &&value)
Definition Group.h:89
Group & WithOwner(Aws::String &&value)
Definition Group.h:115
Group & WithName(const char *value)
Definition Group.h:76
void SetOwner(const Aws::String &value)
Definition Group.h:111
Group & AddApplicationTag(Aws::String &&key, Aws::String &&value)
Definition Group.h:147
Group & WithCriticality(int value)
Definition Group.h:101
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetGroupArn() const
Definition Group.h:55
void SetDisplayName(const Aws::String &value)
Definition Group.h:125
void SetDescription(const char *value)
Definition Group.h:87
void SetDescription(Aws::String &&value)
Definition Group.h:86
const Aws::Map< Aws::String, Aws::String > & GetApplicationTag() const
Definition Group.h:138
AWS_RESOURCEGROUPS_API Group & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOwner(const char *value)
Definition Group.h:113
void SetApplicationTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition Group.h:141
void SetCriticality(int value)
Definition Group.h:100
Group & WithName(const Aws::String &value)
Definition Group.h:74
void SetApplicationTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition Group.h:140
Group & WithDisplayName(Aws::String &&value)
Definition Group.h:129
const Aws::String & GetDescription() const
Definition Group.h:83
AWS_RESOURCEGROUPS_API Group(Aws::Utils::Json::JsonView jsonValue)
Group & AddApplicationTag(const Aws::String &key, const Aws::String &value)
Definition Group.h:144
Group & WithDescription(const Aws::String &value)
Definition Group.h:88
Group & AddApplicationTag(const char *key, const char *value)
Definition Group.h:150
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue