AWS SDK for C++

AWS SDK for C++ Version 1.11.807

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/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppStream {
24namespace Model {
25
34 public:
35 AWS_APPSTREAM_API AgentAccessConfig() = default;
36 AWS_APPSTREAM_API AgentAccessConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Vector<AgentAccessSetting>& GetSettings() const { return m_settings; }
46 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
47 template <typename SettingsT = Aws::Vector<AgentAccessSetting>>
48 void SetSettings(SettingsT&& value) {
49 m_settingsHasBeenSet = true;
50 m_settings = std::forward<SettingsT>(value);
51 }
52 template <typename SettingsT = Aws::Vector<AgentAccessSetting>>
53 AgentAccessConfig& WithSettings(SettingsT&& value) {
54 SetSettings(std::forward<SettingsT>(value));
55 return *this;
56 }
57 template <typename SettingsT = AgentAccessSetting>
58 AgentAccessConfig& AddSettings(SettingsT&& value) {
59 m_settingsHasBeenSet = true;
60 m_settings.emplace_back(std::forward<SettingsT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetS3BucketArn() const { return m_s3BucketArn; }
71 inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
72 template <typename S3BucketArnT = Aws::String>
73 void SetS3BucketArn(S3BucketArnT&& value) {
74 m_s3BucketArnHasBeenSet = true;
75 m_s3BucketArn = std::forward<S3BucketArnT>(value);
76 }
77 template <typename S3BucketArnT = Aws::String>
78 AgentAccessConfig& WithS3BucketArn(S3BucketArnT&& value) {
79 SetS3BucketArn(std::forward<S3BucketArnT>(value));
80 return *this;
81 }
83
85
89 inline bool GetScreenshotsUploadEnabled() const { return m_screenshotsUploadEnabled; }
90 inline bool ScreenshotsUploadEnabledHasBeenSet() const { return m_screenshotsUploadEnabledHasBeenSet; }
91 inline void SetScreenshotsUploadEnabled(bool value) {
92 m_screenshotsUploadEnabledHasBeenSet = true;
93 m_screenshotsUploadEnabled = value;
94 }
97 return *this;
98 }
100
102
105 inline ScreenResolution GetScreenResolution() const { return m_screenResolution; }
106 inline bool ScreenResolutionHasBeenSet() const { return m_screenResolutionHasBeenSet; }
108 m_screenResolutionHasBeenSet = true;
109 m_screenResolution = value;
110 }
112 SetScreenResolution(value);
113 return *this;
114 }
116
118
121 inline ScreenImageFormat GetScreenImageFormat() const { return m_screenImageFormat; }
122 inline bool ScreenImageFormatHasBeenSet() const { return m_screenImageFormatHasBeenSet; }
124 m_screenImageFormatHasBeenSet = true;
125 m_screenImageFormat = value;
126 }
129 return *this;
130 }
132 private:
134
135 Aws::String m_s3BucketArn;
136
137 bool m_screenshotsUploadEnabled{false};
138
140
142 bool m_settingsHasBeenSet = false;
143 bool m_s3BucketArnHasBeenSet = false;
144 bool m_screenshotsUploadEnabledHasBeenSet = false;
145 bool m_screenResolutionHasBeenSet = false;
146 bool m_screenImageFormatHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace AppStream
151} // namespace Aws
AWS_APPSTREAM_API AgentAccessConfig()=default
AWS_APPSTREAM_API AgentAccessConfig(Aws::Utils::Json::JsonView jsonValue)
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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue