AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HttpAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/model/HttpAuthorization.h>
11#include <aws/iot/model/HttpActionHeader.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOT_API HttpAction() = default;
38 AWS_IOT_API HttpAction(Aws::Utils::Json::JsonView jsonValue);
41
42
44
49 inline const Aws::String& GetUrl() const { return m_url; }
50 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
51 template<typename UrlT = Aws::String>
52 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
53 template<typename UrlT = Aws::String>
54 HttpAction& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
56
58
66 inline const Aws::String& GetConfirmationUrl() const { return m_confirmationUrl; }
67 inline bool ConfirmationUrlHasBeenSet() const { return m_confirmationUrlHasBeenSet; }
68 template<typename ConfirmationUrlT = Aws::String>
69 void SetConfirmationUrl(ConfirmationUrlT&& value) { m_confirmationUrlHasBeenSet = true; m_confirmationUrl = std::forward<ConfirmationUrlT>(value); }
70 template<typename ConfirmationUrlT = Aws::String>
71 HttpAction& WithConfirmationUrl(ConfirmationUrlT&& value) { SetConfirmationUrl(std::forward<ConfirmationUrlT>(value)); return *this;}
73
75
78 inline const Aws::Vector<HttpActionHeader>& GetHeaders() const { return m_headers; }
79 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
80 template<typename HeadersT = Aws::Vector<HttpActionHeader>>
81 void SetHeaders(HeadersT&& value) { m_headersHasBeenSet = true; m_headers = std::forward<HeadersT>(value); }
82 template<typename HeadersT = Aws::Vector<HttpActionHeader>>
83 HttpAction& WithHeaders(HeadersT&& value) { SetHeaders(std::forward<HeadersT>(value)); return *this;}
84 template<typename HeadersT = HttpActionHeader>
85 HttpAction& AddHeaders(HeadersT&& value) { m_headersHasBeenSet = true; m_headers.emplace_back(std::forward<HeadersT>(value)); return *this; }
87
89
92 inline const HttpAuthorization& GetAuth() const { return m_auth; }
93 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
94 template<typename AuthT = HttpAuthorization>
95 void SetAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth = std::forward<AuthT>(value); }
96 template<typename AuthT = HttpAuthorization>
97 HttpAction& WithAuth(AuthT&& value) { SetAuth(std::forward<AuthT>(value)); return *this;}
99 private:
100
101 Aws::String m_url;
102 bool m_urlHasBeenSet = false;
103
104 Aws::String m_confirmationUrl;
105 bool m_confirmationUrlHasBeenSet = false;
106
108 bool m_headersHasBeenSet = false;
109
110 HttpAuthorization m_auth;
111 bool m_authHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace IoT
116} // namespace Aws
const Aws::Vector< HttpActionHeader > & GetHeaders() const
Definition HttpAction.h:78
void SetUrl(UrlT &&value)
Definition HttpAction.h:52
HttpAction & WithHeaders(HeadersT &&value)
Definition HttpAction.h:83
HttpAction & WithConfirmationUrl(ConfirmationUrlT &&value)
Definition HttpAction.h:71
AWS_IOT_API HttpAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConfirmationUrl() const
Definition HttpAction.h:66
HttpAction & WithAuth(AuthT &&value)
Definition HttpAction.h:97
HttpAction & AddHeaders(HeadersT &&value)
Definition HttpAction.h:85
AWS_IOT_API HttpAction()=default
const HttpAuthorization & GetAuth() const
Definition HttpAction.h:92
bool ConfirmationUrlHasBeenSet() const
Definition HttpAction.h:67
bool HeadersHasBeenSet() const
Definition HttpAction.h:79
void SetConfirmationUrl(ConfirmationUrlT &&value)
Definition HttpAction.h:69
void SetAuth(AuthT &&value)
Definition HttpAction.h:95
AWS_IOT_API HttpAction(Aws::Utils::Json::JsonView jsonValue)
void SetHeaders(HeadersT &&value)
Definition HttpAction.h:81
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUrl() const
Definition HttpAction.h:49
HttpAction & WithUrl(UrlT &&value)
Definition HttpAction.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue