AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
Account.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/detective/Detective_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Detective {
20namespace Model {
21
28class Account {
29 public:
30 AWS_DETECTIVE_API Account() = default;
31 AWS_DETECTIVE_API Account(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DETECTIVE_API Account& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAccountId() const { return m_accountId; }
40 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
41 template <typename AccountIdT = Aws::String>
42 void SetAccountId(AccountIdT&& value) {
43 m_accountIdHasBeenSet = true;
44 m_accountId = std::forward<AccountIdT>(value);
45 }
46 template <typename AccountIdT = Aws::String>
47 Account& WithAccountId(AccountIdT&& value) {
48 SetAccountId(std::forward<AccountIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
59 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
60 template <typename EmailAddressT = Aws::String>
61 void SetEmailAddress(EmailAddressT&& value) {
62 m_emailAddressHasBeenSet = true;
63 m_emailAddress = std::forward<EmailAddressT>(value);
64 }
65 template <typename EmailAddressT = Aws::String>
66 Account& WithEmailAddress(EmailAddressT&& value) {
67 SetEmailAddress(std::forward<EmailAddressT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_accountId;
73
74 Aws::String m_emailAddress;
75 bool m_accountIdHasBeenSet = false;
76 bool m_emailAddressHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Detective
81} // namespace Aws
void SetAccountId(AccountIdT &&value)
Definition Account.h:42
AWS_DETECTIVE_API Account(Aws::Utils::Json::JsonView jsonValue)
Account & WithAccountId(AccountIdT &&value)
Definition Account.h:47
AWS_DETECTIVE_API Account & operator=(Aws::Utils::Json::JsonView jsonValue)
Account & WithEmailAddress(EmailAddressT &&value)
Definition Account.h:66
bool AccountIdHasBeenSet() const
Definition Account.h:40
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetEmailAddress() const
Definition Account.h:58
AWS_DETECTIVE_API Account()=default
bool EmailAddressHasBeenSet() const
Definition Account.h:59
void SetEmailAddress(EmailAddressT &&value)
Definition Account.h:61
const Aws::String & GetAccountId() const
Definition Account.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue