AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ServerFilesystemPostBackupScript.h
1
6#pragma once
7#include <aws/backup-external/BackupExternal_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BackupExternal {
20namespace Model {
21
28 public:
29 AWS_BACKUPEXTERNAL_API ServerFilesystemPostBackupScript() = default;
32 AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetScriptParams() const { return m_scriptParams; }
39 inline bool ScriptParamsHasBeenSet() const { return m_scriptParamsHasBeenSet; }
40 template <typename ScriptParamsT = Aws::String>
41 void SetScriptParams(ScriptParamsT&& value) {
42 m_scriptParamsHasBeenSet = true;
43 m_scriptParams = std::forward<ScriptParamsT>(value);
44 }
45 template <typename ScriptParamsT = Aws::String>
47 SetScriptParams(std::forward<ScriptParamsT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetScriptPath() const { return m_scriptPath; }
55 inline bool ScriptPathHasBeenSet() const { return m_scriptPathHasBeenSet; }
56 template <typename ScriptPathT = Aws::String>
57 void SetScriptPath(ScriptPathT&& value) {
58 m_scriptPathHasBeenSet = true;
59 m_scriptPath = std::forward<ScriptPathT>(value);
60 }
61 template <typename ScriptPathT = Aws::String>
63 SetScriptPath(std::forward<ScriptPathT>(value));
64 return *this;
65 }
67
69
72 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
73 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
74 inline void SetTimeoutInMinutes(int value) {
75 m_timeoutInMinutesHasBeenSet = true;
76 m_timeoutInMinutes = value;
77 }
80 return *this;
81 }
83 private:
84 Aws::String m_scriptParams;
85
86 Aws::String m_scriptPath;
87
88 int m_timeoutInMinutes{0};
89 bool m_scriptParamsHasBeenSet = false;
90 bool m_scriptPathHasBeenSet = false;
91 bool m_timeoutInMinutesHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace BackupExternal
96} // namespace Aws
bool TimeoutInMinutesHasBeenSet() const
const Aws::String & GetScriptPath() const
bool ScriptParamsHasBeenSet() const
void SetScriptPath(ScriptPathT &&value)
void SetScriptParams(ScriptParamsT &&value)
AWS_BACKUPEXTERNAL_API ServerFilesystemPostBackupScript()=default
AWS_BACKUPEXTERNAL_API ServerFilesystemPostBackupScript & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerFilesystemPostBackupScript & WithTimeoutInMinutes(int value)
bool ScriptPathHasBeenSet() const
void SetTimeoutInMinutes(int value)
AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const
ServerFilesystemPostBackupScript & WithScriptParams(ScriptParamsT &&value)
int GetTimeoutInMinutes() const
ServerFilesystemPostBackupScript & WithScriptPath(ScriptPathT &&value)
const Aws::String & GetScriptParams() const
AWS_BACKUPEXTERNAL_API ServerFilesystemPostBackupScript(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue