AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateScraperResult.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{
36 {
37 public:
38 AWS_PROMETHEUSSERVICE_API CreateScraperResult();
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline void SetArn(const Aws::String& value) { m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arn.assign(value); }
51 inline CreateScraperResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline CreateScraperResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline CreateScraperResult& WithArn(const char* value) { SetArn(value); return *this;}
55
57
60 inline const Aws::String& GetScraperId() const{ return m_scraperId; }
61 inline void SetScraperId(const Aws::String& value) { m_scraperId = value; }
62 inline void SetScraperId(Aws::String&& value) { m_scraperId = std::move(value); }
63 inline void SetScraperId(const char* value) { m_scraperId.assign(value); }
64 inline CreateScraperResult& WithScraperId(const Aws::String& value) { SetScraperId(value); return *this;}
65 inline CreateScraperResult& WithScraperId(Aws::String&& value) { SetScraperId(std::move(value)); return *this;}
66 inline CreateScraperResult& WithScraperId(const char* value) { SetScraperId(value); return *this;}
68
70
73 inline const ScraperStatus& GetStatus() const{ return m_status; }
74 inline void SetStatus(const ScraperStatus& value) { m_status = value; }
75 inline void SetStatus(ScraperStatus&& value) { m_status = std::move(value); }
76 inline CreateScraperResult& WithStatus(const ScraperStatus& value) { SetStatus(value); return *this;}
77 inline CreateScraperResult& WithStatus(ScraperStatus&& value) { SetStatus(std::move(value)); return *this;}
79
81
84 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
85 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
86 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
87 inline CreateScraperResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
88 inline CreateScraperResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
89 inline CreateScraperResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
90 inline CreateScraperResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
91 inline CreateScraperResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
92 inline CreateScraperResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
93 inline CreateScraperResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateScraperResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
95 inline CreateScraperResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
97
99
100 inline const Aws::String& GetRequestId() const{ return m_requestId; }
101 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
102 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
103 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
104 inline CreateScraperResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
105 inline CreateScraperResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
106 inline CreateScraperResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
108 private:
109
110 Aws::String m_arn;
111
112 Aws::String m_scraperId;
113
114 ScraperStatus m_status;
115
117
118 Aws::String m_requestId;
119 };
120
121} // namespace Model
122} // namespace PrometheusService
123} // namespace Aws
CreateScraperResult & WithStatus(ScraperStatus &&value)
CreateScraperResult & WithRequestId(Aws::String &&value)
CreateScraperResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateScraperResult & WithScraperId(Aws::String &&value)
CreateScraperResult & WithScraperId(const Aws::String &value)
CreateScraperResult & AddTags(Aws::String &&key, const char *value)
CreateScraperResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateScraperResult & WithArn(const char *value)
CreateScraperResult & WithScraperId(const char *value)
AWS_PROMETHEUSSERVICE_API CreateScraperResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateScraperResult & AddTags(const char *key, Aws::String &&value)
CreateScraperResult & WithArn(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateScraperResult & WithRequestId(const Aws::String &value)
CreateScraperResult & AddTags(Aws::String &&key, const Aws::String &value)
AWS_PROMETHEUSSERVICE_API CreateScraperResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateScraperResult & WithRequestId(const char *value)
CreateScraperResult & WithArn(Aws::String &&value)
CreateScraperResult & WithStatus(const ScraperStatus &value)
CreateScraperResult & AddTags(const Aws::String &key, Aws::String &&value)
CreateScraperResult & AddTags(const Aws::String &key, const Aws::String &value)
CreateScraperResult & AddTags(const char *key, const char *value)
CreateScraperResult & AddTags(Aws::String &&key, Aws::String &&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