AWS SDK for C++

AWS SDK for C++ Version 1.11.871

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#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace AppStream {
21namespace Model {
22
30 public:
31 AWS_APPSTREAM_API AgentAccessSetting() = default;
32 AWS_APPSTREAM_API AgentAccessSetting(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_APPSTREAM_API AgentAccessSetting& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgentAccessSetting & WithPermission(Permission value)
AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AgentAccessSetting & WithAgentAction(AgentAction value)
AWS_APPSTREAM_API AgentAccessSetting()=default
AWS_APPSTREAM_API AgentAccessSetting(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)