AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDataError.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/model/QueryErrorCode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SESV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SESV2_API MetricDataError();
39 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline MetricDataError& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline MetricDataError& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline MetricDataError& WithId(const char* value) { SetId(value); return *this;}
55
57
63 inline const QueryErrorCode& GetCode() const{ return m_code; }
64 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
65 inline void SetCode(const QueryErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
66 inline void SetCode(QueryErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
67 inline MetricDataError& WithCode(const QueryErrorCode& value) { SetCode(value); return *this;}
68 inline MetricDataError& WithCode(QueryErrorCode&& value) { SetCode(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetMessage() const{ return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
78 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
79 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
80 inline MetricDataError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
81 inline MetricDataError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
82 inline MetricDataError& WithMessage(const char* value) { SetMessage(value); return *this;}
84 private:
85
86 Aws::String m_id;
87 bool m_idHasBeenSet = false;
88
89 QueryErrorCode m_code;
90 bool m_codeHasBeenSet = false;
91
92 Aws::String m_message;
93 bool m_messageHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SESV2
98} // namespace Aws
void SetId(const Aws::String &value)
AWS_SESV2_API MetricDataError(Aws::Utils::Json::JsonView jsonValue)
MetricDataError & WithMessage(const char *value)
const Aws::String & GetMessage() const
MetricDataError & WithMessage(Aws::String &&value)
MetricDataError & WithCode(QueryErrorCode &&value)
void SetId(Aws::String &&value)
void SetCode(QueryErrorCode &&value)
MetricDataError & WithId(Aws::String &&value)
void SetMessage(Aws::String &&value)
MetricDataError & WithId(const Aws::String &value)
void SetCode(const QueryErrorCode &value)
MetricDataError & WithCode(const QueryErrorCode &value)
const QueryErrorCode & GetCode() const
void SetMessage(const Aws::String &value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(const char *value)
MetricDataError & WithId(const char *value)
AWS_SESV2_API MetricDataError & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDataError & WithMessage(const Aws::String &value)
const Aws::String & GetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue