AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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
36class ActorUser {
37 public:
38 AWS_SECURITYHUB_API ActorUser() = default;
39 AWS_SECURITYHUB_API ActorUser(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API ActorUser& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 ActorUser& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetUid() const { return m_uid; }
66 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
67 template <typename UidT = Aws::String>
68 void SetUid(UidT&& value) {
69 m_uidHasBeenSet = true;
70 m_uid = std::forward<UidT>(value);
71 }
72 template <typename UidT = Aws::String>
73 ActorUser& WithUid(UidT&& value) {
74 SetUid(std::forward<UidT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 template <typename TypeT = Aws::String>
86 void SetType(TypeT&& value) {
87 m_typeHasBeenSet = true;
88 m_type = std::forward<TypeT>(value);
89 }
90 template <typename TypeT = Aws::String>
91 ActorUser& WithType(TypeT&& value) {
92 SetType(std::forward<TypeT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetCredentialUid() const { return m_credentialUid; }
102 inline bool CredentialUidHasBeenSet() const { return m_credentialUidHasBeenSet; }
103 template <typename CredentialUidT = Aws::String>
104 void SetCredentialUid(CredentialUidT&& value) {
105 m_credentialUidHasBeenSet = true;
106 m_credentialUid = std::forward<CredentialUidT>(value);
107 }
108 template <typename CredentialUidT = Aws::String>
109 ActorUser& WithCredentialUid(CredentialUidT&& value) {
110 SetCredentialUid(std::forward<CredentialUidT>(value));
111 return *this;
112 }
114
116
119 inline const UserAccount& GetAccount() const { return m_account; }
120 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
121 template <typename AccountT = UserAccount>
122 void SetAccount(AccountT&& value) {
123 m_accountHasBeenSet = true;
124 m_account = std::forward<AccountT>(value);
125 }
126 template <typename AccountT = UserAccount>
127 ActorUser& WithAccount(AccountT&& value) {
128 SetAccount(std::forward<AccountT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_name;
134
135 Aws::String m_uid;
136
137 Aws::String m_type;
138
139 Aws::String m_credentialUid;
140
141 UserAccount m_account;
142 bool m_nameHasBeenSet = false;
143 bool m_uidHasBeenSet = false;
144 bool m_typeHasBeenSet = false;
145 bool m_credentialUidHasBeenSet = false;
146 bool m_accountHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace SecurityHub
151} // namespace Aws
const Aws::String & GetUid() const
Definition ActorUser.h:65
ActorUser & WithAccount(AccountT &&value)
Definition ActorUser.h:127
const Aws::String & GetCredentialUid() const
Definition ActorUser.h:101
ActorUser & WithName(NameT &&value)
Definition ActorUser.h:55
ActorUser & WithCredentialUid(CredentialUidT &&value)
Definition ActorUser.h:109
void SetCredentialUid(CredentialUidT &&value)
Definition ActorUser.h:104
void SetName(NameT &&value)
Definition ActorUser.h:50
const UserAccount & GetAccount() const
Definition ActorUser.h:119
ActorUser & WithType(TypeT &&value)
Definition ActorUser.h:91
const Aws::String & GetType() const
Definition ActorUser.h:83
AWS_SECURITYHUB_API ActorUser(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ActorUser()=default
ActorUser & WithUid(UidT &&value)
Definition ActorUser.h:73
void SetType(TypeT &&value)
Definition ActorUser.h:86
void SetAccount(AccountT &&value)
Definition ActorUser.h:122
const Aws::String & GetName() const
Definition ActorUser.h:47
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