AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
TerminateSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMRRequest.h>
9#include <aws/elasticmapreduce/EMR_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EMR {
15namespace Model {
16
24 public:
25 AWS_EMR_API TerminateSessionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "TerminateSession"; }
32
33 AWS_EMR_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetClusterId() const { return m_clusterId; }
42 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
43 template <typename ClusterIdT = Aws::String>
44 void SetClusterId(ClusterIdT&& value) {
45 m_clusterIdHasBeenSet = true;
46 m_clusterId = std::forward<ClusterIdT>(value);
47 }
48 template <typename ClusterIdT = Aws::String>
50 SetClusterId(std::forward<ClusterIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSessionId() const { return m_sessionId; }
60 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
61 template <typename SessionIdT = Aws::String>
62 void SetSessionId(SessionIdT&& value) {
63 m_sessionIdHasBeenSet = true;
64 m_sessionId = std::forward<SessionIdT>(value);
65 }
66 template <typename SessionIdT = Aws::String>
68 SetSessionId(std::forward<SessionIdT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_clusterId;
74
75 Aws::String m_sessionId;
76 bool m_clusterIdHasBeenSet = false;
77 bool m_sessionIdHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EMR
82} // namespace Aws
TerminateSessionRequest & WithSessionId(SessionIdT &&value)
AWS_EMR_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EMR_API TerminateSessionRequest()=default
TerminateSessionRequest & WithClusterId(ClusterIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String