AWS SDK for C++  1.9.108
AWS SDK for C++
AdminAccount.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 SecurityHub
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 
52  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
53 
58  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
59 
64  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
65 
70  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
71 
76  inline AdminAccount& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
77 
82  inline AdminAccount& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
83 
88  inline AdminAccount& WithAccountId(const char* value) { SetAccountId(value); return *this;}
89 
90 
95  inline const AdminStatus& GetStatus() const{ return m_status; }
96 
101  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 
107  inline void SetStatus(const AdminStatus& value) { m_statusHasBeenSet = true; m_status = value; }
108 
113  inline void SetStatus(AdminStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
114 
119  inline AdminAccount& WithStatus(const AdminStatus& value) { SetStatus(value); return *this;}
120 
125  inline AdminAccount& WithStatus(AdminStatus&& value) { SetStatus(std::move(value)); return *this;}
126 
127  private:
128 
129  Aws::String m_accountId;
130  bool m_accountIdHasBeenSet;
131 
132  AdminStatus m_status;
133  bool m_statusHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace SecurityHub
138 } // namespace Aws
Aws::SecurityHub::Model::AdminAccount::GetAccountId
const Aws::String & GetAccountId() const
Definition: AdminAccount.h:46
Aws::SecurityHub::Model::AdminAccount::operator=
AdminAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::AdminAccount::SetStatus
void SetStatus(AdminStatus &&value)
Definition: AdminAccount.h:113
Aws::SecurityHub::Model::AdminAccount::SetAccountId
void SetAccountId(const char *value)
Definition: AdminAccount.h:70
Aws::SecurityHub::Model::AdminAccount::WithStatus
AdminAccount & WithStatus(AdminStatus &&value)
Definition: AdminAccount.h:125
Aws::SecurityHub::Model::AdminAccount::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: AdminAccount.h:64
Aws::SecurityHub::Model::AdminAccount::WithAccountId
AdminAccount & WithAccountId(Aws::String &&value)
Definition: AdminAccount.h:82
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::AdminStatus
AdminStatus
Definition: AdminStatus.h:17
Aws::SecurityHub::Model::AdminAccount::SetStatus
void SetStatus(const AdminStatus &value)
Definition: AdminAccount.h:107
Aws::SecurityHub::Model::AdminAccount::AdminAccount
AdminAccount()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SecurityHub::Model::AdminAccount::WithAccountId
AdminAccount & WithAccountId(const char *value)
Definition: AdminAccount.h:88
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::AdminAccount::GetStatus
const AdminStatus & GetStatus() const
Definition: AdminAccount.h:95
Aws::SecurityHub::Model::AdminAccount::WithAccountId
AdminAccount & WithAccountId(const Aws::String &value)
Definition: AdminAccount.h:76
Aws::SecurityHub::Model::AdminAccount::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: AdminAccount.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::AdminAccount::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: AdminAccount.h:101
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecurityHub_EXPORTS.h
AdminStatus.h
Aws::SecurityHub::Model::AdminAccount::AdminAccount
AdminAccount(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::AdminAccount::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: AdminAccount.h:58
Aws::SecurityHub::Model::AdminAccount
Definition: AdminAccount.h:34
Aws::SecurityHub::Model::AdminAccount::WithStatus
AdminAccount & WithStatus(const AdminStatus &value)
Definition: AdminAccount.h:119
Aws::SecurityHub::Model::AdminAccount::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const