AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
RotateTunnelAccessTokenRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotsecuretunneling/IoTSecureTunnelingRequest.h>
9#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
10#include <aws/iotsecuretunneling/model/ClientMode.h>
11#include <aws/iotsecuretunneling/model/DestinationConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoTSecureTunneling {
17namespace Model {
18
22 public:
23 AWS_IOTSECURETUNNELING_API RotateTunnelAccessTokenRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "RotateTunnelAccessToken"; }
30
31 AWS_IOTSECURETUNNELING_API Aws::String SerializePayload() const override;
32
33 AWS_IOTSECURETUNNELING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetTunnelId() const { return m_tunnelId; }
40 inline bool TunnelIdHasBeenSet() const { return m_tunnelIdHasBeenSet; }
41 template <typename TunnelIdT = Aws::String>
42 void SetTunnelId(TunnelIdT&& value) {
43 m_tunnelIdHasBeenSet = true;
44 m_tunnelId = std::forward<TunnelIdT>(value);
45 }
46 template <typename TunnelIdT = Aws::String>
48 SetTunnelId(std::forward<TunnelIdT>(value));
49 return *this;
50 }
52
54
58 inline ClientMode GetClientMode() const { return m_clientMode; }
59 inline bool ClientModeHasBeenSet() const { return m_clientModeHasBeenSet; }
60 inline void SetClientMode(ClientMode value) {
61 m_clientModeHasBeenSet = true;
62 m_clientMode = value;
63 }
65 SetClientMode(value);
66 return *this;
67 }
69
71
72 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
73 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
74 template <typename DestinationConfigT = DestinationConfig>
75 void SetDestinationConfig(DestinationConfigT&& value) {
76 m_destinationConfigHasBeenSet = true;
77 m_destinationConfig = std::forward<DestinationConfigT>(value);
78 }
79 template <typename DestinationConfigT = DestinationConfig>
81 SetDestinationConfig(std::forward<DestinationConfigT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_tunnelId;
87
88 ClientMode m_clientMode{ClientMode::NOT_SET};
89
90 DestinationConfig m_destinationConfig;
91 bool m_tunnelIdHasBeenSet = false;
92 bool m_clientModeHasBeenSet = false;
93 bool m_destinationConfigHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace IoTSecureTunneling
98} // namespace Aws
AWS_IOTSECURETUNNELING_API RotateTunnelAccessTokenRequest()=default
RotateTunnelAccessTokenRequest & WithDestinationConfig(DestinationConfigT &&value)
AWS_IOTSECURETUNNELING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RotateTunnelAccessTokenRequest & WithClientMode(ClientMode value)
AWS_IOTSECURETUNNELING_API Aws::String SerializePayload() const override
RotateTunnelAccessTokenRequest & WithTunnelId(TunnelIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String