AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RecordField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCHLOGS_API RecordField() = default;
31 AWS_CLOUDWATCHLOGS_API RecordField(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API RecordField& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 RecordField& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
66 inline bool GetMandatory() const { return m_mandatory; }
67 inline bool MandatoryHasBeenSet() const { return m_mandatoryHasBeenSet; }
68 inline void SetMandatory(bool value) {
69 m_mandatoryHasBeenSet = true;
70 m_mandatory = value;
71 }
72 inline RecordField& WithMandatory(bool value) {
73 SetMandatory(value);
74 return *this;
75 }
77 private:
78 Aws::String m_name;
79
80 bool m_mandatory{false};
81 bool m_nameHasBeenSet = false;
82 bool m_mandatoryHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CloudWatchLogs
87} // namespace Aws
AWS_CLOUDWATCHLOGS_API RecordField & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition RecordField.h:43
AWS_CLOUDWATCHLOGS_API RecordField()=default
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API RecordField(Aws::Utils::Json::JsonView jsonValue)
RecordField & WithName(NameT &&value)
Definition RecordField.h:51
RecordField & WithMandatory(bool value)
Definition RecordField.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue