AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CreateScraperResult.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 {
32 public:
33 AWS_PROMETHEUSSERVICE_API CreateScraperResult() = default;
36
38
41 inline const Aws::String& GetScraperId() const { return m_scraperId; }
42 template <typename ScraperIdT = Aws::String>
43 void SetScraperId(ScraperIdT&& value) {
44 m_scraperIdHasBeenSet = true;
45 m_scraperId = std::forward<ScraperIdT>(value);
46 }
47 template <typename ScraperIdT = Aws::String>
48 CreateScraperResult& WithScraperId(ScraperIdT&& value) {
49 SetScraperId(std::forward<ScraperIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 template <typename ArnT = Aws::String>
60 void SetArn(ArnT&& value) {
61 m_arnHasBeenSet = true;
62 m_arn = std::forward<ArnT>(value);
63 }
64 template <typename ArnT = Aws::String>
66 SetArn(std::forward<ArnT>(value));
67 return *this;
68 }
70
72
75 inline const ScraperStatus& GetStatus() const { return m_status; }
76 template <typename StatusT = ScraperStatus>
77 void SetStatus(StatusT&& value) {
78 m_statusHasBeenSet = true;
79 m_status = std::forward<StatusT>(value);
80 }
81 template <typename StatusT = ScraperStatus>
82 CreateScraperResult& WithStatus(StatusT&& value) {
83 SetStatus(std::forward<StatusT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) {
95 m_tagsHasBeenSet = true;
96 m_tags = std::forward<TagsT>(value);
97 }
98 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 CreateScraperResult& WithTags(TagsT&& value) {
100 SetTags(std::forward<TagsT>(value));
101 return *this;
102 }
103 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
104 CreateScraperResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
107 return *this;
108 }
110
112
113 inline const Aws::String& GetRequestId() const { return m_requestId; }
114 template <typename RequestIdT = Aws::String>
115 void SetRequestId(RequestIdT&& value) {
116 m_requestIdHasBeenSet = true;
117 m_requestId = std::forward<RequestIdT>(value);
118 }
119 template <typename RequestIdT = Aws::String>
120 CreateScraperResult& WithRequestId(RequestIdT&& value) {
121 SetRequestId(std::forward<RequestIdT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_scraperId;
127
128 Aws::String m_arn;
129
130 ScraperStatus m_status;
131
133
134 Aws::String m_requestId;
135 bool m_scraperIdHasBeenSet = false;
136 bool m_arnHasBeenSet = false;
137 bool m_statusHasBeenSet = false;
138 bool m_tagsHasBeenSet = false;
139 bool m_requestIdHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace PrometheusService
144} // namespace Aws
CreateScraperResult & WithRequestId(RequestIdT &&value)
CreateScraperResult & WithScraperId(ScraperIdT &&value)
CreateScraperResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PROMETHEUSSERVICE_API CreateScraperResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateScraperResult & WithStatus(StatusT &&value)
AWS_PROMETHEUSSERVICE_API CreateScraperResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateScraperResult & WithTags(TagsT &&value)
AWS_PROMETHEUSSERVICE_API CreateScraperResult()=default
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