AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateScraperResult.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/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace PrometheusService
26{
27namespace Model
28{
30 {
31 public:
32 AWS_PROMETHEUSSERVICE_API UpdateScraperResult() = default;
35
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template<typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
44 template<typename ArnT = Aws::String>
45 UpdateScraperResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
47
49
52 inline const Aws::String& GetScraperId() const { return m_scraperId; }
53 template<typename ScraperIdT = Aws::String>
54 void SetScraperId(ScraperIdT&& value) { m_scraperIdHasBeenSet = true; m_scraperId = std::forward<ScraperIdT>(value); }
55 template<typename ScraperIdT = Aws::String>
56 UpdateScraperResult& WithScraperId(ScraperIdT&& value) { SetScraperId(std::forward<ScraperIdT>(value)); return *this;}
58
60
63 inline const ScraperStatus& GetStatus() const { return m_status; }
64 template<typename StatusT = ScraperStatus>
65 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
66 template<typename StatusT = ScraperStatus>
67 UpdateScraperResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
75 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
76 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
77 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 UpdateScraperResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
79 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
80 UpdateScraperResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
81 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
82 }
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template<typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
90 template<typename RequestIdT = Aws::String>
91 UpdateScraperResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
93 private:
94
95 Aws::String m_arn;
96 bool m_arnHasBeenSet = false;
97
98 Aws::String m_scraperId;
99 bool m_scraperIdHasBeenSet = false;
100
101 ScraperStatus m_status;
102 bool m_statusHasBeenSet = false;
103
105 bool m_tagsHasBeenSet = false;
106
107 Aws::String m_requestId;
108 bool m_requestIdHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace PrometheusService
113} // 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