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/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() = default;
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 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 Group& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 Group& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetArn() const { return m_arn; }
71 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
72 template<typename ArnT = Aws::String>
73 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
74 template<typename ArnT = Aws::String>
75 Group& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
86 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 Group& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
88 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
89 Group& AddTags(TagsKeyT&& key, TagsValueT&& value) {
90 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
99 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
100 template<typename CreatedTimeT = Aws::Utils::DateTime>
101 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
102 template<typename CreatedTimeT = Aws::Utils::DateTime>
103 Group& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
111 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
112 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
113 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
114 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
115 Group& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
117 private:
118
119 Aws::String m_id;
120 bool m_idHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::String m_arn;
126 bool m_arnHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130
131 Aws::Utils::DateTime m_createdTime{};
132 bool m_createdTimeHasBeenSet = false;
133
134 Aws::Utils::DateTime m_lastModifiedTime{};
135 bool m_lastModifiedTimeHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Synthetics
140} // namespace Aws
Group & WithId(IdT &&value)
Definition Group.h:51
bool NameHasBeenSet() const
Definition Group.h:59
void SetTags(TagsT &&value)
Definition Group.h:85
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Group.h:110
bool LastModifiedTimeHasBeenSet() const
Definition Group.h:111
bool ArnHasBeenSet() const
Definition Group.h:71
void SetName(NameT &&value)
Definition Group.h:61
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Group.h:82
AWS_SYNTHETICS_API Group(Aws::Utils::Json::JsonView jsonValue)
bool IdHasBeenSet() const
Definition Group.h:47
Group & WithArn(ArnT &&value)
Definition Group.h:75
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:49
Group & WithCreatedTime(CreatedTimeT &&value)
Definition Group.h:103
void SetArn(ArnT &&value)
Definition Group.h:73
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Group.h:98
Group & WithTags(TagsT &&value)
Definition Group.h:87
Group & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Group.h:115
void SetCreatedTime(CreatedTimeT &&value)
Definition Group.h:101
Group & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Group.h:89
const Aws::String & GetId() const
Definition Group.h:46
bool CreatedTimeHasBeenSet() const
Definition Group.h:99
bool TagsHasBeenSet() const
Definition Group.h:83
Group & WithName(NameT &&value)
Definition Group.h:63
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Group.h:113
const Aws::String & GetArn() const
Definition Group.h:70
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