AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
OpenTunnelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotsecuretunneling/IoTSecureTunneling_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 IoTSecureTunneling {
23namespace Model {
25 public:
26 AWS_IOTSECURETUNNELING_API OpenTunnelResult() = default;
29
31
34 inline const Aws::String& GetTunnelId() const { return m_tunnelId; }
35 template <typename TunnelIdT = Aws::String>
36 void SetTunnelId(TunnelIdT&& value) {
37 m_tunnelIdHasBeenSet = true;
38 m_tunnelId = std::forward<TunnelIdT>(value);
39 }
40 template <typename TunnelIdT = Aws::String>
41 OpenTunnelResult& WithTunnelId(TunnelIdT&& value) {
42 SetTunnelId(std::forward<TunnelIdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetTunnelArn() const { return m_tunnelArn; }
52 template <typename TunnelArnT = Aws::String>
53 void SetTunnelArn(TunnelArnT&& value) {
54 m_tunnelArnHasBeenSet = true;
55 m_tunnelArn = std::forward<TunnelArnT>(value);
56 }
57 template <typename TunnelArnT = Aws::String>
58 OpenTunnelResult& WithTunnelArn(TunnelArnT&& value) {
59 SetTunnelArn(std::forward<TunnelArnT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetSourceAccessToken() const { return m_sourceAccessToken; }
70 template <typename SourceAccessTokenT = Aws::String>
71 void SetSourceAccessToken(SourceAccessTokenT&& value) {
72 m_sourceAccessTokenHasBeenSet = true;
73 m_sourceAccessToken = std::forward<SourceAccessTokenT>(value);
74 }
75 template <typename SourceAccessTokenT = Aws::String>
76 OpenTunnelResult& WithSourceAccessToken(SourceAccessTokenT&& value) {
77 SetSourceAccessToken(std::forward<SourceAccessTokenT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetDestinationAccessToken() const { return m_destinationAccessToken; }
88 template <typename DestinationAccessTokenT = Aws::String>
89 void SetDestinationAccessToken(DestinationAccessTokenT&& value) {
90 m_destinationAccessTokenHasBeenSet = true;
91 m_destinationAccessToken = std::forward<DestinationAccessTokenT>(value);
92 }
93 template <typename DestinationAccessTokenT = Aws::String>
94 OpenTunnelResult& WithDestinationAccessToken(DestinationAccessTokenT&& value) {
95 SetDestinationAccessToken(std::forward<DestinationAccessTokenT>(value));
96 return *this;
97 }
99
101
102 inline const Aws::String& GetRequestId() const { return m_requestId; }
103 template <typename RequestIdT = Aws::String>
104 void SetRequestId(RequestIdT&& value) {
105 m_requestIdHasBeenSet = true;
106 m_requestId = std::forward<RequestIdT>(value);
107 }
108 template <typename RequestIdT = Aws::String>
109 OpenTunnelResult& WithRequestId(RequestIdT&& value) {
110 SetRequestId(std::forward<RequestIdT>(value));
111 return *this;
112 }
114 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
115
116 private:
117 Aws::String m_tunnelId;
118
119 Aws::String m_tunnelArn;
120
121 Aws::String m_sourceAccessToken;
122
123 Aws::String m_destinationAccessToken;
124
125 Aws::String m_requestId;
126 Aws::Http::HttpResponseCode m_HttpResponseCode;
127 bool m_tunnelIdHasBeenSet = false;
128 bool m_tunnelArnHasBeenSet = false;
129 bool m_sourceAccessTokenHasBeenSet = false;
130 bool m_destinationAccessTokenHasBeenSet = false;
131 bool m_requestIdHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace IoTSecureTunneling
136} // namespace Aws
void SetSourceAccessToken(SourceAccessTokenT &&value)
OpenTunnelResult & WithSourceAccessToken(SourceAccessTokenT &&value)
AWS_IOTSECURETUNNELING_API OpenTunnelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOTSECURETUNNELING_API OpenTunnelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetDestinationAccessToken() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IOTSECURETUNNELING_API OpenTunnelResult()=default
OpenTunnelResult & WithTunnelArn(TunnelArnT &&value)
OpenTunnelResult & WithDestinationAccessToken(DestinationAccessTokenT &&value)
OpenTunnelResult & WithTunnelId(TunnelIdT &&value)
OpenTunnelResult & WithRequestId(RequestIdT &&value)
void SetDestinationAccessToken(DestinationAccessTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue