AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ServerFilesystemPreBackupScript.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 ServerFilesystemPreBackupScript() = default;
32 AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline bool GetContinueBackupOnScriptFailure() const { return m_continueBackupOnScriptFailure; }
39 inline bool ContinueBackupOnScriptFailureHasBeenSet() const { return m_continueBackupOnScriptFailureHasBeenSet; }
40 inline void SetContinueBackupOnScriptFailure(bool value) {
41 m_continueBackupOnScriptFailureHasBeenSet = true;
42 m_continueBackupOnScriptFailure = value;
43 }
49
51
54 inline const Aws::String& GetScriptParams() const { return m_scriptParams; }
55 inline bool ScriptParamsHasBeenSet() const { return m_scriptParamsHasBeenSet; }
56 template <typename ScriptParamsT = Aws::String>
57 void SetScriptParams(ScriptParamsT&& value) {
58 m_scriptParamsHasBeenSet = true;
59 m_scriptParams = std::forward<ScriptParamsT>(value);
60 }
61 template <typename ScriptParamsT = Aws::String>
63 SetScriptParams(std::forward<ScriptParamsT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetScriptPath() const { return m_scriptPath; }
71 inline bool ScriptPathHasBeenSet() const { return m_scriptPathHasBeenSet; }
72 template <typename ScriptPathT = Aws::String>
73 void SetScriptPath(ScriptPathT&& value) {
74 m_scriptPathHasBeenSet = true;
75 m_scriptPath = std::forward<ScriptPathT>(value);
76 }
77 template <typename ScriptPathT = Aws::String>
79 SetScriptPath(std::forward<ScriptPathT>(value));
80 return *this;
81 }
83
85
88 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
89 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
90 inline void SetTimeoutInMinutes(int value) {
91 m_timeoutInMinutesHasBeenSet = true;
92 m_timeoutInMinutes = value;
93 }
96 return *this;
97 }
99 private:
100 bool m_continueBackupOnScriptFailure{false};
101
102 Aws::String m_scriptParams;
103
104 Aws::String m_scriptPath;
105
106 int m_timeoutInMinutes{0};
107 bool m_continueBackupOnScriptFailureHasBeenSet = false;
108 bool m_scriptParamsHasBeenSet = false;
109 bool m_scriptPathHasBeenSet = false;
110 bool m_timeoutInMinutesHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace BackupExternal
115} // namespace Aws
AWS_BACKUPEXTERNAL_API ServerFilesystemPreBackupScript & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerFilesystemPreBackupScript & WithScriptPath(ScriptPathT &&value)
AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUPEXTERNAL_API ServerFilesystemPreBackupScript(Aws::Utils::Json::JsonView jsonValue)
ServerFilesystemPreBackupScript & WithScriptParams(ScriptParamsT &&value)
ServerFilesystemPreBackupScript & WithContinueBackupOnScriptFailure(bool value)
AWS_BACKUPEXTERNAL_API ServerFilesystemPreBackupScript()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue