AWS SDK for C++  1.9.108
AWS SDK for C++
Child.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  Child();
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 Child& WithId(const Aws::String& value) { SetId(value); return *this;}
113 
124  inline Child& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
125 
136  inline Child& WithId(const char* value) { SetId(value); return *this;}
137 
138 
142  inline const ChildType& GetType() const{ return m_type; }
143 
147  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
148 
152  inline void SetType(const ChildType& value) { m_typeHasBeenSet = true; m_type = value; }
153 
157  inline void SetType(ChildType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
158 
162  inline Child& WithType(const ChildType& value) { SetType(value); return *this;}
163 
167  inline Child& WithType(ChildType&& value) { SetType(std::move(value)); return *this;}
168 
169  private:
170 
171  Aws::String m_id;
172  bool m_idHasBeenSet;
173 
174  ChildType m_type;
175  bool m_typeHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace Organizations
180 } // namespace Aws
Aws::Organizations::Model::Child::GetType
const ChildType & GetType() const
Definition: Child.h:142
Aws::Organizations::Model::Child::SetId
void SetId(const char *value)
Definition: Child.h:100
Aws::Organizations::Model::Child::Child
Child(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Child::WithId
Child & WithId(const char *value)
Definition: Child.h:136
Aws::Organizations::Model::Child::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Child.h:64
ChildType.h
Aws::Organizations::Model::Child::WithId
Child & WithId(Aws::String &&value)
Definition: Child.h:124
Aws::Organizations::Model::Child::Child
Child()
Aws::Organizations::Model::Child::SetType
void SetType(ChildType &&value)
Definition: Child.h:157
Aws::Organizations::Model::Child::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Child.h:147
Aws::Organizations::Model::Child
Definition: Child.h:34
Aws::Organizations::Model::Child::WithType
Child & WithType(const ChildType &value)
Definition: Child.h:162
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::Child::SetId
void SetId(const Aws::String &value)
Definition: Child.h:76
Aws::Organizations::Model::Child::SetType
void SetType(const ChildType &value)
Definition: Child.h:152
Aws::Organizations::Model::ChildType
ChildType
Definition: ChildType.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::Child::SetId
void SetId(Aws::String &&value)
Definition: Child.h:88
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::Child::operator=
Child & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Child::GetId
const Aws::String & GetId() const
Definition: Child.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::Child::WithType
Child & WithType(ChildType &&value)
Definition: Child.h:167
Organizations_EXPORTS.h
Aws::Organizations::Model::Child::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::Child::WithId
Child & WithId(const Aws::String &value)
Definition: Child.h:112