AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Actor.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/ActorUser.h>
10#include <aws/securityhub/model/ActorSession.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
40 class Actor
41 {
42 public:
43 AWS_SECURITYHUB_API Actor() = default;
44 AWS_SECURITYHUB_API Actor(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECURITYHUB_API Actor& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 Actor& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
60
62
66 inline const ActorUser& GetUser() const { return m_user; }
67 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
68 template<typename UserT = ActorUser>
69 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
70 template<typename UserT = ActorUser>
71 Actor& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
73
75
79 inline const ActorSession& GetSession() const { return m_session; }
80 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
81 template<typename SessionT = ActorSession>
82 void SetSession(SessionT&& value) { m_sessionHasBeenSet = true; m_session = std::forward<SessionT>(value); }
83 template<typename SessionT = ActorSession>
84 Actor& WithSession(SessionT&& value) { SetSession(std::forward<SessionT>(value)); return *this;}
86 private:
87
88 Aws::String m_id;
89 bool m_idHasBeenSet = false;
90
91 ActorUser m_user;
92 bool m_userHasBeenSet = false;
93
94 ActorSession m_session;
95 bool m_sessionHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SecurityHub
100} // namespace Aws
const Aws::String & GetId() const
Definition Actor.h:53
void SetId(IdT &&value)
Definition Actor.h:56
AWS_SECURITYHUB_API Actor(Aws::Utils::Json::JsonView jsonValue)
Actor & WithSession(SessionT &&value)
Definition Actor.h:84
void SetUser(UserT &&value)
Definition Actor.h:69
void SetSession(SessionT &&value)
Definition Actor.h:82
AWS_SECURITYHUB_API Actor & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IdHasBeenSet() const
Definition Actor.h:54
const ActorSession & GetSession() const
Definition Actor.h:79
const ActorUser & GetUser() const
Definition Actor.h:66
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Actor & WithId(IdT &&value)
Definition Actor.h:58
Actor & WithUser(UserT &&value)
Definition Actor.h:71
AWS_SECURITYHUB_API Actor()=default
bool SessionHasBeenSet() const
Definition Actor.h:80
bool UserHasBeenSet() const
Definition Actor.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue