AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Redirect.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
33 {
34 public:
38
40
41
45 inline const Aws::String& GetHostName() const{ return m_hostName; }
46
50 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
51
55 inline void SetHostName(const Aws::String& value) { m_hostNameHasBeenSet = true; m_hostName = value; }
56
60 inline void SetHostName(Aws::String&& value) { m_hostNameHasBeenSet = true; m_hostName = std::move(value); }
61
65 inline void SetHostName(const char* value) { m_hostNameHasBeenSet = true; m_hostName.assign(value); }
66
70 inline Redirect& WithHostName(const Aws::String& value) { SetHostName(value); return *this;}
71
75 inline Redirect& WithHostName(Aws::String&& value) { SetHostName(std::move(value)); return *this;}
76
80 inline Redirect& WithHostName(const char* value) { SetHostName(value); return *this;}
81
82
87 inline const Aws::String& GetHttpRedirectCode() const{ return m_httpRedirectCode; }
88
93 inline bool HttpRedirectCodeHasBeenSet() const { return m_httpRedirectCodeHasBeenSet; }
94
99 inline void SetHttpRedirectCode(const Aws::String& value) { m_httpRedirectCodeHasBeenSet = true; m_httpRedirectCode = value; }
100
105 inline void SetHttpRedirectCode(Aws::String&& value) { m_httpRedirectCodeHasBeenSet = true; m_httpRedirectCode = std::move(value); }
106
111 inline void SetHttpRedirectCode(const char* value) { m_httpRedirectCodeHasBeenSet = true; m_httpRedirectCode.assign(value); }
112
117 inline Redirect& WithHttpRedirectCode(const Aws::String& value) { SetHttpRedirectCode(value); return *this;}
118
123 inline Redirect& WithHttpRedirectCode(Aws::String&& value) { SetHttpRedirectCode(std::move(value)); return *this;}
124
129 inline Redirect& WithHttpRedirectCode(const char* value) { SetHttpRedirectCode(value); return *this;}
130
131
136 inline const Protocol& GetProtocol() const{ return m_protocol; }
137
142 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
143
148 inline void SetProtocol(const Protocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
149
154 inline void SetProtocol(Protocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
155
160 inline Redirect& WithProtocol(const Protocol& value) { SetProtocol(value); return *this;}
161
166 inline Redirect& WithProtocol(Protocol&& value) { SetProtocol(std::move(value)); return *this;}
167
168
182 inline const Aws::String& GetReplaceKeyPrefixWith() const{ return m_replaceKeyPrefixWith; }
183
197 inline bool ReplaceKeyPrefixWithHasBeenSet() const { return m_replaceKeyPrefixWithHasBeenSet; }
198
212 inline void SetReplaceKeyPrefixWith(const Aws::String& value) { m_replaceKeyPrefixWithHasBeenSet = true; m_replaceKeyPrefixWith = value; }
213
227 inline void SetReplaceKeyPrefixWith(Aws::String&& value) { m_replaceKeyPrefixWithHasBeenSet = true; m_replaceKeyPrefixWith = std::move(value); }
228
242 inline void SetReplaceKeyPrefixWith(const char* value) { m_replaceKeyPrefixWithHasBeenSet = true; m_replaceKeyPrefixWith.assign(value); }
243
257 inline Redirect& WithReplaceKeyPrefixWith(const Aws::String& value) { SetReplaceKeyPrefixWith(value); return *this;}
258
272 inline Redirect& WithReplaceKeyPrefixWith(Aws::String&& value) { SetReplaceKeyPrefixWith(std::move(value)); return *this;}
273
287 inline Redirect& WithReplaceKeyPrefixWith(const char* value) { SetReplaceKeyPrefixWith(value); return *this;}
288
289
300 inline const Aws::String& GetReplaceKeyWith() const{ return m_replaceKeyWith; }
301
312 inline bool ReplaceKeyWithHasBeenSet() const { return m_replaceKeyWithHasBeenSet; }
313
324 inline void SetReplaceKeyWith(const Aws::String& value) { m_replaceKeyWithHasBeenSet = true; m_replaceKeyWith = value; }
325
336 inline void SetReplaceKeyWith(Aws::String&& value) { m_replaceKeyWithHasBeenSet = true; m_replaceKeyWith = std::move(value); }
337
348 inline void SetReplaceKeyWith(const char* value) { m_replaceKeyWithHasBeenSet = true; m_replaceKeyWith.assign(value); }
349
360 inline Redirect& WithReplaceKeyWith(const Aws::String& value) { SetReplaceKeyWith(value); return *this;}
361
372 inline Redirect& WithReplaceKeyWith(Aws::String&& value) { SetReplaceKeyWith(std::move(value)); return *this;}
373
384 inline Redirect& WithReplaceKeyWith(const char* value) { SetReplaceKeyWith(value); return *this;}
385
386 private:
387
388 Aws::String m_hostName;
389 bool m_hostNameHasBeenSet = false;
390
391 Aws::String m_httpRedirectCode;
392 bool m_httpRedirectCodeHasBeenSet = false;
393
394 Protocol m_protocol;
395 bool m_protocolHasBeenSet = false;
396
397 Aws::String m_replaceKeyPrefixWith;
398 bool m_replaceKeyPrefixWithHasBeenSet = false;
399
400 Aws::String m_replaceKeyWith;
401 bool m_replaceKeyWithHasBeenSet = false;
402 };
403
404} // namespace Model
405} // namespace S3
406} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Redirect & WithReplaceKeyPrefixWith(const char *value)
Definition: Redirect.h:287
Redirect & WithProtocol(Protocol &&value)
Definition: Redirect.h:166
Redirect & WithReplaceKeyPrefixWith(const Aws::String &value)
Definition: Redirect.h:257
void SetHostName(const char *value)
Definition: Redirect.h:65
void SetHostName(const Aws::String &value)
Definition: Redirect.h:55
const Protocol & GetProtocol() const
Definition: Redirect.h:136
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Redirect & WithReplaceKeyPrefixWith(Aws::String &&value)
Definition: Redirect.h:272
void SetReplaceKeyPrefixWith(const Aws::String &value)
Definition: Redirect.h:212
void SetHttpRedirectCode(const Aws::String &value)
Definition: Redirect.h:99
Redirect & WithHttpRedirectCode(Aws::String &&value)
Definition: Redirect.h:123
bool HttpRedirectCodeHasBeenSet() const
Definition: Redirect.h:93
Redirect & WithReplaceKeyWith(const Aws::String &value)
Definition: Redirect.h:360
Redirect & WithHostName(const char *value)
Definition: Redirect.h:80
AWS_S3_API Redirect(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetReplaceKeyPrefixWith() const
Definition: Redirect.h:182
void SetReplaceKeyPrefixWith(Aws::String &&value)
Definition: Redirect.h:227
const Aws::String & GetHttpRedirectCode() const
Definition: Redirect.h:87
bool HostNameHasBeenSet() const
Definition: Redirect.h:50
void SetHostName(Aws::String &&value)
Definition: Redirect.h:60
void SetReplaceKeyWith(const char *value)
Definition: Redirect.h:348
void SetHttpRedirectCode(const char *value)
Definition: Redirect.h:111
void SetProtocol(Protocol &&value)
Definition: Redirect.h:154
void SetHttpRedirectCode(Aws::String &&value)
Definition: Redirect.h:105
bool ReplaceKeyWithHasBeenSet() const
Definition: Redirect.h:312
Redirect & WithReplaceKeyWith(Aws::String &&value)
Definition: Redirect.h:372
Redirect & WithReplaceKeyWith(const char *value)
Definition: Redirect.h:384
bool ProtocolHasBeenSet() const
Definition: Redirect.h:142
Redirect & WithProtocol(const Protocol &value)
Definition: Redirect.h:160
Redirect & WithHttpRedirectCode(const char *value)
Definition: Redirect.h:129
Redirect & WithHttpRedirectCode(const Aws::String &value)
Definition: Redirect.h:117
void SetReplaceKeyWith(Aws::String &&value)
Definition: Redirect.h:336
void SetReplaceKeyPrefixWith(const char *value)
Definition: Redirect.h:242
const Aws::String & GetReplaceKeyWith() const
Definition: Redirect.h:300
AWS_S3_API Redirect & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Redirect & WithHostName(Aws::String &&value)
Definition: Redirect.h:75
const Aws::String & GetHostName() const
Definition: Redirect.h:45
bool ReplaceKeyPrefixWithHasBeenSet() const
Definition: Redirect.h:197
Redirect & WithHostName(const Aws::String &value)
Definition: Redirect.h:70
void SetReplaceKeyWith(const Aws::String &value)
Definition: Redirect.h:324
void SetProtocol(const Protocol &value)
Definition: Redirect.h:148
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String