AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
58 inline Parent& WithId(const Aws::String& value) { SetId(value); return *this;}
59 inline Parent& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
60 inline Parent& WithId(const char* value) { SetId(value); return *this;}
62
64
67 inline const ParentType& GetType() const{ return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(const ParentType& value) { m_typeHasBeenSet = true; m_type = value; }
70 inline void SetType(ParentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
71 inline Parent& WithType(const ParentType& value) { SetType(value); return *this;}
72 inline Parent& WithType(ParentType&& value) { SetType(std::move(value)); return *this;}
74 private:
75
76 Aws::String m_id;
77 bool m_idHasBeenSet = false;
78
79 ParentType m_type;
80 bool m_typeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Organizations
85} // namespace Aws
void SetId(const Aws::String &value)
Definition Parent.h:55
Parent & WithId(Aws::String &&value)
Definition Parent.h:59
void SetId(Aws::String &&value)
Definition Parent.h:56
Parent & WithId(const char *value)
Definition Parent.h:60
void SetId(const char *value)
Definition Parent.h:57
AWS_ORGANIZATIONS_API Parent & operator=(Aws::Utils::Json::JsonView jsonValue)
Parent & WithType(const ParentType &value)
Definition Parent.h:71
AWS_ORGANIZATIONS_API Parent(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API Parent()
Parent & WithType(ParentType &&value)
Definition Parent.h:72
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Definition Parent.h:53
const ParentType & GetType() const
Definition Parent.h:67
void SetType(const ParentType &value)
Definition Parent.h:69
void SetType(ParentType &&value)
Definition Parent.h:70
Parent & WithId(const Aws::String &value)
Definition Parent.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue