AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
9#include <aws/observabilityadmin/model/RecordFormat.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ObservabilityAdmin {
21namespace Model {
22
29class Record {
30 public:
31 AWS_OBSERVABILITYADMIN_API Record() = default;
32 AWS_OBSERVABILITYADMIN_API Record(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OBSERVABILITYADMIN_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetData() const { return m_data; }
41 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
42 template <typename DataT = Aws::String>
43 void SetData(DataT&& value) {
44 m_dataHasBeenSet = true;
45 m_data = std::forward<DataT>(value);
46 }
47 template <typename DataT = Aws::String>
48 Record& WithData(DataT&& value) {
49 SetData(std::forward<DataT>(value));
50 return *this;
51 }
53
55
59 inline RecordFormat GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(RecordFormat value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
65 inline Record& WithType(RecordFormat value) {
66 SetType(value);
67 return *this;
68 }
70 private:
71 Aws::String m_data;
72
74 bool m_dataHasBeenSet = false;
75 bool m_typeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ObservabilityAdmin
80} // namespace Aws
void SetType(RecordFormat value)
Definition Record.h:61
AWS_OBSERVABILITYADMIN_API Record()=default
Record & WithType(RecordFormat value)
Definition Record.h:65
AWS_OBSERVABILITYADMIN_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API Record(Aws::Utils::Json::JsonView jsonValue)
RecordFormat GetType() const
Definition Record.h:59
const Aws::String & GetData() const
Definition Record.h:40
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
Record & WithData(DataT &&value)
Definition Record.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue