AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
MetricDataError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9#include <aws/sesv2/model/QueryErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SESV2 {
21namespace Model {
22
30 public:
31 AWS_SESV2_API MetricDataError() = default;
34 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 MetricDataError& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
61 inline QueryErrorCode GetCode() const { return m_code; }
62 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
63 inline void SetCode(QueryErrorCode value) {
64 m_codeHasBeenSet = true;
65 m_code = value;
66 }
68 SetCode(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetMessage() const { return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 template <typename MessageT = Aws::String>
80 void SetMessage(MessageT&& value) {
81 m_messageHasBeenSet = true;
82 m_message = std::forward<MessageT>(value);
83 }
84 template <typename MessageT = Aws::String>
85 MetricDataError& WithMessage(MessageT&& value) {
86 SetMessage(std::forward<MessageT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_id;
92
94
95 Aws::String m_message;
96 bool m_idHasBeenSet = false;
97 bool m_codeHasBeenSet = false;
98 bool m_messageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SESV2
103} // namespace Aws
MetricDataError & WithMessage(MessageT &&value)
AWS_SESV2_API MetricDataError(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
MetricDataError & WithCode(QueryErrorCode value)
void SetMessage(MessageT &&value)
MetricDataError & WithId(IdT &&value)
void SetCode(QueryErrorCode value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SESV2_API MetricDataError()=default
AWS_SESV2_API MetricDataError & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue