AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ScriptDetails.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/S3Location.h>
9#include <aws/core/utils/memory/stl/AWSString.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
29 public:
30 AWS_APPSTREAM_API ScriptDetails() = default;
31 AWS_APPSTREAM_API ScriptDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPSTREAM_API ScriptDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const S3Location& GetScriptS3Location() const { return m_scriptS3Location; }
40 inline bool ScriptS3LocationHasBeenSet() const { return m_scriptS3LocationHasBeenSet; }
41 template <typename ScriptS3LocationT = S3Location>
42 void SetScriptS3Location(ScriptS3LocationT&& value) {
43 m_scriptS3LocationHasBeenSet = true;
44 m_scriptS3Location = std::forward<ScriptS3LocationT>(value);
45 }
46 template <typename ScriptS3LocationT = S3Location>
47 ScriptDetails& WithScriptS3Location(ScriptS3LocationT&& value) {
48 SetScriptS3Location(std::forward<ScriptS3LocationT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetExecutablePath() const { return m_executablePath; }
58 inline bool ExecutablePathHasBeenSet() const { return m_executablePathHasBeenSet; }
59 template <typename ExecutablePathT = Aws::String>
60 void SetExecutablePath(ExecutablePathT&& value) {
61 m_executablePathHasBeenSet = true;
62 m_executablePath = std::forward<ExecutablePathT>(value);
63 }
64 template <typename ExecutablePathT = Aws::String>
65 ScriptDetails& WithExecutablePath(ExecutablePathT&& value) {
66 SetExecutablePath(std::forward<ExecutablePathT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetExecutableParameters() const { return m_executableParameters; }
76 inline bool ExecutableParametersHasBeenSet() const { return m_executableParametersHasBeenSet; }
77 template <typename ExecutableParametersT = Aws::String>
78 void SetExecutableParameters(ExecutableParametersT&& value) {
79 m_executableParametersHasBeenSet = true;
80 m_executableParameters = std::forward<ExecutableParametersT>(value);
81 }
82 template <typename ExecutableParametersT = Aws::String>
83 ScriptDetails& WithExecutableParameters(ExecutableParametersT&& value) {
84 SetExecutableParameters(std::forward<ExecutableParametersT>(value));
85 return *this;
86 }
88
90
93 inline int GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
94 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
95 inline void SetTimeoutInSeconds(int value) {
96 m_timeoutInSecondsHasBeenSet = true;
97 m_timeoutInSeconds = value;
98 }
100 SetTimeoutInSeconds(value);
101 return *this;
102 }
104 private:
105 S3Location m_scriptS3Location;
106
107 Aws::String m_executablePath;
108
109 Aws::String m_executableParameters;
110
111 int m_timeoutInSeconds{0};
112 bool m_scriptS3LocationHasBeenSet = false;
113 bool m_executablePathHasBeenSet = false;
114 bool m_executableParametersHasBeenSet = false;
115 bool m_timeoutInSecondsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace AppStream
120} // namespace Aws
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPSTREAM_API ScriptDetails(Aws::Utils::Json::JsonView jsonValue)
ScriptDetails & WithExecutableParameters(ExecutableParametersT &&value)
AWS_APPSTREAM_API ScriptDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScriptS3Location(ScriptS3LocationT &&value)
const Aws::String & GetExecutableParameters() const
const S3Location & GetScriptS3Location() const
void SetExecutablePath(ExecutablePathT &&value)
void SetExecutableParameters(ExecutableParametersT &&value)
const Aws::String & GetExecutablePath() const
AWS_APPSTREAM_API ScriptDetails()=default
ScriptDetails & WithTimeoutInSeconds(int value)
ScriptDetails & WithExecutablePath(ExecutablePathT &&value)
ScriptDetails & WithScriptS3Location(ScriptS3LocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue