AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ResourceSet.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/fms/model/ResourceSetStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FMS
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_FMS_API ResourceSet() = default;
41
42
44
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 ResourceSet& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
56
58
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 ResourceSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 ResourceSet& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
99 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
100 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
101 template<typename UpdateTokenT = Aws::String>
102 void SetUpdateToken(UpdateTokenT&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::forward<UpdateTokenT>(value); }
103 template<typename UpdateTokenT = Aws::String>
104 ResourceSet& WithUpdateToken(UpdateTokenT&& value) { SetUpdateToken(std::forward<UpdateTokenT>(value)); return *this;}
106
108
113 inline const Aws::Vector<Aws::String>& GetResourceTypeList() const { return m_resourceTypeList; }
114 inline bool ResourceTypeListHasBeenSet() const { return m_resourceTypeListHasBeenSet; }
115 template<typename ResourceTypeListT = Aws::Vector<Aws::String>>
116 void SetResourceTypeList(ResourceTypeListT&& value) { m_resourceTypeListHasBeenSet = true; m_resourceTypeList = std::forward<ResourceTypeListT>(value); }
117 template<typename ResourceTypeListT = Aws::Vector<Aws::String>>
118 ResourceSet& WithResourceTypeList(ResourceTypeListT&& value) { SetResourceTypeList(std::forward<ResourceTypeListT>(value)); return *this;}
119 template<typename ResourceTypeListT = Aws::String>
120 ResourceSet& AddResourceTypeList(ResourceTypeListT&& value) { m_resourceTypeListHasBeenSet = true; m_resourceTypeList.emplace_back(std::forward<ResourceTypeListT>(value)); return *this; }
122
124
127 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
128 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
129 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
130 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
131 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
132 ResourceSet& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
134
136
144 inline ResourceSetStatus GetResourceSetStatus() const { return m_resourceSetStatus; }
145 inline bool ResourceSetStatusHasBeenSet() const { return m_resourceSetStatusHasBeenSet; }
146 inline void SetResourceSetStatus(ResourceSetStatus value) { m_resourceSetStatusHasBeenSet = true; m_resourceSetStatus = value; }
149 private:
150
151 Aws::String m_id;
152 bool m_idHasBeenSet = false;
153
154 Aws::String m_name;
155 bool m_nameHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
160 Aws::String m_updateToken;
161 bool m_updateTokenHasBeenSet = false;
162
163 Aws::Vector<Aws::String> m_resourceTypeList;
164 bool m_resourceTypeListHasBeenSet = false;
165
166 Aws::Utils::DateTime m_lastUpdateTime{};
167 bool m_lastUpdateTimeHasBeenSet = false;
168
170 bool m_resourceSetStatusHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace FMS
175} // namespace Aws
ResourceSet & WithUpdateToken(UpdateTokenT &&value)
ResourceSet & WithResourceSetStatus(ResourceSetStatus value)
const Aws::String & GetId() const
Definition ResourceSet.h:49
bool ResourceTypeListHasBeenSet() const
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceSet & WithName(NameT &&value)
Definition ResourceSet.h:67
ResourceSetStatus GetResourceSetStatus() const
void SetName(NameT &&value)
Definition ResourceSet.h:65
ResourceSet & AddResourceTypeList(ResourceTypeListT &&value)
AWS_FMS_API ResourceSet(Aws::Utils::Json::JsonView jsonValue)
void SetUpdateToken(UpdateTokenT &&value)
const Aws::String & GetDescription() const
Definition ResourceSet.h:74
ResourceSet & WithDescription(DescriptionT &&value)
Definition ResourceSet.h:79
bool DescriptionHasBeenSet() const
Definition ResourceSet.h:75
AWS_FMS_API ResourceSet & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSet & WithLastUpdateTime(LastUpdateTimeT &&value)
bool LastUpdateTimeHasBeenSet() const
const Aws::String & GetUpdateToken() const
Definition ResourceSet.h:99
const Aws::String & GetName() const
Definition ResourceSet.h:62
void SetId(IdT &&value)
Definition ResourceSet.h:52
const Aws::Vector< Aws::String > & GetResourceTypeList() const
ResourceSet & WithId(IdT &&value)
Definition ResourceSet.h:54
bool ResourceSetStatusHasBeenSet() const
const Aws::Utils::DateTime & GetLastUpdateTime() const
void SetLastUpdateTime(LastUpdateTimeT &&value)
ResourceSet & WithResourceTypeList(ResourceTypeListT &&value)
void SetResourceTypeList(ResourceTypeListT &&value)
void SetDescription(DescriptionT &&value)
Definition ResourceSet.h:77
void SetResourceSetStatus(ResourceSetStatus value)
AWS_FMS_API ResourceSet()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue