AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ScraperSummary.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/amp/model/Destination.h>
11#include <aws/amp/model/RoleConfiguration.h>
12#include <aws/amp/model/Source.h>
13#include <aws/amp/model/ScraperStatus.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace PrometheusService
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_PROMETHEUSSERVICE_API ScraperSummary() = default;
42 AWS_PROMETHEUSSERVICE_API ScraperSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PROMETHEUSSERVICE_API ScraperSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetAlias() const { return m_alias; }
52 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
53 template<typename AliasT = Aws::String>
54 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
55 template<typename AliasT = Aws::String>
56 ScraperSummary& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
58
60
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template<typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
67 template<typename ArnT = Aws::String>
68 ScraperSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
76 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
77 template<typename CreatedAtT = Aws::Utils::DateTime>
78 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
79 template<typename CreatedAtT = Aws::Utils::DateTime>
80 ScraperSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
82
84
88 inline const Destination& GetDestination() const { return m_destination; }
89 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
90 template<typename DestinationT = Destination>
91 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
92 template<typename DestinationT = Destination>
93 ScraperSummary& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
101 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
102 template<typename LastModifiedAtT = Aws::Utils::DateTime>
103 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
104 template<typename LastModifiedAtT = Aws::Utils::DateTime>
105 ScraperSummary& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
107
109
113 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
114 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
115 template<typename RoleArnT = Aws::String>
116 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
117 template<typename RoleArnT = Aws::String>
118 ScraperSummary& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
120
122
126 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
127 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
128 template<typename RoleConfigurationT = RoleConfiguration>
129 void SetRoleConfiguration(RoleConfigurationT&& value) { m_roleConfigurationHasBeenSet = true; m_roleConfiguration = std::forward<RoleConfigurationT>(value); }
130 template<typename RoleConfigurationT = RoleConfiguration>
131 ScraperSummary& WithRoleConfiguration(RoleConfigurationT&& value) { SetRoleConfiguration(std::forward<RoleConfigurationT>(value)); return *this;}
133
135
138 inline const Aws::String& GetScraperId() const { return m_scraperId; }
139 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
140 template<typename ScraperIdT = Aws::String>
141 void SetScraperId(ScraperIdT&& value) { m_scraperIdHasBeenSet = true; m_scraperId = std::forward<ScraperIdT>(value); }
142 template<typename ScraperIdT = Aws::String>
143 ScraperSummary& WithScraperId(ScraperIdT&& value) { SetScraperId(std::forward<ScraperIdT>(value)); return *this;}
145
147
150 inline const Source& GetSource() const { return m_source; }
151 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
152 template<typename SourceT = Source>
153 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
154 template<typename SourceT = Source>
155 ScraperSummary& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
157
159
162 inline const ScraperStatus& GetStatus() const { return m_status; }
163 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
164 template<typename StatusT = ScraperStatus>
165 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
166 template<typename StatusT = ScraperStatus>
167 ScraperSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
169
171
174 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
175 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
176 template<typename StatusReasonT = Aws::String>
177 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
178 template<typename StatusReasonT = Aws::String>
179 ScraperSummary& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
181
183
186 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
190 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 ScraperSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
192 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
193 ScraperSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
194 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
195 }
197 private:
198
199 Aws::String m_alias;
200 bool m_aliasHasBeenSet = false;
201
202 Aws::String m_arn;
203 bool m_arnHasBeenSet = false;
204
205 Aws::Utils::DateTime m_createdAt{};
206 bool m_createdAtHasBeenSet = false;
207
208 Destination m_destination;
209 bool m_destinationHasBeenSet = false;
210
211 Aws::Utils::DateTime m_lastModifiedAt{};
212 bool m_lastModifiedAtHasBeenSet = false;
213
214 Aws::String m_roleArn;
215 bool m_roleArnHasBeenSet = false;
216
217 RoleConfiguration m_roleConfiguration;
218 bool m_roleConfigurationHasBeenSet = false;
219
220 Aws::String m_scraperId;
221 bool m_scraperIdHasBeenSet = false;
222
223 Source m_source;
224 bool m_sourceHasBeenSet = false;
225
226 ScraperStatus m_status;
227 bool m_statusHasBeenSet = false;
228
229 Aws::String m_statusReason;
230 bool m_statusReasonHasBeenSet = false;
231
233 bool m_tagsHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace PrometheusService
238} // namespace Aws
ScraperSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
ScraperSummary & WithRoleConfiguration(RoleConfigurationT &&value)
void SetRoleConfiguration(RoleConfigurationT &&value)
ScraperSummary & WithStatus(StatusT &&value)
ScraperSummary & WithDestination(DestinationT &&value)
const RoleConfiguration & GetRoleConfiguration() const
ScraperSummary & WithLastModifiedAt(LastModifiedAtT &&value)
AWS_PROMETHEUSSERVICE_API ScraperSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API ScraperSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ScraperSummary & WithScraperId(ScraperIdT &&value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
ScraperSummary & WithTags(TagsT &&value)
ScraperSummary & WithArn(ArnT &&value)
void SetLastModifiedAt(LastModifiedAtT &&value)
ScraperSummary & WithCreatedAt(CreatedAtT &&value)
ScraperSummary & WithRoleArn(RoleArnT &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
ScraperSummary & WithAlias(AliasT &&value)
AWS_PROMETHEUSSERVICE_API ScraperSummary()=default
ScraperSummary & WithSource(SourceT &&value)
ScraperSummary & WithStatusReason(StatusReasonT &&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