AWS SDK for C++  1.9.16
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 GuardDuty
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetAdminAccountId() const{ return m_adminAccountId; }
46 
50  inline bool AdminAccountIdHasBeenSet() const { return m_adminAccountIdHasBeenSet; }
51 
55  inline void SetAdminAccountId(const Aws::String& value) { m_adminAccountIdHasBeenSet = true; m_adminAccountId = value; }
56 
60  inline void SetAdminAccountId(Aws::String&& value) { m_adminAccountIdHasBeenSet = true; m_adminAccountId = std::move(value); }
61 
65  inline void SetAdminAccountId(const char* value) { m_adminAccountIdHasBeenSet = true; m_adminAccountId.assign(value); }
66 
70  inline AdminAccount& WithAdminAccountId(const Aws::String& value) { SetAdminAccountId(value); return *this;}
71 
75  inline AdminAccount& WithAdminAccountId(Aws::String&& value) { SetAdminAccountId(std::move(value)); return *this;}
76 
80  inline AdminAccount& WithAdminAccountId(const char* value) { SetAdminAccountId(value); return *this;}
81 
82 
86  inline const AdminStatus& GetAdminStatus() const{ return m_adminStatus; }
87 
91  inline bool AdminStatusHasBeenSet() const { return m_adminStatusHasBeenSet; }
92 
96  inline void SetAdminStatus(const AdminStatus& value) { m_adminStatusHasBeenSet = true; m_adminStatus = value; }
97 
101  inline void SetAdminStatus(AdminStatus&& value) { m_adminStatusHasBeenSet = true; m_adminStatus = std::move(value); }
102 
106  inline AdminAccount& WithAdminStatus(const AdminStatus& value) { SetAdminStatus(value); return *this;}
107 
111  inline AdminAccount& WithAdminStatus(AdminStatus&& value) { SetAdminStatus(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_adminAccountId;
116  bool m_adminAccountIdHasBeenSet;
117 
118  AdminStatus m_adminStatus;
119  bool m_adminStatusHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace GuardDuty
124 } // namespace Aws
Aws::GuardDuty::Model::AdminAccount::SetAdminStatus
void SetAdminStatus(AdminStatus &&value)
Definition: AdminAccount.h:101
Aws::GuardDuty::Model::AdminAccount::SetAdminAccountId
void SetAdminAccountId(const char *value)
Definition: AdminAccount.h:65
Aws::GuardDuty::Model::AdminAccount::SetAdminAccountId
void SetAdminAccountId(const Aws::String &value)
Definition: AdminAccount.h:55
Aws::GuardDuty::Model::AdminStatus
AdminStatus
Definition: AdminStatus.h:17
Aws::GuardDuty::Model::AdminAccount::SetAdminStatus
void SetAdminStatus(const AdminStatus &value)
Definition: AdminAccount.h:96
AdminStatus.h
Aws::GuardDuty::Model::AdminAccount::WithAdminAccountId
AdminAccount & WithAdminAccountId(Aws::String &&value)
Definition: AdminAccount.h:75
Aws::GuardDuty::Model::AdminAccount::AdminStatusHasBeenSet
bool AdminStatusHasBeenSet() const
Definition: AdminAccount.h:91
Aws::GuardDuty::Model::AdminAccount::AdminAccount
AdminAccount(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::AdminAccount::WithAdminStatus
AdminAccount & WithAdminStatus(const AdminStatus &value)
Definition: AdminAccount.h:106
Aws::GuardDuty::Model::AdminAccount::GetAdminStatus
const AdminStatus & GetAdminStatus() const
Definition: AdminAccount.h:86
Aws::GuardDuty::Model::AdminAccount
Definition: AdminAccount.h:34
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::AdminAccount::AdminAccount
AdminAccount()
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::AdminAccount::WithAdminAccountId
AdminAccount & WithAdminAccountId(const char *value)
Definition: AdminAccount.h:80
Aws::GuardDuty::Model::AdminAccount::GetAdminAccountId
const Aws::String & GetAdminAccountId() const
Definition: AdminAccount.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::AdminAccount::AdminAccountIdHasBeenSet
bool AdminAccountIdHasBeenSet() const
Definition: AdminAccount.h:50
Aws::GuardDuty::Model::AdminAccount::WithAdminStatus
AdminAccount & WithAdminStatus(AdminStatus &&value)
Definition: AdminAccount.h:111
Aws::GuardDuty::Model::AdminAccount::operator=
AdminAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::AdminAccount::SetAdminAccountId
void SetAdminAccountId(Aws::String &&value)
Definition: AdminAccount.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::AdminAccount::WithAdminAccountId
AdminAccount & WithAdminAccountId(const Aws::String &value)
Definition: AdminAccount.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::AdminAccount::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const