AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
Group.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/synthetics/Synthetics_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Synthetics {
22namespace Model {
23
29class Group {
30 public:
31 AWS_SYNTHETICS_API Group() = default;
32 AWS_SYNTHETICS_API Group(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SYNTHETICS_API Group& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 Group& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 Group& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetArn() const { return m_arn; }
77 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
78 template <typename ArnT = Aws::String>
79 void SetArn(ArnT&& value) {
80 m_arnHasBeenSet = true;
81 m_arn = std::forward<ArnT>(value);
82 }
83 template <typename ArnT = Aws::String>
84 Group& WithArn(ArnT&& value) {
85 SetArn(std::forward<ArnT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) {
98 m_tagsHasBeenSet = true;
99 m_tags = std::forward<TagsT>(value);
100 }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 Group& WithTags(TagsT&& value) {
103 SetTags(std::forward<TagsT>(value));
104 return *this;
105 }
106 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
107 Group& AddTags(TagsKeyT&& key, TagsValueT&& value) {
108 m_tagsHasBeenSet = true;
109 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
119 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
120 template <typename CreatedTimeT = Aws::Utils::DateTime>
121 void SetCreatedTime(CreatedTimeT&& value) {
122 m_createdTimeHasBeenSet = true;
123 m_createdTime = std::forward<CreatedTimeT>(value);
124 }
125 template <typename CreatedTimeT = Aws::Utils::DateTime>
126 Group& WithCreatedTime(CreatedTimeT&& value) {
127 SetCreatedTime(std::forward<CreatedTimeT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
137 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
138 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
139 void SetLastModifiedTime(LastModifiedTimeT&& value) {
140 m_lastModifiedTimeHasBeenSet = true;
141 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
142 }
143 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
144 Group& WithLastModifiedTime(LastModifiedTimeT&& value) {
145 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_id;
151 bool m_idHasBeenSet = false;
152
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155
156 Aws::String m_arn;
157 bool m_arnHasBeenSet = false;
158
160 bool m_tagsHasBeenSet = false;
161
162 Aws::Utils::DateTime m_createdTime{};
163 bool m_createdTimeHasBeenSet = false;
164
165 Aws::Utils::DateTime m_lastModifiedTime{};
166 bool m_lastModifiedTimeHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Synthetics
171} // namespace Aws
Group & WithId(IdT &&value)
Definition Group.h:48
bool NameHasBeenSet() const
Definition Group.h:59
void SetTags(TagsT &&value)
Definition Group.h:97
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Group.h:136
bool LastModifiedTimeHasBeenSet() const
Definition Group.h:137
bool ArnHasBeenSet() const
Definition Group.h:77
void SetName(NameT &&value)
Definition Group.h:61
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Group.h:94
AWS_SYNTHETICS_API Group(Aws::Utils::Json::JsonView jsonValue)
bool IdHasBeenSet() const
Definition Group.h:41
Group & WithArn(ArnT &&value)
Definition Group.h:84
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SYNTHETICS_API Group & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SYNTHETICS_API Group()=default
void SetId(IdT &&value)
Definition Group.h:43
Group & WithCreatedTime(CreatedTimeT &&value)
Definition Group.h:126
void SetArn(ArnT &&value)
Definition Group.h:79
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Group.h:118
Group & WithTags(TagsT &&value)
Definition Group.h:102
Group & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Group.h:144
void SetCreatedTime(CreatedTimeT &&value)
Definition Group.h:121
Group & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Group.h:107
const Aws::String & GetId() const
Definition Group.h:40
bool CreatedTimeHasBeenSet() const
Definition Group.h:119
bool TagsHasBeenSet() const
Definition Group.h:95
Group & WithName(NameT &&value)
Definition Group.h:66
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Group.h:139
const Aws::String & GetArn() const
Definition Group.h:76
const Aws::String & GetName() const
Definition Group.h:58
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