AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
Parent.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/ParentType.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 Parent {
30 public:
31 AWS_ORGANIZATIONS_API Parent() = default;
32 AWS_ORGANIZATIONS_API Parent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ORGANIZATIONS_API Parent& 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 Parent& WithId(IdT&& value) {
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline ParentType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(ParentType value) {
68 m_typeHasBeenSet = true;
69 m_type = value;
70 }
71 inline Parent& WithType(ParentType 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
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:50
AWS_ORGANIZATIONS_API Parent(Aws::Utils::Json::JsonView jsonValue)
Parent & WithType(ParentType value)
Definition Parent.h:71
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Definition Parent.h:47
void SetType(ParentType value)
Definition Parent.h:67
Parent & WithId(IdT &&value)
Definition Parent.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue