AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActorUser.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/UserAccount.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 SecurityHub
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_SECURITYHUB_API ActorUser() = default;
43 AWS_SECURITYHUB_API ActorUser(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SECURITYHUB_API ActorUser& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 ActorUser& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_uidHasBeenSet = true; m_uid = std::forward<UidT>(value); }
68 template<typename UidT = Aws::String>
69 ActorUser& WithUid(UidT&& value) { SetUid(std::forward<UidT>(value)); return *this;}
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) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
80 template<typename TypeT = Aws::String>
81 ActorUser& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
83
85
88 inline const Aws::String& GetCredentialUid() const { return m_credentialUid; }
89 inline bool CredentialUidHasBeenSet() const { return m_credentialUidHasBeenSet; }
90 template<typename CredentialUidT = Aws::String>
91 void SetCredentialUid(CredentialUidT&& value) { m_credentialUidHasBeenSet = true; m_credentialUid = std::forward<CredentialUidT>(value); }
92 template<typename CredentialUidT = Aws::String>
93 ActorUser& WithCredentialUid(CredentialUidT&& value) { SetCredentialUid(std::forward<CredentialUidT>(value)); return *this;}
95
97
100 inline const UserAccount& GetAccount() const { return m_account; }
101 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
102 template<typename AccountT = UserAccount>
103 void SetAccount(AccountT&& value) { m_accountHasBeenSet = true; m_account = std::forward<AccountT>(value); }
104 template<typename AccountT = UserAccount>
105 ActorUser& WithAccount(AccountT&& value) { SetAccount(std::forward<AccountT>(value)); return *this;}
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_uid;
113 bool m_uidHasBeenSet = false;
114
115 Aws::String m_type;
116 bool m_typeHasBeenSet = false;
117
118 Aws::String m_credentialUid;
119 bool m_credentialUidHasBeenSet = false;
120
121 UserAccount m_account;
122 bool m_accountHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace SecurityHub
127} // namespace Aws
const Aws::String & GetUid() const
Definition ActorUser.h:64
ActorUser & WithAccount(AccountT &&value)
Definition ActorUser.h:105
const Aws::String & GetCredentialUid() const
Definition ActorUser.h:88
ActorUser & WithName(NameT &&value)
Definition ActorUser.h:57
ActorUser & WithCredentialUid(CredentialUidT &&value)
Definition ActorUser.h:93
void SetCredentialUid(CredentialUidT &&value)
Definition ActorUser.h:91
void SetName(NameT &&value)
Definition ActorUser.h:55
const UserAccount & GetAccount() const
Definition ActorUser.h:100
ActorUser & WithType(TypeT &&value)
Definition ActorUser.h:81
const Aws::String & GetType() const
Definition ActorUser.h:76
AWS_SECURITYHUB_API ActorUser(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ActorUser()=default
ActorUser & WithUid(UidT &&value)
Definition ActorUser.h:69
void SetType(TypeT &&value)
Definition ActorUser.h:79
void SetAccount(AccountT &&value)
Definition ActorUser.h:103
const Aws::String & GetName() const
Definition ActorUser.h:52
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