AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
ImageBuilderAgentAccessConfig.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#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace AppStream {
25namespace Model {
26
35 public:
36 AWS_APPSTREAM_API ImageBuilderAgentAccessConfig() = default;
37 AWS_APPSTREAM_API ImageBuilderAgentAccessConfig(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_APPSTREAM_API ImageBuilderAgentAccessConfig& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
47 inline const Aws::Vector<AgentAccessSetting>& GetSettings() const { return m_settings; }
48 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
49 template <typename SettingsT = Aws::Vector<AgentAccessSetting>>
50 void SetSettings(SettingsT&& value) {
51 m_settingsHasBeenSet = true;
52 m_settings = std::forward<SettingsT>(value);
53 }
54 template <typename SettingsT = Aws::Vector<AgentAccessSetting>>
56 SetSettings(std::forward<SettingsT>(value));
57 return *this;
58 }
59 template <typename SettingsT = AgentAccessSetting>
61 m_settingsHasBeenSet = true;
62 m_settings.emplace_back(std::forward<SettingsT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetS3BucketArn() const { return m_s3BucketArn; }
73 inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
74 template <typename S3BucketArnT = Aws::String>
75 void SetS3BucketArn(S3BucketArnT&& value) {
76 m_s3BucketArnHasBeenSet = true;
77 m_s3BucketArn = std::forward<S3BucketArnT>(value);
78 }
79 template <typename S3BucketArnT = Aws::String>
81 SetS3BucketArn(std::forward<S3BucketArnT>(value));
82 return *this;
83 }
85
87
91 inline bool GetScreenshotsUploadEnabled() const { return m_screenshotsUploadEnabled; }
92 inline bool ScreenshotsUploadEnabledHasBeenSet() const { return m_screenshotsUploadEnabledHasBeenSet; }
93 inline void SetScreenshotsUploadEnabled(bool value) {
94 m_screenshotsUploadEnabledHasBeenSet = true;
95 m_screenshotsUploadEnabled = value;
96 }
99 return *this;
100 }
102
104
108 inline ScreenResolution GetScreenResolution() const { return m_screenResolution; }
109 inline bool ScreenResolutionHasBeenSet() const { return m_screenResolutionHasBeenSet; }
111 m_screenResolutionHasBeenSet = true;
112 m_screenResolution = value;
113 }
119
121
125 inline ScreenImageFormat GetScreenImageFormat() const { return m_screenImageFormat; }
126 inline bool ScreenImageFormatHasBeenSet() const { return m_screenImageFormatHasBeenSet; }
128 m_screenImageFormatHasBeenSet = true;
129 m_screenImageFormat = value;
130 }
136
138
145 inline UserControlMode GetUserControlMode() const { return m_userControlMode; }
146 inline bool UserControlModeHasBeenSet() const { return m_userControlModeHasBeenSet; }
148 m_userControlModeHasBeenSet = true;
149 m_userControlMode = value;
150 }
152 SetUserControlMode(value);
153 return *this;
154 }
156 private:
158
159 Aws::String m_s3BucketArn;
160
161 bool m_screenshotsUploadEnabled{false};
162
164
166
167 UserControlMode m_userControlMode{UserControlMode::NOT_SET};
168 bool m_settingsHasBeenSet = false;
169 bool m_s3BucketArnHasBeenSet = false;
170 bool m_screenshotsUploadEnabledHasBeenSet = false;
171 bool m_screenResolutionHasBeenSet = false;
172 bool m_screenImageFormatHasBeenSet = false;
173 bool m_userControlModeHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace AppStream
178} // namespace Aws
ImageBuilderAgentAccessConfig & WithUserControlMode(UserControlMode value)
ImageBuilderAgentAccessConfig & WithScreenshotsUploadEnabled(bool value)
ImageBuilderAgentAccessConfig & WithS3BucketArn(S3BucketArnT &&value)
AWS_APPSTREAM_API ImageBuilderAgentAccessConfig & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_APPSTREAM_API ImageBuilderAgentAccessConfig(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ImageBuilderAgentAccessConfig & WithScreenResolution(ScreenResolution value)
ImageBuilderAgentAccessConfig & AddSettings(SettingsT &&value)
AWS_APPSTREAM_API ImageBuilderAgentAccessConfig()=default
AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ImageBuilderAgentAccessConfig & WithScreenImageFormat(ScreenImageFormat value)
ImageBuilderAgentAccessConfig & WithSettings(SettingsT &&value)
const Aws::Vector< AgentAccessSetting > & GetSettings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector