AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
OpenTunnelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotsecuretunneling/IoTSecureTunnelingRequest.h>
10#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
11#include <aws/iotsecuretunneling/model/DestinationConfig.h>
12#include <aws/iotsecuretunneling/model/Tag.h>
13#include <aws/iotsecuretunneling/model/TimeoutConfig.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoTSecureTunneling {
19namespace Model {
20
24 public:
25 AWS_IOTSECURETUNNELING_API OpenTunnelRequest() = 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 "OpenTunnel"; }
32
33 AWS_IOTSECURETUNNELING_API Aws::String SerializePayload() const override;
34
35 AWS_IOTSECURETUNNELING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetDescription() const { return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 template <typename DescriptionT = Aws::String>
44 void SetDescription(DescriptionT&& value) {
45 m_descriptionHasBeenSet = true;
46 m_description = std::forward<DescriptionT>(value);
47 }
48 template <typename DescriptionT = Aws::String>
49 OpenTunnelRequest& WithDescription(DescriptionT&& value) {
50 SetDescription(std::forward<DescriptionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
60 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
61 template <typename TagsT = Aws::Vector<Tag>>
62 void SetTags(TagsT&& value) {
63 m_tagsHasBeenSet = true;
64 m_tags = std::forward<TagsT>(value);
65 }
66 template <typename TagsT = Aws::Vector<Tag>>
67 OpenTunnelRequest& WithTags(TagsT&& value) {
68 SetTags(std::forward<TagsT>(value));
69 return *this;
70 }
71 template <typename TagsT = Tag>
72 OpenTunnelRequest& AddTags(TagsT&& value) {
73 m_tagsHasBeenSet = true;
74 m_tags.emplace_back(std::forward<TagsT>(value));
75 return *this;
76 }
78
80
83 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
84 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
85 template <typename DestinationConfigT = DestinationConfig>
86 void SetDestinationConfig(DestinationConfigT&& value) {
87 m_destinationConfigHasBeenSet = true;
88 m_destinationConfig = std::forward<DestinationConfigT>(value);
89 }
90 template <typename DestinationConfigT = DestinationConfig>
91 OpenTunnelRequest& WithDestinationConfig(DestinationConfigT&& value) {
92 SetDestinationConfig(std::forward<DestinationConfigT>(value));
93 return *this;
94 }
96
98
101 inline const TimeoutConfig& GetTimeoutConfig() const { return m_timeoutConfig; }
102 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
103 template <typename TimeoutConfigT = TimeoutConfig>
104 void SetTimeoutConfig(TimeoutConfigT&& value) {
105 m_timeoutConfigHasBeenSet = true;
106 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
107 }
108 template <typename TimeoutConfigT = TimeoutConfig>
109 OpenTunnelRequest& WithTimeoutConfig(TimeoutConfigT&& value) {
110 SetTimeoutConfig(std::forward<TimeoutConfigT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_description;
116
117 Aws::Vector<Tag> m_tags;
118
119 DestinationConfig m_destinationConfig;
120
121 TimeoutConfig m_timeoutConfig;
122 bool m_descriptionHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124 bool m_destinationConfigHasBeenSet = false;
125 bool m_timeoutConfigHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace IoTSecureTunneling
130} // 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