AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateScriptResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
25 public:
26 AWS_GLUE_API CreateScriptResult() = default;
29
31
34 inline const Aws::String& GetPythonScript() const { return m_pythonScript; }
35 template <typename PythonScriptT = Aws::String>
36 void SetPythonScript(PythonScriptT&& value) {
37 m_pythonScriptHasBeenSet = true;
38 m_pythonScript = std::forward<PythonScriptT>(value);
39 }
40 template <typename PythonScriptT = Aws::String>
41 CreateScriptResult& WithPythonScript(PythonScriptT&& value) {
42 SetPythonScript(std::forward<PythonScriptT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetScalaCode() const { return m_scalaCode; }
52 template <typename ScalaCodeT = Aws::String>
53 void SetScalaCode(ScalaCodeT&& value) {
54 m_scalaCodeHasBeenSet = true;
55 m_scalaCode = std::forward<ScalaCodeT>(value);
56 }
57 template <typename ScalaCodeT = Aws::String>
58 CreateScriptResult& WithScalaCode(ScalaCodeT&& value) {
59 SetScalaCode(std::forward<ScalaCodeT>(value));
60 return *this;
61 }
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template <typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) {
69 m_requestIdHasBeenSet = true;
70 m_requestId = std::forward<RequestIdT>(value);
71 }
72 template <typename RequestIdT = Aws::String>
73 CreateScriptResult& WithRequestId(RequestIdT&& value) {
74 SetRequestId(std::forward<RequestIdT>(value));
75 return *this;
76 }
78 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
79
80 private:
81 Aws::String m_pythonScript;
82
83 Aws::String m_scalaCode;
84
85 Aws::String m_requestId;
86 Aws::Http::HttpResponseCode m_HttpResponseCode;
87 bool m_pythonScriptHasBeenSet = false;
88 bool m_scalaCodeHasBeenSet = false;
89 bool m_requestIdHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Glue
94} // namespace Aws
AWS_GLUE_API CreateScriptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPythonScript(PythonScriptT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_GLUE_API CreateScriptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GLUE_API CreateScriptResult()=default
CreateScriptResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetScalaCode() const
const Aws::String & GetPythonScript() const
CreateScriptResult & WithPythonScript(PythonScriptT &&value)
CreateScriptResult & WithScalaCode(ScalaCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue