AWS SDK for C++  1.9.108
AWS SDK for C++
Parent.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Organizations
23 {
24 namespace Model
25 {
26 
34  {
35  public:
36  Parent();
40 
41 
52  inline const Aws::String& GetId() const{ return m_id; }
53 
64  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 
76  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
77 
88  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
89 
100  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
101 
112  inline Parent& WithId(const Aws::String& value) { SetId(value); return *this;}
113 
124  inline Parent& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
125 
136  inline Parent& WithId(const char* value) { SetId(value); return *this;}
137 
138 
142  inline const ParentType& GetType() const{ return m_type; }
143 
147  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
148 
152  inline void SetType(const ParentType& value) { m_typeHasBeenSet = true; m_type = value; }
153 
157  inline void SetType(ParentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
158 
162  inline Parent& WithType(const ParentType& value) { SetType(value); return *this;}
163 
167  inline Parent& WithType(ParentType&& value) { SetType(std::move(value)); return *this;}
168 
169  private:
170 
171  Aws::String m_id;
172  bool m_idHasBeenSet;
173 
174  ParentType m_type;
175  bool m_typeHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace Organizations
180 } // namespace Aws
Aws::Organizations::Model::Parent::operator=
Parent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Parent::SetId
void SetId(const char *value)
Definition: Parent.h:100
Aws::Organizations::Model::Parent::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Parent.h:147
Aws::Organizations::Model::Parent::WithId
Parent & WithId(const Aws::String &value)
Definition: Parent.h:112
Aws::Organizations::Model::Parent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::Parent::SetType
void SetType(const ParentType &value)
Definition: Parent.h:152
Aws::Organizations::Model::Parent::Parent
Parent(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Parent::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Parent.h:64
Aws::Organizations::Model::Parent::GetType
const ParentType & GetType() const
Definition: Parent.h:142
Aws::Organizations::Model::Parent::Parent
Parent()
Aws::Organizations::Model::Parent::WithType
Parent & WithType(ParentType &&value)
Definition: Parent.h:167
Aws::Organizations::Model::Parent::SetType
void SetType(ParentType &&value)
Definition: Parent.h:157
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::Parent::WithId
Parent & WithId(const char *value)
Definition: Parent.h:136
ParentType.h
Aws::Organizations::Model::Parent
Definition: Parent.h:34
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::Parent::SetId
void SetId(Aws::String &&value)
Definition: Parent.h:88
Aws::Organizations::Model::Parent::WithId
Parent & WithId(Aws::String &&value)
Definition: Parent.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::Parent::WithType
Parent & WithType(const ParentType &value)
Definition: Parent.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::Parent::GetId
const Aws::String & GetId() const
Definition: Parent.h:52
Aws::Organizations::Model::Parent::SetId
void SetId(const Aws::String &value)
Definition: Parent.h:76
Aws::Organizations::Model::ParentType
ParentType
Definition: ParentType.h:17