AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
RunJobFlowResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/EMR_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 EMR {
23namespace Model {
31 public:
32 AWS_EMR_API RunJobFlowResult() = default;
35
37
40 inline const Aws::String& GetJobFlowId() const { return m_jobFlowId; }
41 template <typename JobFlowIdT = Aws::String>
42 void SetJobFlowId(JobFlowIdT&& value) {
43 m_jobFlowIdHasBeenSet = true;
44 m_jobFlowId = std::forward<JobFlowIdT>(value);
45 }
46 template <typename JobFlowIdT = Aws::String>
47 RunJobFlowResult& WithJobFlowId(JobFlowIdT&& value) {
48 SetJobFlowId(std::forward<JobFlowIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
58 template <typename ClusterArnT = Aws::String>
59 void SetClusterArn(ClusterArnT&& value) {
60 m_clusterArnHasBeenSet = true;
61 m_clusterArn = std::forward<ClusterArnT>(value);
62 }
63 template <typename ClusterArnT = Aws::String>
64 RunJobFlowResult& WithClusterArn(ClusterArnT&& value) {
65 SetClusterArn(std::forward<ClusterArnT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template <typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) {
75 m_requestIdHasBeenSet = true;
76 m_requestId = std::forward<RequestIdT>(value);
77 }
78 template <typename RequestIdT = Aws::String>
79 RunJobFlowResult& WithRequestId(RequestIdT&& value) {
80 SetRequestId(std::forward<RequestIdT>(value));
81 return *this;
82 }
84 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
85
86 private:
87 Aws::String m_jobFlowId;
88
89 Aws::String m_clusterArn;
90
91 Aws::String m_requestId;
92 Aws::Http::HttpResponseCode m_HttpResponseCode;
93 bool m_jobFlowIdHasBeenSet = false;
94 bool m_clusterArnHasBeenSet = false;
95 bool m_requestIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace EMR
100} // namespace Aws
RunJobFlowResult & WithRequestId(RequestIdT &&value)
AWS_EMR_API RunJobFlowResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_EMR_API RunJobFlowResult()=default
void SetRequestId(RequestIdT &&value)
void SetJobFlowId(JobFlowIdT &&value)
RunJobFlowResult & WithClusterArn(ClusterArnT &&value)
void SetClusterArn(ClusterArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_EMR_API RunJobFlowResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
const Aws::String & GetJobFlowId() const
RunJobFlowResult & WithJobFlowId(JobFlowIdT &&value)
const Aws::String & GetClusterArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue