AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
Child.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/organizations/Organizations_EXPORTS.h>
9#include <aws/organizations/model/ChildType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Organizations {
21namespace Model {
22
29class Child {
30 public:
31 AWS_ORGANIZATIONS_API Child() = default;
32 AWS_ORGANIZATIONS_API Child(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ORGANIZATIONS_API Child& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
55 Child& WithId(IdT&& value) {
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline ChildType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(ChildType value) {
68 m_typeHasBeenSet = true;
69 m_type = value;
70 }
71 inline Child& WithType(ChildType value) {
72 SetType(value);
73 return *this;
74 }
76 private:
77 Aws::String m_id;
78
80 bool m_idHasBeenSet = false;
81 bool m_typeHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Organizations
86} // namespace Aws
void SetId(IdT &&value)
Definition Child.h:50
AWS_ORGANIZATIONS_API Child()=default
Child & WithId(IdT &&value)
Definition Child.h:55
AWS_ORGANIZATIONS_API Child & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API Child(Aws::Utils::Json::JsonView jsonValue)
void SetType(ChildType value)
Definition Child.h:67
Child & WithType(ChildType value)
Definition Child.h:71
ChildType GetType() const
Definition Child.h:65
const Aws::String & GetId() const
Definition Child.h:47
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue