AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
TerminateSessionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/emr-serverless/EMRServerless_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 EMRServerless {
23namespace Model {
25 public:
26 AWS_EMRSERVERLESS_API TerminateSessionResult() = default;
29
31
35 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
36 template <typename ApplicationIdT = Aws::String>
37 void SetApplicationId(ApplicationIdT&& value) {
38 m_applicationIdHasBeenSet = true;
39 m_applicationId = std::forward<ApplicationIdT>(value);
40 }
41 template <typename ApplicationIdT = Aws::String>
42 TerminateSessionResult& WithApplicationId(ApplicationIdT&& value) {
43 SetApplicationId(std::forward<ApplicationIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetSessionId() const { return m_sessionId; }
53 template <typename SessionIdT = Aws::String>
54 void SetSessionId(SessionIdT&& value) {
55 m_sessionIdHasBeenSet = true;
56 m_sessionId = std::forward<SessionIdT>(value);
57 }
58 template <typename SessionIdT = Aws::String>
60 SetSessionId(std::forward<SessionIdT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template <typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) {
70 m_requestIdHasBeenSet = true;
71 m_requestId = std::forward<RequestIdT>(value);
72 }
73 template <typename RequestIdT = Aws::String>
75 SetRequestId(std::forward<RequestIdT>(value));
76 return *this;
77 }
79 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
80
81 private:
82 Aws::String m_applicationId;
83
84 Aws::String m_sessionId;
85
86 Aws::String m_requestId;
87 Aws::Http::HttpResponseCode m_HttpResponseCode;
88 bool m_applicationIdHasBeenSet = false;
89 bool m_sessionIdHasBeenSet = false;
90 bool m_requestIdHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace EMRServerless
95} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_EMRSERVERLESS_API TerminateSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TerminateSessionResult & WithApplicationId(ApplicationIdT &&value)
TerminateSessionResult & WithSessionId(SessionIdT &&value)
AWS_EMRSERVERLESS_API TerminateSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_EMRSERVERLESS_API TerminateSessionResult()=default
TerminateSessionResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue