AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/Account.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty
23{
24namespace Model
25{
26
33 class User
34 {
35 public:
36 AWS_GUARDDUTY_API User() = default;
37 AWS_GUARDDUTY_API User(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 User& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetUid() const { return m_uid; }
59 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
60 template<typename UidT = Aws::String>
61 void SetUid(UidT&& value) { m_uidHasBeenSet = true; m_uid = std::forward<UidT>(value); }
62 template<typename UidT = Aws::String>
63 User& WithUid(UidT&& value) { SetUid(std::forward<UidT>(value)); return *this;}
65
67
70 inline const Aws::String& GetType() const { return m_type; }
71 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
72 template<typename TypeT = Aws::String>
73 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
74 template<typename TypeT = Aws::String>
75 User& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
77
79
82 inline const Aws::String& GetCredentialUid() const { return m_credentialUid; }
83 inline bool CredentialUidHasBeenSet() const { return m_credentialUidHasBeenSet; }
84 template<typename CredentialUidT = Aws::String>
85 void SetCredentialUid(CredentialUidT&& value) { m_credentialUidHasBeenSet = true; m_credentialUid = std::forward<CredentialUidT>(value); }
86 template<typename CredentialUidT = Aws::String>
87 User& WithCredentialUid(CredentialUidT&& value) { SetCredentialUid(std::forward<CredentialUidT>(value)); return *this;}
89
91
94 inline const Account& GetAccount() const { return m_account; }
95 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
96 template<typename AccountT = Account>
97 void SetAccount(AccountT&& value) { m_accountHasBeenSet = true; m_account = std::forward<AccountT>(value); }
98 template<typename AccountT = Account>
99 User& WithAccount(AccountT&& value) { SetAccount(std::forward<AccountT>(value)); return *this;}
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_uid;
107 bool m_uidHasBeenSet = false;
108
109 Aws::String m_type;
110 bool m_typeHasBeenSet = false;
111
112 Aws::String m_credentialUid;
113 bool m_credentialUidHasBeenSet = false;
114
115 Account m_account;
116 bool m_accountHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace GuardDuty
121} // namespace Aws
const Aws::String & GetName() const
Definition User.h:46
void SetCredentialUid(CredentialUidT &&value)
Definition User.h:85
User & WithAccount(AccountT &&value)
Definition User.h:99
const Aws::String & GetUid() const
Definition User.h:58
bool CredentialUidHasBeenSet() const
Definition User.h:83
bool NameHasBeenSet() const
Definition User.h:47
User & WithName(NameT &&value)
Definition User.h:51
const Account & GetAccount() const
Definition User.h:94
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
bool AccountHasBeenSet() const
Definition User.h:95
User & WithType(TypeT &&value)
Definition User.h:75
void SetAccount(AccountT &&value)
Definition User.h:97
void SetName(NameT &&value)
Definition User.h:49
const Aws::String & GetCredentialUid() const
Definition User.h:82
bool TypeHasBeenSet() const
Definition User.h:71
void SetUid(UidT &&value)
Definition User.h:61
const Aws::String & GetType() const
Definition User.h:70
AWS_GUARDDUTY_API User()=default
void SetType(TypeT &&value)
Definition User.h:73
AWS_GUARDDUTY_API User & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API User(Aws::Utils::Json::JsonView jsonValue)
User & WithUid(UidT &&value)
Definition User.h:63
User & WithCredentialUid(CredentialUidT &&value)
Definition User.h:87
bool UidHasBeenSet() const
Definition User.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue