AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MessageData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatch {
20namespace Model {
21
33 public:
34 AWS_CLOUDWATCH_API MessageData() = default;
35 AWS_CLOUDWATCH_API MessageData(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCH_API MessageData& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline const Aws::String& GetCode() const { return m_code; }
44 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
45 template <typename CodeT = Aws::String>
46 void SetCode(CodeT&& value) {
47 m_codeHasBeenSet = true;
48 m_code = std::forward<CodeT>(value);
49 }
50 template <typename CodeT = Aws::String>
51 MessageData& WithCode(CodeT&& value) {
52 SetCode(std::forward<CodeT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetValue() const { return m_value; }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 template <typename ValueT = Aws::String>
64 void SetValue(ValueT&& value) {
65 m_valueHasBeenSet = true;
66 m_value = std::forward<ValueT>(value);
67 }
68 template <typename ValueT = Aws::String>
69 MessageData& WithValue(ValueT&& value) {
70 SetValue(std::forward<ValueT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_code;
76
77 Aws::String m_value;
78 bool m_codeHasBeenSet = false;
79 bool m_valueHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace CloudWatch
84} // namespace Aws
AWS_CLOUDWATCH_API MessageData & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetCode() const
Definition MessageData.h:43
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API MessageData()=default
AWS_CLOUDWATCH_API MessageData(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetValue() const
Definition MessageData.h:61
MessageData & WithValue(ValueT &&value)
Definition MessageData.h:69
MessageData & WithCode(CodeT &&value)
Definition MessageData.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String