AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Child.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/ChildType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Organizations
23{
24namespace Model
25{
26
33 class Child
34 {
35 public:
36 AWS_ORGANIZATIONS_API Child() = default;
37 AWS_ORGANIZATIONS_API Child(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ORGANIZATIONS_API Child& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 Child& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
60
62
65 inline ChildType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(ChildType value) { m_typeHasBeenSet = true; m_type = value; }
68 inline Child& WithType(ChildType value) { SetType(value); return *this;}
70 private:
71
72 Aws::String m_id;
73 bool m_idHasBeenSet = false;
74
76 bool m_typeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Organizations
81} // namespace Aws
void SetId(IdT &&value)
Definition Child.h:56
AWS_ORGANIZATIONS_API Child()=default
Child & WithId(IdT &&value)
Definition Child.h:58
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:68
ChildType GetType() const
Definition Child.h:65
const Aws::String & GetId() const
Definition Child.h:53
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