AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
VerificationScript.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/VerificationScriptEnvVar.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityAgent {
22namespace Model {
23
31 public:
32 AWS_SECURITYAGENT_API VerificationScript() = default;
33 AWS_SECURITYAGENT_API VerificationScript(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API VerificationScript& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetScriptType() const { return m_scriptType; }
42 inline bool ScriptTypeHasBeenSet() const { return m_scriptTypeHasBeenSet; }
43 template <typename ScriptTypeT = Aws::String>
44 void SetScriptType(ScriptTypeT&& value) {
45 m_scriptTypeHasBeenSet = true;
46 m_scriptType = std::forward<ScriptTypeT>(value);
47 }
48 template <typename ScriptTypeT = Aws::String>
49 VerificationScript& WithScriptType(ScriptTypeT&& value) {
50 SetScriptType(std::forward<ScriptTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetScriptUrl() const { return m_scriptUrl; }
60 inline bool ScriptUrlHasBeenSet() const { return m_scriptUrlHasBeenSet; }
61 template <typename ScriptUrlT = Aws::String>
62 void SetScriptUrl(ScriptUrlT&& value) {
63 m_scriptUrlHasBeenSet = true;
64 m_scriptUrl = std::forward<ScriptUrlT>(value);
65 }
66 template <typename ScriptUrlT = Aws::String>
67 VerificationScript& WithScriptUrl(ScriptUrlT&& value) {
68 SetScriptUrl(std::forward<ScriptUrlT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetInstructions() const { return m_instructions; }
79 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
80 template <typename InstructionsT = Aws::String>
81 void SetInstructions(InstructionsT&& value) {
82 m_instructionsHasBeenSet = true;
83 m_instructions = std::forward<InstructionsT>(value);
84 }
85 template <typename InstructionsT = Aws::String>
86 VerificationScript& WithInstructions(InstructionsT&& value) {
87 SetInstructions(std::forward<InstructionsT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Vector<VerificationScriptEnvVar>& GetEnvVars() const { return m_envVars; }
98 inline bool EnvVarsHasBeenSet() const { return m_envVarsHasBeenSet; }
99 template <typename EnvVarsT = Aws::Vector<VerificationScriptEnvVar>>
100 void SetEnvVars(EnvVarsT&& value) {
101 m_envVarsHasBeenSet = true;
102 m_envVars = std::forward<EnvVarsT>(value);
103 }
104 template <typename EnvVarsT = Aws::Vector<VerificationScriptEnvVar>>
105 VerificationScript& WithEnvVars(EnvVarsT&& value) {
106 SetEnvVars(std::forward<EnvVarsT>(value));
107 return *this;
108 }
109 template <typename EnvVarsT = VerificationScriptEnvVar>
110 VerificationScript& AddEnvVars(EnvVarsT&& value) {
111 m_envVarsHasBeenSet = true;
112 m_envVars.emplace_back(std::forward<EnvVarsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_scriptType;
118
119 Aws::String m_scriptUrl;
120
121 Aws::String m_instructions;
122
124 bool m_scriptTypeHasBeenSet = false;
125 bool m_scriptUrlHasBeenSet = false;
126 bool m_instructionsHasBeenSet = false;
127 bool m_envVarsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace SecurityAgent
132} // namespace Aws
VerificationScript & WithScriptType(ScriptTypeT &&value)
VerificationScript & AddEnvVars(EnvVarsT &&value)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< VerificationScriptEnvVar > & GetEnvVars() const
VerificationScript & WithScriptUrl(ScriptUrlT &&value)
AWS_SECURITYAGENT_API VerificationScript(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API VerificationScript & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API VerificationScript()=default
VerificationScript & WithEnvVars(EnvVarsT &&value)
VerificationScript & WithInstructions(InstructionsT &&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