AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
EventActor.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9#include <aws/resiliencehubv2/model/ActorType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
29 public:
30 AWS_RESILIENCEHUBV2_API EventActor() = default;
31 AWS_RESILIENCEHUBV2_API EventActor(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUBV2_API EventActor& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline ActorType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(ActorType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
45 inline EventActor& WithType(ActorType value) {
46 SetType(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
56 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
57 template <typename PrincipalIdT = Aws::String>
58 void SetPrincipalId(PrincipalIdT&& value) {
59 m_principalIdHasBeenSet = true;
60 m_principalId = std::forward<PrincipalIdT>(value);
61 }
62 template <typename PrincipalIdT = Aws::String>
63 EventActor& WithPrincipalId(PrincipalIdT&& value) {
64 SetPrincipalId(std::forward<PrincipalIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetAccountId() const { return m_accountId; }
74 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
75 template <typename AccountIdT = Aws::String>
76 void SetAccountId(AccountIdT&& value) {
77 m_accountIdHasBeenSet = true;
78 m_accountId = std::forward<AccountIdT>(value);
79 }
80 template <typename AccountIdT = Aws::String>
81 EventActor& WithAccountId(AccountIdT&& value) {
82 SetAccountId(std::forward<AccountIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetUserName() const { return m_userName; }
92 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
93 template <typename UserNameT = Aws::String>
94 void SetUserName(UserNameT&& value) {
95 m_userNameHasBeenSet = true;
96 m_userName = std::forward<UserNameT>(value);
97 }
98 template <typename UserNameT = Aws::String>
99 EventActor& WithUserName(UserNameT&& value) {
100 SetUserName(std::forward<UserNameT>(value));
101 return *this;
102 }
104 private:
106
107 Aws::String m_principalId;
108
109 Aws::String m_accountId;
110
111 Aws::String m_userName;
112 bool m_typeHasBeenSet = false;
113 bool m_principalIdHasBeenSet = false;
114 bool m_accountIdHasBeenSet = false;
115 bool m_userNameHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace resiliencehubv2
120} // namespace Aws
EventActor & WithUserName(UserNameT &&value)
Definition EventActor.h:99
const Aws::String & GetUserName() const
Definition EventActor.h:91
void SetUserName(UserNameT &&value)
Definition EventActor.h:94
AWS_RESILIENCEHUBV2_API EventActor()=default
void SetAccountId(AccountIdT &&value)
Definition EventActor.h:76
const Aws::String & GetPrincipalId() const
Definition EventActor.h:55
EventActor & WithAccountId(AccountIdT &&value)
Definition EventActor.h:81
EventActor & WithPrincipalId(PrincipalIdT &&value)
Definition EventActor.h:63
void SetPrincipalId(PrincipalIdT &&value)
Definition EventActor.h:58
EventActor & WithType(ActorType value)
Definition EventActor.h:45
AWS_RESILIENCEHUBV2_API EventActor & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAccountId() const
Definition EventActor.h:73
AWS_RESILIENCEHUBV2_API EventActor(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue