AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetAllowListResult.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/macie2/model/AllowListCriteria.h>
11#include <aws/macie2/model/AllowListStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Macie2
28{
29namespace Model
30{
32 {
33 public:
34 AWS_MACIE2_API GetAllowListResult() = default;
37
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 template<typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
46 template<typename ArnT = Aws::String>
47 GetAllowListResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
49
51
55 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
56 template<typename CreatedAtT = Aws::Utils::DateTime>
57 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
58 template<typename CreatedAtT = Aws::Utils::DateTime>
59 GetAllowListResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
61
63
69 inline const AllowListCriteria& GetCriteria() const { return m_criteria; }
70 template<typename CriteriaT = AllowListCriteria>
71 void SetCriteria(CriteriaT&& value) { m_criteriaHasBeenSet = true; m_criteria = std::forward<CriteriaT>(value); }
72 template<typename CriteriaT = AllowListCriteria>
73 GetAllowListResult& WithCriteria(CriteriaT&& value) { SetCriteria(std::forward<CriteriaT>(value)); return *this;}
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
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 GetAllowListResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
86
88
91 inline const Aws::String& GetId() const { return m_id; }
92 template<typename IdT = Aws::String>
93 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
94 template<typename IdT = Aws::String>
95 GetAllowListResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
97
99
102 inline const Aws::String& GetName() const { return m_name; }
103 template<typename NameT = Aws::String>
104 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
105 template<typename NameT = Aws::String>
106 GetAllowListResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
108
110
114 inline const AllowListStatus& GetStatus() const { return m_status; }
115 template<typename StatusT = AllowListStatus>
116 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
117 template<typename StatusT = AllowListStatus>
118 GetAllowListResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
120
122
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
127 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
129 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 GetAllowListResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
131 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 GetAllowListResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
134 }
136
138
142 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
143 template<typename UpdatedAtT = Aws::Utils::DateTime>
144 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
145 template<typename UpdatedAtT = Aws::Utils::DateTime>
146 GetAllowListResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
148
150
151 inline const Aws::String& GetRequestId() const { return m_requestId; }
152 template<typename RequestIdT = Aws::String>
153 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
154 template<typename RequestIdT = Aws::String>
155 GetAllowListResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
157 private:
158
159 Aws::String m_arn;
160 bool m_arnHasBeenSet = false;
161
162 Aws::Utils::DateTime m_createdAt{};
163 bool m_createdAtHasBeenSet = false;
164
165 AllowListCriteria m_criteria;
166 bool m_criteriaHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::String m_id;
172 bool m_idHasBeenSet = false;
173
174 Aws::String m_name;
175 bool m_nameHasBeenSet = false;
176
177 AllowListStatus m_status;
178 bool m_statusHasBeenSet = false;
179
181 bool m_tagsHasBeenSet = false;
182
183 Aws::Utils::DateTime m_updatedAt{};
184 bool m_updatedAtHasBeenSet = false;
185
186 Aws::String m_requestId;
187 bool m_requestIdHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace Macie2
192} // namespace Aws
const AllowListCriteria & GetCriteria() const
const Aws::String & GetDescription() const
GetAllowListResult & WithDescription(DescriptionT &&value)
GetAllowListResult & WithArn(ArnT &&value)
AWS_MACIE2_API GetAllowListResult()=default
GetAllowListResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_MACIE2_API GetAllowListResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
GetAllowListResult & WithName(NameT &&value)
GetAllowListResult & WithUpdatedAt(UpdatedAtT &&value)
GetAllowListResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetAllowListResult & WithId(IdT &&value)
GetAllowListResult & WithStatus(StatusT &&value)
const AllowListStatus & GetStatus() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetAllowListResult & WithCriteria(CriteriaT &&value)
GetAllowListResult & WithTags(TagsT &&value)
AWS_MACIE2_API GetAllowListResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAllowListResult & WithCreatedAt(CreatedAtT &&value)
void SetDescription(DescriptionT &&value)
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