AWS SDK for C++  1.8.151
AWS SDK for C++
AccountDetail.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GuardDuty
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetAccountId() const{ return m_accountId; }
44 
48  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 
53  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 
58  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
59 
63  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
64 
68  inline AccountDetail& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 
73  inline AccountDetail& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
74 
78  inline AccountDetail& WithAccountId(const char* value) { SetAccountId(value); return *this;}
79 
80 
84  inline const Aws::String& GetEmail() const{ return m_email; }
85 
89  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
90 
94  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
95 
99  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
100 
104  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
105 
109  inline AccountDetail& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
110 
114  inline AccountDetail& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
115 
119  inline AccountDetail& WithEmail(const char* value) { SetEmail(value); return *this;}
120 
121  private:
122 
123  Aws::String m_accountId;
124  bool m_accountIdHasBeenSet;
125 
126  Aws::String m_email;
127  bool m_emailHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace GuardDuty
132 } // namespace Aws
Aws::GuardDuty::Model::AccountDetail::WithAccountId
AccountDetail & WithAccountId(const char *value)
Definition: AccountDetail.h:78
Aws::GuardDuty::Model::AccountDetail::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: AccountDetail.h:58
Aws::GuardDuty::Model::AccountDetail::SetAccountId
void SetAccountId(const char *value)
Definition: AccountDetail.h:63
Aws::GuardDuty::Model::AccountDetail::AccountDetail
AccountDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::AccountDetail::SetEmail
void SetEmail(const char *value)
Definition: AccountDetail.h:104
Aws::GuardDuty::Model::AccountDetail::WithEmail
AccountDetail & WithEmail(const Aws::String &value)
Definition: AccountDetail.h:109
Aws::GuardDuty::Model::AccountDetail::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: AccountDetail.h:89
Aws::GuardDuty::Model::AccountDetail::SetEmail
void SetEmail(Aws::String &&value)
Definition: AccountDetail.h:99
Aws::GuardDuty::Model::AccountDetail::WithAccountId
AccountDetail & WithAccountId(Aws::String &&value)
Definition: AccountDetail.h:73
Aws::GuardDuty::Model::AccountDetail::AccountDetail
AccountDetail()
Aws::GuardDuty::Model::AccountDetail::WithEmail
AccountDetail & WithEmail(const char *value)
Definition: AccountDetail.h:119
Aws::GuardDuty::Model::AccountDetail::SetEmail
void SetEmail(const Aws::String &value)
Definition: AccountDetail.h:94
Aws::GuardDuty::Model::AccountDetail::GetEmail
const Aws::String & GetEmail() const
Definition: AccountDetail.h:84
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::AccountDetail
Definition: AccountDetail.h:32
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::AccountDetail::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: AccountDetail.h:48
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::AccountDetail::WithAccountId
AccountDetail & WithAccountId(const Aws::String &value)
Definition: AccountDetail.h:68
Aws::GuardDuty::Model::AccountDetail::WithEmail
AccountDetail & WithEmail(Aws::String &&value)
Definition: AccountDetail.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::AccountDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::AccountDetail::operator=
AccountDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::AccountDetail::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: AccountDetail.h:53
Aws::GuardDuty::Model::AccountDetail::GetAccountId
const Aws::String & GetAccountId() const
Definition: AccountDetail.h:43
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97