AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 Account& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
66 inline const Aws::String& GetArn() const { return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 template<typename ArnT = Aws::String>
69 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
70 template<typename ArnT = Aws::String>
71 Account& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
73
75
80 inline const Aws::String& GetEmail() const { return m_email; }
81 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
82 template<typename EmailT = Aws::String>
83 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
84 template<typename EmailT = Aws::String>
85 Account& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
87
89
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template<typename NameT = Aws::String>
98 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
99 template<typename NameT = Aws::String>
100 Account& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
102
104
107 inline AccountStatus GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 inline void SetStatus(AccountStatus value) { m_statusHasBeenSet = true; m_status = value; }
110 inline Account& WithStatus(AccountStatus value) { SetStatus(value); return *this;}
112
114
117 inline AccountJoinedMethod GetJoinedMethod() const { return m_joinedMethod; }
118 inline bool JoinedMethodHasBeenSet() const { return m_joinedMethodHasBeenSet; }
119 inline void SetJoinedMethod(AccountJoinedMethod value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = value; }
120 inline Account& WithJoinedMethod(AccountJoinedMethod value) { SetJoinedMethod(value); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetJoinedTimestamp() const { return m_joinedTimestamp; }
128 inline bool JoinedTimestampHasBeenSet() const { return m_joinedTimestampHasBeenSet; }
129 template<typename JoinedTimestampT = Aws::Utils::DateTime>
130 void SetJoinedTimestamp(JoinedTimestampT&& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = std::forward<JoinedTimestampT>(value); }
131 template<typename JoinedTimestampT = Aws::Utils::DateTime>
132 Account& WithJoinedTimestamp(JoinedTimestampT&& value) { SetJoinedTimestamp(std::forward<JoinedTimestampT>(value)); return *this;}
134 private:
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
139 Aws::String m_arn;
140 bool m_arnHasBeenSet = false;
141
142 Aws::String m_email;
143 bool m_emailHasBeenSet = false;
144
145 Aws::String m_name;
146 bool m_nameHasBeenSet = false;
147
149 bool m_statusHasBeenSet = false;
150
152 bool m_joinedMethodHasBeenSet = false;
153
154 Aws::Utils::DateTime m_joinedTimestamp{};
155 bool m_joinedTimestampHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Organizations
160} // namespace Aws
AccountStatus GetStatus() const
Definition Account.h:107
Account & WithEmail(EmailT &&value)
Definition Account.h:85
void SetArn(ArnT &&value)
Definition Account.h:69
Account & WithJoinedMethod(AccountJoinedMethod value)
Definition Account.h:120
void SetName(NameT &&value)
Definition Account.h:98
Account & WithArn(ArnT &&value)
Definition Account.h:71
const Aws::String & GetArn() const
Definition Account.h:66
const Aws::String & GetId() const
Definition Account.h:50
void SetJoinedTimestamp(JoinedTimestampT &&value)
Definition Account.h:130
AWS_ORGANIZATIONS_API Account(Aws::Utils::Json::JsonView jsonValue)
void SetJoinedMethod(AccountJoinedMethod value)
Definition Account.h:119
Account & WithJoinedTimestamp(JoinedTimestampT &&value)
Definition Account.h:132
Account & WithName(NameT &&value)
Definition Account.h:100
AWS_ORGANIZATIONS_API Account & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(AccountStatus value)
Definition Account.h:109
const Aws::String & GetEmail() const
Definition Account.h:80
AWS_ORGANIZATIONS_API Account()=default
const Aws::Utils::DateTime & GetJoinedTimestamp() const
Definition Account.h:127
Account & WithStatus(AccountStatus value)
Definition Account.h:110
AccountJoinedMethod GetJoinedMethod() const
Definition Account.h:117
Account & WithId(IdT &&value)
Definition Account.h:55
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEmail(EmailT &&value)
Definition Account.h:83
const Aws::String & GetName() const
Definition Account.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue