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>
20namespace CloudWatchOmni {
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;
43 template <
typename NameT = Aws::String>
45 m_nameHasBeenSet =
true;
46 m_name = std::forward<NameT>(value);
48 template <
typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
61 template <
typename ChildrenT = Aws::Vector<Field>>
63 m_childrenHasBeenSet =
true;
64 m_children = std::forward<ChildrenT>(value);
66 template <
typename ChildrenT = Aws::Vector<Field>>
71 template <
typename ChildrenT = Field>
73 m_childrenHasBeenSet =
true;
74 m_children.emplace_back(std::forward<ChildrenT>(value));
82 bool m_nameHasBeenSet =
false;
83 bool m_childrenHasBeenSet =
false;
const Aws::String & GetName() const
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)
bool NameHasBeenSet() const
Field & AddChildren(ChildrenT &&value)
void SetChildren(ChildrenT &&value)
bool ChildrenHasBeenSet() const
AWS_CLOUDWATCHOMNI_API Field(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetName(NameT &&value)
const Aws::Vector< Field > & GetChildren() const
Field & WithChildren(ChildrenT &&value)
AWS_CLOUDWATCHOMNI_API Field()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector