AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeScraperLoggingConfigurationResult.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/ScraperComponent.h>
9#include <aws/amp/model/ScraperLoggingConfigurationStatus.h>
10#include <aws/amp/model/ScraperLoggingDestination.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace PrometheusService {
28namespace Model {
30 public:
31 AWS_PROMETHEUSSERVICE_API DescribeScraperLoggingConfigurationResult() = default;
36
38
41 inline const ScraperLoggingConfigurationStatus& GetStatus() const { return m_status; }
42 template <typename StatusT = ScraperLoggingConfigurationStatus>
43 void SetStatus(StatusT&& value) {
44 m_statusHasBeenSet = true;
45 m_status = std::forward<StatusT>(value);
46 }
47 template <typename StatusT = ScraperLoggingConfigurationStatus>
49 SetStatus(std::forward<StatusT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetScraperId() const { return m_scraperId; }
59 template <typename ScraperIdT = Aws::String>
60 void SetScraperId(ScraperIdT&& value) {
61 m_scraperIdHasBeenSet = true;
62 m_scraperId = std::forward<ScraperIdT>(value);
63 }
64 template <typename ScraperIdT = Aws::String>
66 SetScraperId(std::forward<ScraperIdT>(value));
67 return *this;
68 }
70
72
75 inline const ScraperLoggingDestination& GetLoggingDestination() const { return m_loggingDestination; }
76 template <typename LoggingDestinationT = ScraperLoggingDestination>
77 void SetLoggingDestination(LoggingDestinationT&& value) {
78 m_loggingDestinationHasBeenSet = true;
79 m_loggingDestination = std::forward<LoggingDestinationT>(value);
80 }
81 template <typename LoggingDestinationT = ScraperLoggingDestination>
83 SetLoggingDestination(std::forward<LoggingDestinationT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<ScraperComponent>& GetScraperComponents() const { return m_scraperComponents; }
93 template <typename ScraperComponentsT = Aws::Vector<ScraperComponent>>
94 void SetScraperComponents(ScraperComponentsT&& value) {
95 m_scraperComponentsHasBeenSet = true;
96 m_scraperComponents = std::forward<ScraperComponentsT>(value);
97 }
98 template <typename ScraperComponentsT = Aws::Vector<ScraperComponent>>
100 SetScraperComponents(std::forward<ScraperComponentsT>(value));
101 return *this;
102 }
103 template <typename ScraperComponentsT = ScraperComponent>
105 m_scraperComponentsHasBeenSet = true;
106 m_scraperComponents.emplace_back(std::forward<ScraperComponentsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
116 template <typename ModifiedAtT = Aws::Utils::DateTime>
117 void SetModifiedAt(ModifiedAtT&& value) {
118 m_modifiedAtHasBeenSet = true;
119 m_modifiedAt = std::forward<ModifiedAtT>(value);
120 }
121 template <typename ModifiedAtT = Aws::Utils::DateTime>
123 SetModifiedAt(std::forward<ModifiedAtT>(value));
124 return *this;
125 }
127
129
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template <typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) {
133 m_requestIdHasBeenSet = true;
134 m_requestId = std::forward<RequestIdT>(value);
135 }
136 template <typename RequestIdT = Aws::String>
138 SetRequestId(std::forward<RequestIdT>(value));
139 return *this;
140 }
142 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
143
144 private:
146
147 Aws::String m_scraperId;
148
149 ScraperLoggingDestination m_loggingDestination;
150
151 Aws::Vector<ScraperComponent> m_scraperComponents;
152
153 Aws::Utils::DateTime m_modifiedAt{};
154
155 Aws::String m_requestId;
156 Aws::Http::HttpResponseCode m_HttpResponseCode;
157 bool m_statusHasBeenSet = false;
158 bool m_scraperIdHasBeenSet = false;
159 bool m_loggingDestinationHasBeenSet = false;
160 bool m_scraperComponentsHasBeenSet = false;
161 bool m_modifiedAtHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace PrometheusService
167} // namespace Aws
AWS_PROMETHEUSSERVICE_API DescribeScraperLoggingConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PROMETHEUSSERVICE_API DescribeScraperLoggingConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeScraperLoggingConfigurationResult & WithLoggingDestination(LoggingDestinationT &&value)
DescribeScraperLoggingConfigurationResult & WithModifiedAt(ModifiedAtT &&value)
DescribeScraperLoggingConfigurationResult & WithScraperComponents(ScraperComponentsT &&value)
AWS_PROMETHEUSSERVICE_API DescribeScraperLoggingConfigurationResult()=default
DescribeScraperLoggingConfigurationResult & AddScraperComponents(ScraperComponentsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue