AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
AgentAccessSetting.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/AgentAction.h>
9#include <aws/appstream/model/Permission.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppStream {
21namespace Model {
22
30 public:
31 AWS_APPSTREAM_API AgentAccessSetting() = default;
32 AWS_APPSTREAM_API AgentAccessSetting(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline AgentAction GetAgentAction() const { return m_agentAction; }
43 inline bool AgentActionHasBeenSet() const { return m_agentActionHasBeenSet; }
44 inline void SetAgentAction(AgentAction value) {
45 m_agentActionHasBeenSet = true;
46 m_agentAction = value;
47 }
49 SetAgentAction(value);
50 return *this;
51 }
53
55
58 inline Permission GetPermission() const { return m_permission; }
59 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
60 inline void SetPermission(Permission value) {
61 m_permissionHasBeenSet = true;
62 m_permission = value;
63 }
65 SetPermission(value);
66 return *this;
67 }
69 private:
70 AgentAction m_agentAction{AgentAction::NOT_SET};
71
72 Permission m_permission{Permission::NOT_SET};
73 bool m_agentActionHasBeenSet = false;
74 bool m_permissionHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace AppStream
79} // namespace Aws
AWS_APPSTREAM_API AgentAccessSetting(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AgentAccessSetting & WithPermission(Permission value)
AgentAccessSetting & WithAgentAction(AgentAction value)
AWS_APPSTREAM_API AgentAccessSetting()=default
AWS_APPSTREAM_API AgentAccessSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue