AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
User.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/Account.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
29class User {
30 public:
31 AWS_GUARDDUTY_API User() = default;
32 AWS_GUARDDUTY_API User(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API User& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 User& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
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) {
62 m_uidHasBeenSet = true;
63 m_uid = std::forward<UidT>(value);
64 }
65 template <typename UidT = Aws::String>
66 User& WithUid(UidT&& value) {
67 SetUid(std::forward<UidT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 template <typename TypeT = Aws::String>
79 void SetType(TypeT&& value) {
80 m_typeHasBeenSet = true;
81 m_type = std::forward<TypeT>(value);
82 }
83 template <typename TypeT = Aws::String>
84 User& WithType(TypeT&& value) {
85 SetType(std::forward<TypeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetCredentialUid() const { return m_credentialUid; }
95 inline bool CredentialUidHasBeenSet() const { return m_credentialUidHasBeenSet; }
96 template <typename CredentialUidT = Aws::String>
97 void SetCredentialUid(CredentialUidT&& value) {
98 m_credentialUidHasBeenSet = true;
99 m_credentialUid = std::forward<CredentialUidT>(value);
100 }
101 template <typename CredentialUidT = Aws::String>
102 User& WithCredentialUid(CredentialUidT&& value) {
103 SetCredentialUid(std::forward<CredentialUidT>(value));
104 return *this;
105 }
107
109
112 inline const Account& GetAccount() const { return m_account; }
113 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
114 template <typename AccountT = Account>
115 void SetAccount(AccountT&& value) {
116 m_accountHasBeenSet = true;
117 m_account = std::forward<AccountT>(value);
118 }
119 template <typename AccountT = Account>
120 User& WithAccount(AccountT&& value) {
121 SetAccount(std::forward<AccountT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_name;
127
128 Aws::String m_uid;
129
130 Aws::String m_type;
131
132 Aws::String m_credentialUid;
133
134 Account m_account;
135 bool m_nameHasBeenSet = false;
136 bool m_uidHasBeenSet = false;
137 bool m_typeHasBeenSet = false;
138 bool m_credentialUidHasBeenSet = false;
139 bool m_accountHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace GuardDuty
144} // namespace Aws
const Aws::String & GetName() const
Definition User.h:40
void SetCredentialUid(CredentialUidT &&value)
Definition User.h:97
User & WithAccount(AccountT &&value)
Definition User.h:120
const Aws::String & GetUid() const
Definition User.h:58
bool CredentialUidHasBeenSet() const
Definition User.h:95
bool NameHasBeenSet() const
Definition User.h:41
User & WithName(NameT &&value)
Definition User.h:48
const Account & GetAccount() const
Definition User.h:112
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
bool AccountHasBeenSet() const
Definition User.h:113
User & WithType(TypeT &&value)
Definition User.h:84
void SetAccount(AccountT &&value)
Definition User.h:115
void SetName(NameT &&value)
Definition User.h:43
const Aws::String & GetCredentialUid() const
Definition User.h:94
bool TypeHasBeenSet() const
Definition User.h:77
void SetUid(UidT &&value)
Definition User.h:61
const Aws::String & GetType() const
Definition User.h:76
AWS_GUARDDUTY_API User()=default
void SetType(TypeT &&value)
Definition User.h:79
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:66
User & WithCredentialUid(CredentialUidT &&value)
Definition User.h:102
bool UidHasBeenSet() const
Definition User.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue