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/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Synthetics
24{
25namespace Model
26{
27
33 class Group
34 {
35 public:
36 AWS_SYNTHETICS_API Group();
37 AWS_SYNTHETICS_API Group(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SYNTHETICS_API Group& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline Group& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline Group& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline Group& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline Group& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline Group& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline Group& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const Aws::String& GetArn() const{ return m_arn; }
75 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
76 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
77 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
78 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
79 inline Group& WithArn(const Aws::String& value) { SetArn(value); return *this;}
80 inline Group& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
81 inline Group& WithArn(const char* value) { SetArn(value); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline Group& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
93 inline Group& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
94 inline Group& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
95 inline Group& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
96 inline Group& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
97 inline Group& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
98 inline Group& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
99 inline Group& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
100 inline Group& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
102
104
107 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
108 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
109 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
110 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
111 inline Group& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
112 inline Group& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
120 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
121 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
122 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
123 inline Group& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
124 inline Group& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
126 private:
127
128 Aws::String m_id;
129 bool m_idHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_arn;
135 bool m_arnHasBeenSet = false;
136
138 bool m_tagsHasBeenSet = false;
139
140 Aws::Utils::DateTime m_createdTime;
141 bool m_createdTimeHasBeenSet = false;
142
143 Aws::Utils::DateTime m_lastModifiedTime;
144 bool m_lastModifiedTimeHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Synthetics
149} // namespace Aws
void SetId(Aws::String &&value)
Definition Group.h:49
Group & AddTags(Aws::String &&key, const Aws::String &value)
Definition Group.h:95
void SetArn(Aws::String &&value)
Definition Group.h:77
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition Group.h:109
Group & WithArn(Aws::String &&value)
Definition Group.h:80
bool NameHasBeenSet() const
Definition Group.h:61
Group & AddTags(Aws::String &&key, const char *value)
Definition Group.h:99
Group & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Group.h:123
Group & WithArn(const Aws::String &value)
Definition Group.h:79
void SetName(Aws::String &&value)
Definition Group.h:63
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Group.h:122
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Group.h:119
void SetName(const char *value)
Definition Group.h:64
bool LastModifiedTimeHasBeenSet() const
Definition Group.h:120
bool ArnHasBeenSet() const
Definition Group.h:75
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Group.h:88
Group & AddTags(Aws::String &&key, Aws::String &&value)
Definition Group.h:97
Group & WithId(const char *value)
Definition Group.h:53
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Group.h:121
Group & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition Group.h:112
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition Group.h:110
Group & WithId(Aws::String &&value)
Definition Group.h:52
AWS_SYNTHETICS_API Group(Aws::Utils::Json::JsonView jsonValue)
Group & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Group.h:92
bool IdHasBeenSet() const
Definition Group.h:47
Group & AddTags(const Aws::String &key, Aws::String &&value)
Definition Group.h:96
void SetArn(const char *value)
Definition Group.h:78
Group & AddTags(const char *key, const char *value)
Definition Group.h:100
Group & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Group.h:93
void SetId(const char *value)
Definition Group.h:50
Group & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition Group.h:111
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArn(const Aws::String &value)
Definition Group.h:76
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Group.h:91
AWS_SYNTHETICS_API Group & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Group.h:90
void SetName(const Aws::String &value)
Definition Group.h:62
Group & WithName(const char *value)
Definition Group.h:67
Group & AddTags(const char *key, Aws::String &&value)
Definition Group.h:98
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Group.h:107
Group & WithName(const Aws::String &value)
Definition Group.h:65
Group & WithId(const Aws::String &value)
Definition Group.h:51
const Aws::String & GetId() const
Definition Group.h:46
void SetId(const Aws::String &value)
Definition Group.h:48
Group & WithName(Aws::String &&value)
Definition Group.h:66
bool CreatedTimeHasBeenSet() const
Definition Group.h:108
bool TagsHasBeenSet() const
Definition Group.h:89
Group & AddTags(const Aws::String &key, const Aws::String &value)
Definition Group.h:94
Group & WithArn(const char *value)
Definition Group.h:81
Group & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Group.h:124
const Aws::String & GetArn() const
Definition Group.h:74
const Aws::String & GetName() const
Definition Group.h:60
AWS_SYNTHETICS_API Group()
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