AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
AgentAccessConfig.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/AgentAccessSetting.h>
9#include <aws/appstream/model/ScreenImageFormat.h>
10#include <aws/appstream/model/ScreenResolution.h>
11#include <aws/appstream/model/UserControlMode.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppStream {
25namespace Model {
26
35 public:
36 AWS_APPSTREAM_API AgentAccessConfig() = default;
37 AWS_APPSTREAM_API AgentAccessConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::Vector<AgentAccessSetting>& GetSettings() const { return m_settings; }
47 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
48 template <typename SettingsT = Aws::Vector<AgentAccessSetting>>
49 void SetSettings(SettingsT&& value) {
50 m_settingsHasBeenSet = true;
51 m_settings = std::forward<SettingsT>(value);
52 }
53 template <typename SettingsT = Aws::Vector<AgentAccessSetting>>
54 AgentAccessConfig& WithSettings(SettingsT&& value) {
55 SetSettings(std::forward<SettingsT>(value));
56 return *this;
57 }
58 template <typename SettingsT = AgentAccessSetting>
59 AgentAccessConfig& AddSettings(SettingsT&& value) {
60 m_settingsHasBeenSet = true;
61 m_settings.emplace_back(std::forward<SettingsT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetS3BucketArn() const { return m_s3BucketArn; }
72 inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
73 template <typename S3BucketArnT = Aws::String>
74 void SetS3BucketArn(S3BucketArnT&& value) {
75 m_s3BucketArnHasBeenSet = true;
76 m_s3BucketArn = std::forward<S3BucketArnT>(value);
77 }
78 template <typename S3BucketArnT = Aws::String>
79 AgentAccessConfig& WithS3BucketArn(S3BucketArnT&& value) {
80 SetS3BucketArn(std::forward<S3BucketArnT>(value));
81 return *this;
82 }
84
86
90 inline bool GetScreenshotsUploadEnabled() const { return m_screenshotsUploadEnabled; }
91 inline bool ScreenshotsUploadEnabledHasBeenSet() const { return m_screenshotsUploadEnabledHasBeenSet; }
92 inline void SetScreenshotsUploadEnabled(bool value) {
93 m_screenshotsUploadEnabledHasBeenSet = true;
94 m_screenshotsUploadEnabled = value;
95 }
98 return *this;
99 }
101
103
106 inline ScreenResolution GetScreenResolution() const { return m_screenResolution; }
107 inline bool ScreenResolutionHasBeenSet() const { return m_screenResolutionHasBeenSet; }
109 m_screenResolutionHasBeenSet = true;
110 m_screenResolution = value;
111 }
113 SetScreenResolution(value);
114 return *this;
115 }
117
119
122 inline ScreenImageFormat GetScreenImageFormat() const { return m_screenImageFormat; }
123 inline bool ScreenImageFormatHasBeenSet() const { return m_screenImageFormatHasBeenSet; }
125 m_screenImageFormatHasBeenSet = true;
126 m_screenImageFormat = value;
127 }
130 return *this;
131 }
133
135
139 inline UserControlMode GetUserControlMode() const { return m_userControlMode; }
140 inline bool UserControlModeHasBeenSet() const { return m_userControlModeHasBeenSet; }
142 m_userControlModeHasBeenSet = true;
143 m_userControlMode = value;
144 }
146 SetUserControlMode(value);
147 return *this;
148 }
150 private:
152
153 Aws::String m_s3BucketArn;
154
155 bool m_screenshotsUploadEnabled{false};
156
158
160
161 UserControlMode m_userControlMode{UserControlMode::NOT_SET};
162 bool m_settingsHasBeenSet = false;
163 bool m_s3BucketArnHasBeenSet = false;
164 bool m_screenshotsUploadEnabledHasBeenSet = false;
165 bool m_screenResolutionHasBeenSet = false;
166 bool m_screenImageFormatHasBeenSet = false;
167 bool m_userControlModeHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace AppStream
172} // namespace Aws
AWS_APPSTREAM_API AgentAccessConfig()=default
AWS_APPSTREAM_API AgentAccessConfig(Aws::Utils::Json::JsonView jsonValue)
void SetUserControlMode(UserControlMode value)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
ScreenImageFormat GetScreenImageFormat() const
void SetScreenResolution(ScreenResolution value)
const Aws::Vector< AgentAccessSetting > & GetSettings() const
AgentAccessConfig & WithScreenImageFormat(ScreenImageFormat value)
AgentAccessConfig & WithSettings(SettingsT &&value)
AgentAccessConfig & WithScreenshotsUploadEnabled(bool value)
AgentAccessConfig & WithScreenResolution(ScreenResolution value)
const Aws::String & GetS3BucketArn() const
AWS_APPSTREAM_API AgentAccessConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScreenImageFormat(ScreenImageFormat value)
AgentAccessConfig & AddSettings(SettingsT &&value)
AgentAccessConfig & WithS3BucketArn(S3BucketArnT &&value)
void SetS3BucketArn(S3BucketArnT &&value)
AgentAccessConfig & WithUserControlMode(UserControlMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue