AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OpenTunnelRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotsecuretunneling/model/DestinationConfig.h>
12#include <aws/iotsecuretunneling/model/TimeoutConfig.h>
13#include <aws/iotsecuretunneling/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoTSecureTunneling
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTSECURETUNNELING_API OpenTunnelRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "OpenTunnel"; }
35
36 AWS_IOTSECURETUNNELING_API Aws::String SerializePayload() const override;
37
38 AWS_IOTSECURETUNNELING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetDescription() const { return m_description; }
46 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
47 template<typename DescriptionT = Aws::String>
48 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
49 template<typename DescriptionT = Aws::String>
50 OpenTunnelRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
52
54
57 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
58 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
59 template<typename TagsT = Aws::Vector<Tag>>
60 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
61 template<typename TagsT = Aws::Vector<Tag>>
62 OpenTunnelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
63 template<typename TagsT = Tag>
64 OpenTunnelRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
66
68
71 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
72 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
73 template<typename DestinationConfigT = DestinationConfig>
74 void SetDestinationConfig(DestinationConfigT&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::forward<DestinationConfigT>(value); }
75 template<typename DestinationConfigT = DestinationConfig>
76 OpenTunnelRequest& WithDestinationConfig(DestinationConfigT&& value) { SetDestinationConfig(std::forward<DestinationConfigT>(value)); return *this;}
78
80
83 inline const TimeoutConfig& GetTimeoutConfig() const { return m_timeoutConfig; }
84 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
85 template<typename TimeoutConfigT = TimeoutConfig>
86 void SetTimeoutConfig(TimeoutConfigT&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::forward<TimeoutConfigT>(value); }
87 template<typename TimeoutConfigT = TimeoutConfig>
88 OpenTunnelRequest& WithTimeoutConfig(TimeoutConfigT&& value) { SetTimeoutConfig(std::forward<TimeoutConfigT>(value)); return *this;}
90 private:
91
92 Aws::String m_description;
93 bool m_descriptionHasBeenSet = false;
94
95 Aws::Vector<Tag> m_tags;
96 bool m_tagsHasBeenSet = false;
97
98 DestinationConfig m_destinationConfig;
99 bool m_destinationConfigHasBeenSet = false;
100
101 TimeoutConfig m_timeoutConfig;
102 bool m_timeoutConfigHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace IoTSecureTunneling
107} // namespace Aws
const DestinationConfig & GetDestinationConfig() const
AWS_IOTSECURETUNNELING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
OpenTunnelRequest & WithDescription(DescriptionT &&value)
void SetDestinationConfig(DestinationConfigT &&value)
AWS_IOTSECURETUNNELING_API OpenTunnelRequest()=default
OpenTunnelRequest & WithTags(TagsT &&value)
OpenTunnelRequest & WithTimeoutConfig(TimeoutConfigT &&value)
AWS_IOTSECURETUNNELING_API Aws::String SerializePayload() const override
OpenTunnelRequest & WithDestinationConfig(DestinationConfigT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector