AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
OrganizationNode.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
10#include <aws/servicecatalog/model/OrganizationNodeType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ServiceCatalog {
21namespace Model {
22
29 public:
30 AWS_SERVICECATALOG_API OrganizationNode() = default;
31 AWS_SERVICECATALOG_API OrganizationNode(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_SERVICECATALOG_API OrganizationNode& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline OrganizationNodeType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(OrganizationNodeType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetValue() const { return m_value; }
56 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 template <typename ValueT = Aws::String>
58 void SetValue(ValueT&& value) {
59 m_valueHasBeenSet = true;
60 m_value = std::forward<ValueT>(value);
61 }
62 template <typename ValueT = Aws::String>
63 OrganizationNode& WithValue(ValueT&& value) {
64 SetValue(std::forward<ValueT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_value;
72 bool m_typeHasBeenSet = false;
73 bool m_valueHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace ServiceCatalog
78} // namespace Aws
OrganizationNode & WithValue(ValueT &&value)
void SetType(OrganizationNodeType value)
OrganizationNode & WithType(OrganizationNodeType value)
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_SERVICECATALOG_API OrganizationNode(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SERVICECATALOG_API OrganizationNode & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SERVICECATALOG_API OrganizationNode()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String