AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Parent.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/ParentType.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 Parent
34 {
35 public:
36 AWS_ORGANIZATIONS_API Parent() = default;
37 AWS_ORGANIZATIONS_API Parent(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ORGANIZATIONS_API Parent& 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 Parent& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
60
62
65 inline ParentType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(ParentType value) { m_typeHasBeenSet = true; m_type = value; }
68 inline Parent& WithType(ParentType 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
ParentType GetType() const
Definition Parent.h:65
AWS_ORGANIZATIONS_API Parent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API Parent()=default
void SetId(IdT &&value)
Definition Parent.h:56
AWS_ORGANIZATIONS_API Parent(Aws::Utils::Json::JsonView jsonValue)
Parent & WithType(ParentType value)
Definition Parent.h:68
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Definition Parent.h:53
void SetType(ParentType value)
Definition Parent.h:67
Parent & WithId(IdT &&value)
Definition Parent.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue