AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateScraperResult.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/ScraperStatus.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace PrometheusService {
24namespace Model {
26 public:
27 AWS_PROMETHEUSSERVICE_API UpdateScraperResult() = default;
30
32
35 inline const Aws::String& GetScraperId() const { return m_scraperId; }
36 template <typename ScraperIdT = Aws::String>
37 void SetScraperId(ScraperIdT&& value) {
38 m_scraperIdHasBeenSet = true;
39 m_scraperId = std::forward<ScraperIdT>(value);
40 }
41 template <typename ScraperIdT = Aws::String>
42 UpdateScraperResult& WithScraperId(ScraperIdT&& value) {
43 SetScraperId(std::forward<ScraperIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetArn() const { return m_arn; }
53 template <typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) {
55 m_arnHasBeenSet = true;
56 m_arn = std::forward<ArnT>(value);
57 }
58 template <typename ArnT = Aws::String>
60 SetArn(std::forward<ArnT>(value));
61 return *this;
62 }
64
66
69 inline const ScraperStatus& GetStatus() const { return m_status; }
70 template <typename StatusT = ScraperStatus>
71 void SetStatus(StatusT&& value) {
72 m_statusHasBeenSet = true;
73 m_status = std::forward<StatusT>(value);
74 }
75 template <typename StatusT = ScraperStatus>
76 UpdateScraperResult& WithStatus(StatusT&& value) {
77 SetStatus(std::forward<StatusT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
87 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 void SetTags(TagsT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags = std::forward<TagsT>(value);
91 }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 UpdateScraperResult& WithTags(TagsT&& value) {
94 SetTags(std::forward<TagsT>(value));
95 return *this;
96 }
97 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
98 UpdateScraperResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
101 return *this;
102 }
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template <typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) {
110 m_requestIdHasBeenSet = true;
111 m_requestId = std::forward<RequestIdT>(value);
112 }
113 template <typename RequestIdT = Aws::String>
114 UpdateScraperResult& WithRequestId(RequestIdT&& value) {
115 SetRequestId(std::forward<RequestIdT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_scraperId;
121
122 Aws::String m_arn;
123
124 ScraperStatus m_status;
125
127
128 Aws::String m_requestId;
129 bool m_scraperIdHasBeenSet = false;
130 bool m_arnHasBeenSet = false;
131 bool m_statusHasBeenSet = false;
132 bool m_tagsHasBeenSet = false;
133 bool m_requestIdHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace PrometheusService
138} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PROMETHEUSSERVICE_API UpdateScraperResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateScraperResult & WithScraperId(ScraperIdT &&value)
UpdateScraperResult & WithRequestId(RequestIdT &&value)
UpdateScraperResult & WithStatus(StatusT &&value)
UpdateScraperResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PROMETHEUSSERVICE_API UpdateScraperResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PROMETHEUSSERVICE_API UpdateScraperResult()=default
UpdateScraperResult & WithTags(TagsT &&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