AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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/amp/model/ScraperStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/amp/model/Source.h>
13#include <aws/amp/model/Destination.h>
14#include <aws/amp/model/RoleConfiguration.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& GetScraperId() const { return m_scraperId; }
64 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
65 template<typename ScraperIdT = Aws::String>
66 void SetScraperId(ScraperIdT&& value) { m_scraperIdHasBeenSet = true; m_scraperId = std::forward<ScraperIdT>(value); }
67 template<typename ScraperIdT = Aws::String>
68 ScraperSummary& WithScraperId(ScraperIdT&& value) { SetScraperId(std::forward<ScraperIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetArn() const { return m_arn; }
76 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
77 template<typename ArnT = Aws::String>
78 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
79 template<typename ArnT = Aws::String>
80 ScraperSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
82
84
88 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
89 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
90 template<typename RoleArnT = Aws::String>
91 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
92 template<typename RoleArnT = Aws::String>
93 ScraperSummary& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
95
97
100 inline const ScraperStatus& GetStatus() const { return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 template<typename StatusT = ScraperStatus>
103 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
104 template<typename StatusT = ScraperStatus>
105 ScraperSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
113 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
114 template<typename CreatedAtT = Aws::Utils::DateTime>
115 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
116 template<typename CreatedAtT = Aws::Utils::DateTime>
117 ScraperSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
125 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
126 template<typename LastModifiedAtT = Aws::Utils::DateTime>
127 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
128 template<typename LastModifiedAtT = Aws::Utils::DateTime>
129 ScraperSummary& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
131
133
136 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
140 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 ScraperSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
142 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
143 ScraperSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
144 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
145 }
147
149
152 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
153 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
154 template<typename StatusReasonT = Aws::String>
155 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
156 template<typename StatusReasonT = Aws::String>
157 ScraperSummary& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
159
161
164 inline const Source& GetSource() const { return m_source; }
165 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
166 template<typename SourceT = Source>
167 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
168 template<typename SourceT = Source>
169 ScraperSummary& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
171
173
177 inline const Destination& GetDestination() const { return m_destination; }
178 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
179 template<typename DestinationT = Destination>
180 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
181 template<typename DestinationT = Destination>
182 ScraperSummary& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
184
186
190 inline const RoleConfiguration& GetRoleConfiguration() const { return m_roleConfiguration; }
191 inline bool RoleConfigurationHasBeenSet() const { return m_roleConfigurationHasBeenSet; }
192 template<typename RoleConfigurationT = RoleConfiguration>
193 void SetRoleConfiguration(RoleConfigurationT&& value) { m_roleConfigurationHasBeenSet = true; m_roleConfiguration = std::forward<RoleConfigurationT>(value); }
194 template<typename RoleConfigurationT = RoleConfiguration>
195 ScraperSummary& WithRoleConfiguration(RoleConfigurationT&& value) { SetRoleConfiguration(std::forward<RoleConfigurationT>(value)); return *this;}
197 private:
198
199 Aws::String m_alias;
200 bool m_aliasHasBeenSet = false;
201
202 Aws::String m_scraperId;
203 bool m_scraperIdHasBeenSet = false;
204
205 Aws::String m_arn;
206 bool m_arnHasBeenSet = false;
207
208 Aws::String m_roleArn;
209 bool m_roleArnHasBeenSet = false;
210
211 ScraperStatus m_status;
212 bool m_statusHasBeenSet = false;
213
214 Aws::Utils::DateTime m_createdAt{};
215 bool m_createdAtHasBeenSet = false;
216
217 Aws::Utils::DateTime m_lastModifiedAt{};
218 bool m_lastModifiedAtHasBeenSet = false;
219
221 bool m_tagsHasBeenSet = false;
222
223 Aws::String m_statusReason;
224 bool m_statusReasonHasBeenSet = false;
225
226 Source m_source;
227 bool m_sourceHasBeenSet = false;
228
229 Destination m_destination;
230 bool m_destinationHasBeenSet = false;
231
232 RoleConfiguration m_roleConfiguration;
233 bool m_roleConfigurationHasBeenSet = 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