AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
DescribeMetricsExportResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
10#include <aws/resiliencehub/model/MetricsExportStatusType.h>
11#include <aws/resiliencehub/model/S3Location.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ResilienceHub {
25namespace Model {
27 public:
28 AWS_RESILIENCEHUB_API DescribeMetricsExportResult() = default;
31
33
36 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
37 template <typename ErrorMessageT = Aws::String>
38 void SetErrorMessage(ErrorMessageT&& value) {
39 m_errorMessageHasBeenSet = true;
40 m_errorMessage = std::forward<ErrorMessageT>(value);
41 }
42 template <typename ErrorMessageT = Aws::String>
44 SetErrorMessage(std::forward<ErrorMessageT>(value));
45 return *this;
46 }
48
50
54 inline const S3Location& GetExportLocation() const { return m_exportLocation; }
55 template <typename ExportLocationT = S3Location>
56 void SetExportLocation(ExportLocationT&& value) {
57 m_exportLocationHasBeenSet = true;
58 m_exportLocation = std::forward<ExportLocationT>(value);
59 }
60 template <typename ExportLocationT = S3Location>
62 SetExportLocation(std::forward<ExportLocationT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetMetricsExportId() const { return m_metricsExportId; }
72 template <typename MetricsExportIdT = Aws::String>
73 void SetMetricsExportId(MetricsExportIdT&& value) {
74 m_metricsExportIdHasBeenSet = true;
75 m_metricsExportId = std::forward<MetricsExportIdT>(value);
76 }
77 template <typename MetricsExportIdT = Aws::String>
79 SetMetricsExportId(std::forward<MetricsExportIdT>(value));
80 return *this;
81 }
83
85
88 inline MetricsExportStatusType GetStatus() const { return m_status; }
90 m_statusHasBeenSet = true;
91 m_status = value;
92 }
94 SetStatus(value);
95 return *this;
96 }
98
100
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 template <typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) {
104 m_requestIdHasBeenSet = true;
105 m_requestId = std::forward<RequestIdT>(value);
106 }
107 template <typename RequestIdT = Aws::String>
109 SetRequestId(std::forward<RequestIdT>(value));
110 return *this;
111 }
113 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
114
115 private:
116 Aws::String m_errorMessage;
117
118 S3Location m_exportLocation;
119
120 Aws::String m_metricsExportId;
121
123
124 Aws::String m_requestId;
125 Aws::Http::HttpResponseCode m_HttpResponseCode;
126 bool m_errorMessageHasBeenSet = false;
127 bool m_exportLocationHasBeenSet = false;
128 bool m_metricsExportIdHasBeenSet = false;
129 bool m_statusHasBeenSet = false;
130 bool m_requestIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ResilienceHub
135} // namespace Aws
AWS_RESILIENCEHUB_API DescribeMetricsExportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeMetricsExportResult & WithMetricsExportId(MetricsExportIdT &&value)
DescribeMetricsExportResult & WithRequestId(RequestIdT &&value)
DescribeMetricsExportResult & WithExportLocation(ExportLocationT &&value)
AWS_RESILIENCEHUB_API DescribeMetricsExportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_RESILIENCEHUB_API DescribeMetricsExportResult()=default
DescribeMetricsExportResult & WithStatus(MetricsExportStatusType value)
DescribeMetricsExportResult & WithErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue