AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
52 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
53 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
54 inline HttpAction& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
55 inline HttpAction& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
56 inline HttpAction& WithUrl(const char* value) { SetUrl(value); return *this;}
58
60
68 inline const Aws::String& GetConfirmationUrl() const{ return m_confirmationUrl; }
69 inline bool ConfirmationUrlHasBeenSet() const { return m_confirmationUrlHasBeenSet; }
70 inline void SetConfirmationUrl(const Aws::String& value) { m_confirmationUrlHasBeenSet = true; m_confirmationUrl = value; }
71 inline void SetConfirmationUrl(Aws::String&& value) { m_confirmationUrlHasBeenSet = true; m_confirmationUrl = std::move(value); }
72 inline void SetConfirmationUrl(const char* value) { m_confirmationUrlHasBeenSet = true; m_confirmationUrl.assign(value); }
73 inline HttpAction& WithConfirmationUrl(const Aws::String& value) { SetConfirmationUrl(value); return *this;}
74 inline HttpAction& WithConfirmationUrl(Aws::String&& value) { SetConfirmationUrl(std::move(value)); return *this;}
75 inline HttpAction& WithConfirmationUrl(const char* value) { SetConfirmationUrl(value); return *this;}
77
79
82 inline const Aws::Vector<HttpActionHeader>& GetHeaders() const{ return m_headers; }
83 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
84 inline void SetHeaders(const Aws::Vector<HttpActionHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
85 inline void SetHeaders(Aws::Vector<HttpActionHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
86 inline HttpAction& WithHeaders(const Aws::Vector<HttpActionHeader>& value) { SetHeaders(value); return *this;}
87 inline HttpAction& WithHeaders(Aws::Vector<HttpActionHeader>&& value) { SetHeaders(std::move(value)); return *this;}
88 inline HttpAction& AddHeaders(const HttpActionHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
89 inline HttpAction& AddHeaders(HttpActionHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
91
93
96 inline const HttpAuthorization& GetAuth() const{ return m_auth; }
97 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
98 inline void SetAuth(const HttpAuthorization& value) { m_authHasBeenSet = true; m_auth = value; }
99 inline void SetAuth(HttpAuthorization&& value) { m_authHasBeenSet = true; m_auth = std::move(value); }
100 inline HttpAction& WithAuth(const HttpAuthorization& value) { SetAuth(value); return *this;}
101 inline HttpAction& WithAuth(HttpAuthorization&& value) { SetAuth(std::move(value)); return *this;}
103 private:
104
105 Aws::String m_url;
106 bool m_urlHasBeenSet = false;
107
108 Aws::String m_confirmationUrl;
109 bool m_confirmationUrlHasBeenSet = false;
110
112 bool m_headersHasBeenSet = false;
113
114 HttpAuthorization m_auth;
115 bool m_authHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace IoT
120} // namespace Aws
const Aws::Vector< HttpActionHeader > & GetHeaders() const
Definition HttpAction.h:82
HttpAction & WithUrl(const Aws::String &value)
Definition HttpAction.h:54
HttpAction & WithConfirmationUrl(const char *value)
Definition HttpAction.h:75
AWS_IOT_API HttpAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConfirmationUrl() const
Definition HttpAction.h:68
void SetConfirmationUrl(const char *value)
Definition HttpAction.h:72
HttpAction & WithHeaders(const Aws::Vector< HttpActionHeader > &value)
Definition HttpAction.h:86
HttpAction & AddHeaders(const HttpActionHeader &value)
Definition HttpAction.h:88
void SetUrl(const char *value)
Definition HttpAction.h:53
void SetAuth(HttpAuthorization &&value)
Definition HttpAction.h:99
void SetUrl(const Aws::String &value)
Definition HttpAction.h:51
void SetUrl(Aws::String &&value)
Definition HttpAction.h:52
HttpAction & AddHeaders(HttpActionHeader &&value)
Definition HttpAction.h:89
const HttpAuthorization & GetAuth() const
Definition HttpAction.h:96
bool ConfirmationUrlHasBeenSet() const
Definition HttpAction.h:69
bool HeadersHasBeenSet() const
Definition HttpAction.h:83
HttpAction & WithHeaders(Aws::Vector< HttpActionHeader > &&value)
Definition HttpAction.h:87
HttpAction & WithAuth(HttpAuthorization &&value)
Definition HttpAction.h:101
HttpAction & WithConfirmationUrl(const Aws::String &value)
Definition HttpAction.h:73
HttpAction & WithUrl(const char *value)
Definition HttpAction.h:56
void SetConfirmationUrl(const Aws::String &value)
Definition HttpAction.h:70
void SetAuth(const HttpAuthorization &value)
Definition HttpAction.h:98
void SetHeaders(const Aws::Vector< HttpActionHeader > &value)
Definition HttpAction.h:84
HttpAction & WithAuth(const HttpAuthorization &value)
Definition HttpAction.h:100
AWS_IOT_API HttpAction(Aws::Utils::Json::JsonView jsonValue)
void SetHeaders(Aws::Vector< HttpActionHeader > &&value)
Definition HttpAction.h:85
void SetConfirmationUrl(Aws::String &&value)
Definition HttpAction.h:71
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUrl() const
Definition HttpAction.h:49
HttpAction & WithUrl(Aws::String &&value)
Definition HttpAction.h:55
HttpAction & WithConfirmationUrl(Aws::String &&value)
Definition HttpAction.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue