AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
CreateLinkRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rtbfabric/RTBFabricRequest.h>
10#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
11#include <aws/rtbfabric/model/LinkAttributes.h>
12#include <aws/rtbfabric/model/LinkLogSettings.h>
13
14#include <utility>
15
16namespace Aws {
17namespace RTBFabric {
18namespace Model {
19
23 public:
24 AWS_RTBFABRIC_API CreateLinkRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateLink"; }
31
32 AWS_RTBFABRIC_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
39 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
40 template <typename GatewayIdT = Aws::String>
41 void SetGatewayId(GatewayIdT&& value) {
42 m_gatewayIdHasBeenSet = true;
43 m_gatewayId = std::forward<GatewayIdT>(value);
44 }
45 template <typename GatewayIdT = Aws::String>
46 CreateLinkRequest& WithGatewayId(GatewayIdT&& value) {
47 SetGatewayId(std::forward<GatewayIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPeerGatewayId() const { return m_peerGatewayId; }
57 inline bool PeerGatewayIdHasBeenSet() const { return m_peerGatewayIdHasBeenSet; }
58 template <typename PeerGatewayIdT = Aws::String>
59 void SetPeerGatewayId(PeerGatewayIdT&& value) {
60 m_peerGatewayIdHasBeenSet = true;
61 m_peerGatewayId = std::forward<PeerGatewayIdT>(value);
62 }
63 template <typename PeerGatewayIdT = Aws::String>
64 CreateLinkRequest& WithPeerGatewayId(PeerGatewayIdT&& value) {
65 SetPeerGatewayId(std::forward<PeerGatewayIdT>(value));
66 return *this;
67 }
69
71
74 inline const LinkAttributes& GetAttributes() const { return m_attributes; }
75 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
76 template <typename AttributesT = LinkAttributes>
77 void SetAttributes(AttributesT&& value) {
78 m_attributesHasBeenSet = true;
79 m_attributes = std::forward<AttributesT>(value);
80 }
81 template <typename AttributesT = LinkAttributes>
82 CreateLinkRequest& WithAttributes(AttributesT&& value) {
83 SetAttributes(std::forward<AttributesT>(value));
84 return *this;
85 }
87
89
92 inline bool GetHttpResponderAllowed() const { return m_httpResponderAllowed; }
93 inline bool HttpResponderAllowedHasBeenSet() const { return m_httpResponderAllowedHasBeenSet; }
94 inline void SetHttpResponderAllowed(bool value) {
95 m_httpResponderAllowedHasBeenSet = true;
96 m_httpResponderAllowed = value;
97 }
100 return *this;
101 }
103
105
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 void SetTags(TagsT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags = std::forward<TagsT>(value);
115 }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 CreateLinkRequest& WithTags(TagsT&& value) {
118 SetTags(std::forward<TagsT>(value));
119 return *this;
120 }
121 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
122 CreateLinkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
125 return *this;
126 }
128
130
138 inline const LinkLogSettings& GetLogSettings() const { return m_logSettings; }
139 inline bool LogSettingsHasBeenSet() const { return m_logSettingsHasBeenSet; }
140 template <typename LogSettingsT = LinkLogSettings>
141 void SetLogSettings(LogSettingsT&& value) {
142 m_logSettingsHasBeenSet = true;
143 m_logSettings = std::forward<LogSettingsT>(value);
144 }
145 template <typename LogSettingsT = LinkLogSettings>
146 CreateLinkRequest& WithLogSettings(LogSettingsT&& value) {
147 SetLogSettings(std::forward<LogSettingsT>(value));
148 return *this;
149 }
151
153
156 inline long long GetTimeoutInMillis() const { return m_timeoutInMillis; }
157 inline bool TimeoutInMillisHasBeenSet() const { return m_timeoutInMillisHasBeenSet; }
158 inline void SetTimeoutInMillis(long long value) {
159 m_timeoutInMillisHasBeenSet = true;
160 m_timeoutInMillis = value;
161 }
162 inline CreateLinkRequest& WithTimeoutInMillis(long long value) {
163 SetTimeoutInMillis(value);
164 return *this;
165 }
167 private:
168 Aws::String m_gatewayId;
169
170 Aws::String m_peerGatewayId;
171
172 LinkAttributes m_attributes;
173
174 bool m_httpResponderAllowed{false};
175
177
178 LinkLogSettings m_logSettings;
179
180 long long m_timeoutInMillis{0};
181 bool m_gatewayIdHasBeenSet = false;
182 bool m_peerGatewayIdHasBeenSet = false;
183 bool m_attributesHasBeenSet = false;
184 bool m_httpResponderAllowedHasBeenSet = false;
185 bool m_tagsHasBeenSet = false;
186 bool m_logSettingsHasBeenSet = false;
187 bool m_timeoutInMillisHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace RTBFabric
192} // namespace Aws
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String