AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
Field.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatchOmni {
21namespace Model {
22
29class Field {
30 public:
31 AWS_CLOUDWATCHOMNI_API Field() = default;
32 AWS_CLOUDWATCHOMNI_API Field(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCHOMNI_API Field& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 Field& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Field>& GetChildren() const { return m_children; }
60 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
61 template <typename ChildrenT = Aws::Vector<Field>>
62 void SetChildren(ChildrenT&& value) {
63 m_childrenHasBeenSet = true;
64 m_children = std::forward<ChildrenT>(value);
65 }
66 template <typename ChildrenT = Aws::Vector<Field>>
67 Field& WithChildren(ChildrenT&& value) {
68 SetChildren(std::forward<ChildrenT>(value));
69 return *this;
70 }
71 template <typename ChildrenT = Field>
72 Field& AddChildren(ChildrenT&& value) {
73 m_childrenHasBeenSet = true;
74 m_children.emplace_back(std::forward<ChildrenT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_name;
80
81 Aws::Vector<Field> m_children;
82 bool m_nameHasBeenSet = false;
83 bool m_childrenHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace CloudWatchOmni
88} // namespace Aws
const Aws::String & GetName() const
Definition Field.h:41
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API Field & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Field & WithName(NameT &&value)
Definition Field.h:49
Field & AddChildren(ChildrenT &&value)
Definition Field.h:72
void SetChildren(ChildrenT &&value)
Definition Field.h:62
bool ChildrenHasBeenSet() const
Definition Field.h:60
AWS_CLOUDWATCHOMNI_API Field(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetName(NameT &&value)
Definition Field.h:44
const Aws::Vector< Field > & GetChildren() const
Definition Field.h:59
Field & WithChildren(ChildrenT &&value)
Definition Field.h:67
AWS_CLOUDWATCHOMNI_API Field()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector