AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
48 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
49 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
50 inline OpenTunnelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
51 inline OpenTunnelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
52 inline OpenTunnelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
54
56
59 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
60 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
61 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
62 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
63 inline OpenTunnelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
64 inline OpenTunnelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
65 inline OpenTunnelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
66 inline OpenTunnelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
68
70
73 inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
74 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
75 inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; }
76 inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); }
78 inline OpenTunnelRequest& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
80
82
85 inline const TimeoutConfig& GetTimeoutConfig() const{ return m_timeoutConfig; }
86 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
87 inline void SetTimeoutConfig(const TimeoutConfig& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = value; }
88 inline void SetTimeoutConfig(TimeoutConfig&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::move(value); }
89 inline OpenTunnelRequest& WithTimeoutConfig(const TimeoutConfig& value) { SetTimeoutConfig(value); return *this;}
90 inline OpenTunnelRequest& WithTimeoutConfig(TimeoutConfig&& value) { SetTimeoutConfig(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_description;
95 bool m_descriptionHasBeenSet = false;
96
97 Aws::Vector<Tag> m_tags;
98 bool m_tagsHasBeenSet = false;
99
100 DestinationConfig m_destinationConfig;
101 bool m_destinationConfigHasBeenSet = false;
102
103 TimeoutConfig m_timeoutConfig;
104 bool m_timeoutConfigHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace IoTSecureTunneling
109} // namespace Aws
void SetDestinationConfig(DestinationConfig &&value)
AWS_IOTSECURETUNNELING_API OpenTunnelRequest()
OpenTunnelRequest & WithTags(Aws::Vector< Tag > &&value)
OpenTunnelRequest & WithDestinationConfig(const DestinationConfig &value)
const DestinationConfig & GetDestinationConfig() const
AWS_IOTSECURETUNNELING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
OpenTunnelRequest & WithDescription(const char *value)
OpenTunnelRequest & WithDescription(Aws::String &&value)
OpenTunnelRequest & WithTimeoutConfig(const TimeoutConfig &value)
OpenTunnelRequest & WithDescription(const Aws::String &value)
OpenTunnelRequest & WithTimeoutConfig(TimeoutConfig &&value)
OpenTunnelRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetTimeoutConfig(const TimeoutConfig &value)
OpenTunnelRequest & WithDestinationConfig(DestinationConfig &&value)
AWS_IOTSECURETUNNELING_API Aws::String SerializePayload() const override
OpenTunnelRequest & AddTags(const Tag &value)
void SetDestinationConfig(const DestinationConfig &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