AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ActorUser.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/UserAccount.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
35class ActorUser {
36 public:
37 AWS_SECURITYHUB_API ActorUser() = default;
38 AWS_SECURITYHUB_API ActorUser(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API ActorUser& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 ActorUser& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetUid() const { return m_uid; }
65 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
66 template <typename UidT = Aws::String>
67 void SetUid(UidT&& value) {
68 m_uidHasBeenSet = true;
69 m_uid = std::forward<UidT>(value);
70 }
71 template <typename UidT = Aws::String>
72 ActorUser& WithUid(UidT&& value) {
73 SetUid(std::forward<UidT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 template <typename TypeT = Aws::String>
85 void SetType(TypeT&& value) {
86 m_typeHasBeenSet = true;
87 m_type = std::forward<TypeT>(value);
88 }
89 template <typename TypeT = Aws::String>
90 ActorUser& WithType(TypeT&& value) {
91 SetType(std::forward<TypeT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetCredentialUid() const { return m_credentialUid; }
101 inline bool CredentialUidHasBeenSet() const { return m_credentialUidHasBeenSet; }
102 template <typename CredentialUidT = Aws::String>
103 void SetCredentialUid(CredentialUidT&& value) {
104 m_credentialUidHasBeenSet = true;
105 m_credentialUid = std::forward<CredentialUidT>(value);
106 }
107 template <typename CredentialUidT = Aws::String>
108 ActorUser& WithCredentialUid(CredentialUidT&& value) {
109 SetCredentialUid(std::forward<CredentialUidT>(value));
110 return *this;
111 }
113
115
118 inline const UserAccount& GetAccount() const { return m_account; }
119 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
120 template <typename AccountT = UserAccount>
121 void SetAccount(AccountT&& value) {
122 m_accountHasBeenSet = true;
123 m_account = std::forward<AccountT>(value);
124 }
125 template <typename AccountT = UserAccount>
126 ActorUser& WithAccount(AccountT&& value) {
127 SetAccount(std::forward<AccountT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_name;
133
134 Aws::String m_uid;
135
136 Aws::String m_type;
137
138 Aws::String m_credentialUid;
139
140 UserAccount m_account;
141 bool m_nameHasBeenSet = false;
142 bool m_uidHasBeenSet = false;
143 bool m_typeHasBeenSet = false;
144 bool m_credentialUidHasBeenSet = false;
145 bool m_accountHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace SecurityHub
150} // namespace Aws
const Aws::String & GetUid() const
Definition ActorUser.h:64
ActorUser & WithAccount(AccountT &&value)
Definition ActorUser.h:126
const Aws::String & GetCredentialUid() const
Definition ActorUser.h:100
ActorUser & WithName(NameT &&value)
Definition ActorUser.h:54
ActorUser & WithCredentialUid(CredentialUidT &&value)
Definition ActorUser.h:108
void SetCredentialUid(CredentialUidT &&value)
Definition ActorUser.h:103
void SetName(NameT &&value)
Definition ActorUser.h:49
const UserAccount & GetAccount() const
Definition ActorUser.h:118
ActorUser & WithType(TypeT &&value)
Definition ActorUser.h:90
const Aws::String & GetType() const
Definition ActorUser.h:82
AWS_SECURITYHUB_API ActorUser(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ActorUser()=default
ActorUser & WithUid(UidT &&value)
Definition ActorUser.h:72
void SetType(TypeT &&value)
Definition ActorUser.h:85
void SetAccount(AccountT &&value)
Definition ActorUser.h:121
const Aws::String & GetName() const
Definition ActorUser.h:46
AWS_SECURITYHUB_API ActorUser & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue