AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Account.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/AccountStatus.h>
10#include <aws/organizations/model/AccountJoinedMethod.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Organizations
25{
26namespace Model
27{
28
35 class Account
36 {
37 public:
38 AWS_ORGANIZATIONS_API Account();
39 AWS_ORGANIZATIONS_API Account(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ORGANIZATIONS_API Account& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetId() const{ return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline Account& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline Account& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline Account& WithId(const char* value) { SetId(value); return *this;}
59
61
68 inline const Aws::String& GetArn() const{ return m_arn; }
69 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
70 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
71 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
72 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
73 inline Account& WithArn(const Aws::String& value) { SetArn(value); return *this;}
74 inline Account& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
75 inline Account& WithArn(const char* value) { SetArn(value); return *this;}
77
79
84 inline const Aws::String& GetEmail() const{ return m_email; }
85 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
86 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
87 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
88 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
89 inline Account& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
90 inline Account& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
91 inline Account& WithEmail(const char* value) { SetEmail(value); return *this;}
93
95
101 inline const Aws::String& GetName() const{ return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 inline Account& WithName(const Aws::String& value) { SetName(value); return *this;}
107 inline Account& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 inline Account& WithName(const char* value) { SetName(value); return *this;}
110
112
115 inline const AccountStatus& GetStatus() const{ return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(const AccountStatus& value) { m_statusHasBeenSet = true; m_status = value; }
118 inline void SetStatus(AccountStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
119 inline Account& WithStatus(const AccountStatus& value) { SetStatus(value); return *this;}
120 inline Account& WithStatus(AccountStatus&& value) { SetStatus(std::move(value)); return *this;}
122
124
127 inline const AccountJoinedMethod& GetJoinedMethod() const{ return m_joinedMethod; }
128 inline bool JoinedMethodHasBeenSet() const { return m_joinedMethodHasBeenSet; }
129 inline void SetJoinedMethod(const AccountJoinedMethod& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = value; }
130 inline void SetJoinedMethod(AccountJoinedMethod&& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = std::move(value); }
131 inline Account& WithJoinedMethod(const AccountJoinedMethod& value) { SetJoinedMethod(value); return *this;}
132 inline Account& WithJoinedMethod(AccountJoinedMethod&& value) { SetJoinedMethod(std::move(value)); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetJoinedTimestamp() const{ return m_joinedTimestamp; }
140 inline bool JoinedTimestampHasBeenSet() const { return m_joinedTimestampHasBeenSet; }
141 inline void SetJoinedTimestamp(const Aws::Utils::DateTime& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = value; }
142 inline void SetJoinedTimestamp(Aws::Utils::DateTime&& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = std::move(value); }
143 inline Account& WithJoinedTimestamp(const Aws::Utils::DateTime& value) { SetJoinedTimestamp(value); return *this;}
144 inline Account& WithJoinedTimestamp(Aws::Utils::DateTime&& value) { SetJoinedTimestamp(std::move(value)); return *this;}
146 private:
147
148 Aws::String m_id;
149 bool m_idHasBeenSet = false;
150
151 Aws::String m_arn;
152 bool m_arnHasBeenSet = false;
153
154 Aws::String m_email;
155 bool m_emailHasBeenSet = false;
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
160 AccountStatus m_status;
161 bool m_statusHasBeenSet = false;
162
163 AccountJoinedMethod m_joinedMethod;
164 bool m_joinedMethodHasBeenSet = false;
165
166 Aws::Utils::DateTime m_joinedTimestamp;
167 bool m_joinedTimestampHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace Organizations
172} // namespace Aws
void SetEmail(Aws::String &&value)
Definition Account.h:87
void SetArn(const char *value)
Definition Account.h:72
void SetId(Aws::String &&value)
Definition Account.h:53
Account & WithArn(const Aws::String &value)
Definition Account.h:73
Account & WithName(const char *value)
Definition Account.h:108
Account & WithEmail(Aws::String &&value)
Definition Account.h:90
void SetJoinedTimestamp(const Aws::Utils::DateTime &value)
Definition Account.h:141
void SetId(const char *value)
Definition Account.h:54
const Aws::String & GetArn() const
Definition Account.h:68
const Aws::String & GetId() const
Definition Account.h:50
void SetName(Aws::String &&value)
Definition Account.h:104
Account & WithJoinedTimestamp(Aws::Utils::DateTime &&value)
Definition Account.h:144
Account & WithEmail(const Aws::String &value)
Definition Account.h:89
Account & WithArn(Aws::String &&value)
Definition Account.h:74
AWS_ORGANIZATIONS_API Account(Aws::Utils::Json::JsonView jsonValue)
Account & WithStatus(const AccountStatus &value)
Definition Account.h:119
void SetName(const char *value)
Definition Account.h:105
Account & WithJoinedMethod(AccountJoinedMethod &&value)
Definition Account.h:132
void SetStatus(const AccountStatus &value)
Definition Account.h:117
Account & WithId(const char *value)
Definition Account.h:57
Account & WithStatus(AccountStatus &&value)
Definition Account.h:120
void SetEmail(const Aws::String &value)
Definition Account.h:86
AWS_ORGANIZATIONS_API Account & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEmail(const char *value)
Definition Account.h:88
void SetJoinedMethod(const AccountJoinedMethod &value)
Definition Account.h:129
void SetStatus(AccountStatus &&value)
Definition Account.h:118
const Aws::String & GetEmail() const
Definition Account.h:84
Account & WithJoinedMethod(const AccountJoinedMethod &value)
Definition Account.h:131
Account & WithName(const Aws::String &value)
Definition Account.h:106
const Aws::Utils::DateTime & GetJoinedTimestamp() const
Definition Account.h:139
void SetArn(Aws::String &&value)
Definition Account.h:71
void SetJoinedMethod(AccountJoinedMethod &&value)
Definition Account.h:130
void SetArn(const Aws::String &value)
Definition Account.h:70
void SetName(const Aws::String &value)
Definition Account.h:103
Account & WithJoinedTimestamp(const Aws::Utils::DateTime &value)
Definition Account.h:143
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetJoinedTimestamp(Aws::Utils::DateTime &&value)
Definition Account.h:142
const AccountJoinedMethod & GetJoinedMethod() const
Definition Account.h:127
Account & WithId(const Aws::String &value)
Definition Account.h:55
const Aws::String & GetName() const
Definition Account.h:101
Account & WithEmail(const char *value)
Definition Account.h:91
Account & WithName(Aws::String &&value)
Definition Account.h:107
Account & WithId(Aws::String &&value)
Definition Account.h:56
const AccountStatus & GetStatus() const
Definition Account.h:115
Account & WithArn(const char *value)
Definition Account.h:75
AWS_ORGANIZATIONS_API Account()
void SetId(const Aws::String &value)
Definition Account.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue