AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RotateTunnelAccessTokenRequest.h
1
6#pragma once
7#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
8#include <aws/iotsecuretunneling/IoTSecureTunnelingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotsecuretunneling/model/ClientMode.h>
11#include <aws/iotsecuretunneling/model/DestinationConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTSecureTunneling
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTSECURETUNNELING_API RotateTunnelAccessTokenRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "RotateTunnelAccessToken"; }
33
34 AWS_IOTSECURETUNNELING_API Aws::String SerializePayload() const override;
35
36 AWS_IOTSECURETUNNELING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetTunnelId() const { return m_tunnelId; }
44 inline bool TunnelIdHasBeenSet() const { return m_tunnelIdHasBeenSet; }
45 template<typename TunnelIdT = Aws::String>
46 void SetTunnelId(TunnelIdT&& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = std::forward<TunnelIdT>(value); }
47 template<typename TunnelIdT = Aws::String>
48 RotateTunnelAccessTokenRequest& WithTunnelId(TunnelIdT&& value) { SetTunnelId(std::forward<TunnelIdT>(value)); return *this;}
50
52
56 inline ClientMode GetClientMode() const { return m_clientMode; }
57 inline bool ClientModeHasBeenSet() const { return m_clientModeHasBeenSet; }
58 inline void SetClientMode(ClientMode value) { m_clientModeHasBeenSet = true; m_clientMode = value; }
61
63
64 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
65 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
66 template<typename DestinationConfigT = DestinationConfig>
67 void SetDestinationConfig(DestinationConfigT&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::forward<DestinationConfigT>(value); }
68 template<typename DestinationConfigT = DestinationConfig>
69 RotateTunnelAccessTokenRequest& WithDestinationConfig(DestinationConfigT&& value) { SetDestinationConfig(std::forward<DestinationConfigT>(value)); return *this;}
71 private:
72
73 Aws::String m_tunnelId;
74 bool m_tunnelIdHasBeenSet = false;
75
76 ClientMode m_clientMode{ClientMode::NOT_SET};
77 bool m_clientModeHasBeenSet = false;
78
79 DestinationConfig m_destinationConfig;
80 bool m_destinationConfigHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace IoTSecureTunneling
85} // 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