AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GroupArnT = Aws::String>
58 void SetGroupArn(GroupArnT&& value) { m_groupArnHasBeenSet = true; m_groupArn = std::forward<GroupArnT>(value); }
59 template<typename GroupArnT = Aws::String>
60 Group& WithGroupArn(GroupArnT&& value) { SetGroupArn(std::forward<GroupArnT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 Group& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template<typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
83 template<typename DescriptionT = Aws::String>
84 Group& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
86
88
92 inline int GetCriticality() const { return m_criticality; }
93 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
94 inline void SetCriticality(int value) { m_criticalityHasBeenSet = true; m_criticality = value; }
95 inline Group& WithCriticality(int value) { SetCriticality(value); return *this;}
97
99
103 inline const Aws::String& GetOwner() const { return m_owner; }
104 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
105 template<typename OwnerT = Aws::String>
106 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
107 template<typename OwnerT = Aws::String>
108 Group& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
110
112
115 inline const Aws::String& GetDisplayName() const { return m_displayName; }
116 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
117 template<typename DisplayNameT = Aws::String>
118 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
119 template<typename DisplayNameT = Aws::String>
120 Group& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
122
124
128 inline const Aws::Map<Aws::String, Aws::String>& GetApplicationTag() const { return m_applicationTag; }
129 inline bool ApplicationTagHasBeenSet() const { return m_applicationTagHasBeenSet; }
130 template<typename ApplicationTagT = Aws::Map<Aws::String, Aws::String>>
131 void SetApplicationTag(ApplicationTagT&& value) { m_applicationTagHasBeenSet = true; m_applicationTag = std::forward<ApplicationTagT>(value); }
132 template<typename ApplicationTagT = Aws::Map<Aws::String, Aws::String>>
133 Group& WithApplicationTag(ApplicationTagT&& value) { SetApplicationTag(std::forward<ApplicationTagT>(value)); return *this;}
134 template<typename ApplicationTagKeyT = Aws::String, typename ApplicationTagValueT = Aws::String>
135 Group& AddApplicationTag(ApplicationTagKeyT&& key, ApplicationTagValueT&& value) {
136 m_applicationTagHasBeenSet = true; m_applicationTag.emplace(std::forward<ApplicationTagKeyT>(key), std::forward<ApplicationTagValueT>(value)); return *this;
137 }
139 private:
140
141 Aws::String m_groupArn;
142 bool m_groupArnHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::String m_description;
148 bool m_descriptionHasBeenSet = false;
149
150 int m_criticality{0};
151 bool m_criticalityHasBeenSet = false;
152
153 Aws::String m_owner;
154 bool m_ownerHasBeenSet = false;
155
156 Aws::String m_displayName;
157 bool m_displayNameHasBeenSet = false;
158
159 Aws::Map<Aws::String, Aws::String> m_applicationTag;
160 bool m_applicationTagHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace ResourceGroups
165} // namespace Aws
bool DescriptionHasBeenSet() const
Definition Group.h:80
void SetGroupArn(GroupArnT &&value)
Definition Group.h:58
bool ApplicationTagHasBeenSet() const
Definition Group.h:129
const Aws::String & GetOwner() const
Definition Group.h:103
const Aws::String & GetName() const
Definition Group.h:67
Group & WithOwner(OwnerT &&value)
Definition Group.h:108
bool DisplayNameHasBeenSet() const
Definition Group.h:116
Group & WithGroupArn(GroupArnT &&value)
Definition Group.h:60
bool CriticalityHasBeenSet() const
Definition Group.h:93
bool GroupArnHasBeenSet() const
Definition Group.h:56
Group & WithApplicationTag(ApplicationTagT &&value)
Definition Group.h:133
AWS_RESOURCEGROUPS_API Group()=default
void SetDescription(DescriptionT &&value)
Definition Group.h:82
Group & WithDisplayName(DisplayNameT &&value)
Definition Group.h:120
void SetDisplayName(DisplayNameT &&value)
Definition Group.h:118
const Aws::String & GetDisplayName() const
Definition Group.h:115
Group & AddApplicationTag(ApplicationTagKeyT &&key, ApplicationTagValueT &&value)
Definition Group.h:135
Group & WithDescription(DescriptionT &&value)
Definition Group.h:84
void SetOwner(OwnerT &&value)
Definition Group.h:106
Group & WithCriticality(int value)
Definition Group.h:95
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetGroupArn() const
Definition Group.h:55
const Aws::Map< Aws::String, Aws::String > & GetApplicationTag() const
Definition Group.h:128
void SetName(NameT &&value)
Definition Group.h:70
AWS_RESOURCEGROUPS_API Group & operator=(Aws::Utils::Json::JsonView jsonValue)
Group & WithName(NameT &&value)
Definition Group.h:72
void SetCriticality(int value)
Definition Group.h:94
const Aws::String & GetDescription() const
Definition Group.h:79
AWS_RESOURCEGROUPS_API Group(Aws::Utils::Json::JsonView jsonValue)
void SetApplicationTag(ApplicationTagT &&value)
Definition Group.h:131
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