AWS SDK for C++  1.9.129
AWS SDK for C++
HttpAction.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
48  inline const Aws::String& GetUrl() const{ return m_url; }
49 
55  inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
56 
62  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
63 
69  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
70 
76  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
77 
83  inline HttpAction& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
84 
90  inline HttpAction& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
91 
97  inline HttpAction& WithUrl(const char* value) { SetUrl(value); return *this;}
98 
99 
108  inline const Aws::String& GetConfirmationUrl() const{ return m_confirmationUrl; }
109 
118  inline bool ConfirmationUrlHasBeenSet() const { return m_confirmationUrlHasBeenSet; }
119 
128  inline void SetConfirmationUrl(const Aws::String& value) { m_confirmationUrlHasBeenSet = true; m_confirmationUrl = value; }
129 
138  inline void SetConfirmationUrl(Aws::String&& value) { m_confirmationUrlHasBeenSet = true; m_confirmationUrl = std::move(value); }
139 
148  inline void SetConfirmationUrl(const char* value) { m_confirmationUrlHasBeenSet = true; m_confirmationUrl.assign(value); }
149 
158  inline HttpAction& WithConfirmationUrl(const Aws::String& value) { SetConfirmationUrl(value); return *this;}
159 
168  inline HttpAction& WithConfirmationUrl(Aws::String&& value) { SetConfirmationUrl(std::move(value)); return *this;}
169 
178  inline HttpAction& WithConfirmationUrl(const char* value) { SetConfirmationUrl(value); return *this;}
179 
180 
184  inline const Aws::Vector<HttpActionHeader>& GetHeaders() const{ return m_headers; }
185 
189  inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
190 
194  inline void SetHeaders(const Aws::Vector<HttpActionHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
195 
199  inline void SetHeaders(Aws::Vector<HttpActionHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
200 
204  inline HttpAction& WithHeaders(const Aws::Vector<HttpActionHeader>& value) { SetHeaders(value); return *this;}
205 
209  inline HttpAction& WithHeaders(Aws::Vector<HttpActionHeader>&& value) { SetHeaders(std::move(value)); return *this;}
210 
214  inline HttpAction& AddHeaders(const HttpActionHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
215 
219  inline HttpAction& AddHeaders(HttpActionHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
220 
221 
225  inline const HttpAuthorization& GetAuth() const{ return m_auth; }
226 
230  inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
231 
235  inline void SetAuth(const HttpAuthorization& value) { m_authHasBeenSet = true; m_auth = value; }
236 
240  inline void SetAuth(HttpAuthorization&& value) { m_authHasBeenSet = true; m_auth = std::move(value); }
241 
245  inline HttpAction& WithAuth(const HttpAuthorization& value) { SetAuth(value); return *this;}
246 
250  inline HttpAction& WithAuth(HttpAuthorization&& value) { SetAuth(std::move(value)); return *this;}
251 
252  private:
253 
254  Aws::String m_url;
255  bool m_urlHasBeenSet;
256 
257  Aws::String m_confirmationUrl;
258  bool m_confirmationUrlHasBeenSet;
259 
261  bool m_headersHasBeenSet;
262 
263  HttpAuthorization m_auth;
264  bool m_authHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace IoT
269 } // namespace Aws
Aws::IoT::Model::HttpAction::WithUrl
HttpAction & WithUrl(const char *value)
Definition: HttpAction.h:97
Aws::IoT::Model::HttpAction::WithUrl
HttpAction & WithUrl(Aws::String &&value)
Definition: HttpAction.h:90
Aws::IoT::Model::HttpAction::WithConfirmationUrl
HttpAction & WithConfirmationUrl(const char *value)
Definition: HttpAction.h:178
Aws::IoT::Model::HttpAction::HttpAction
HttpAction(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::HttpAction::SetHeaders
void SetHeaders(Aws::Vector< HttpActionHeader > &&value)
Definition: HttpAction.h:199
Aws::IoT::Model::HttpAction::operator=
HttpAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::HttpAction::ConfirmationUrlHasBeenSet
bool ConfirmationUrlHasBeenSet() const
Definition: HttpAction.h:118
Aws::IoT::Model::HttpAction::SetUrl
void SetUrl(const char *value)
Definition: HttpAction.h:76
Aws::IoT::Model::HttpAuthorization
Definition: HttpAuthorization.h:32
Aws::IoT::Model::HttpAction::AuthHasBeenSet
bool AuthHasBeenSet() const
Definition: HttpAction.h:230
Aws::IoT::Model::HttpAction::WithUrl
HttpAction & WithUrl(const Aws::String &value)
Definition: HttpAction.h:83
Aws::IoT::Model::HttpAction::GetUrl
const Aws::String & GetUrl() const
Definition: HttpAction.h:48
Aws::IoT::Model::HttpAction::SetConfirmationUrl
void SetConfirmationUrl(const Aws::String &value)
Definition: HttpAction.h:128
Aws::IoT::Model::HttpAction::HeadersHasBeenSet
bool HeadersHasBeenSet() const
Definition: HttpAction.h:189
Aws::IoT::Model::HttpAction::SetUrl
void SetUrl(Aws::String &&value)
Definition: HttpAction.h:69
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::HttpAction::WithAuth
HttpAction & WithAuth(HttpAuthorization &&value)
Definition: HttpAction.h:250
AWSVector.h
Aws::IoT::Model::HttpAction::SetAuth
void SetAuth(HttpAuthorization &&value)
Definition: HttpAction.h:240
Aws::IoT::Model::HttpAction::WithHeaders
HttpAction & WithHeaders(const Aws::Vector< HttpActionHeader > &value)
Definition: HttpAction.h:204
Aws::IoT::Model::HttpAction::SetConfirmationUrl
void SetConfirmationUrl(const char *value)
Definition: HttpAction.h:148
Aws::IoT::Model::HttpAction::UrlHasBeenSet
bool UrlHasBeenSet() const
Definition: HttpAction.h:55
Aws::IoT::Model::HttpAction
Definition: HttpAction.h:35
Aws::IoT::Model::HttpAction::SetAuth
void SetAuth(const HttpAuthorization &value)
Definition: HttpAction.h:235
Aws::IoT::Model::HttpAction::SetConfirmationUrl
void SetConfirmationUrl(Aws::String &&value)
Definition: HttpAction.h:138
Aws::IoT::Model::HttpAction::GetConfirmationUrl
const Aws::String & GetConfirmationUrl() const
Definition: HttpAction.h:108
HttpAuthorization.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::HttpAction::SetUrl
void SetUrl(const Aws::String &value)
Definition: HttpAction.h:62
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
HttpActionHeader.h
Aws::IoT::Model::HttpAction::WithAuth
HttpAction & WithAuth(const HttpAuthorization &value)
Definition: HttpAction.h:245
Aws::IoT::Model::HttpAction::WithConfirmationUrl
HttpAction & WithConfirmationUrl(Aws::String &&value)
Definition: HttpAction.h:168
Aws::IoT::Model::HttpAction::WithHeaders
HttpAction & WithHeaders(Aws::Vector< HttpActionHeader > &&value)
Definition: HttpAction.h:209
Aws::IoT::Model::HttpAction::AddHeaders
HttpAction & AddHeaders(const HttpActionHeader &value)
Definition: HttpAction.h:214
Aws::IoT::Model::HttpAction::GetAuth
const HttpAuthorization & GetAuth() const
Definition: HttpAction.h:225
Aws::IoT::Model::HttpAction::AddHeaders
HttpAction & AddHeaders(HttpActionHeader &&value)
Definition: HttpAction.h:219
Aws::IoT::Model::HttpAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::HttpActionHeader
Definition: HttpActionHeader.h:32
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::HttpAction::WithConfirmationUrl
HttpAction & WithConfirmationUrl(const Aws::String &value)
Definition: HttpAction.h:158
Aws::IoT::Model::HttpAction::HttpAction
HttpAction()
Aws::IoT::Model::HttpAction::GetHeaders
const Aws::Vector< HttpActionHeader > & GetHeaders() const
Definition: HttpAction.h:184
Aws::IoT::Model::HttpAction::SetHeaders
void SetHeaders(const Aws::Vector< HttpActionHeader > &value)
Definition: HttpAction.h:194
IoT_EXPORTS.h