AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Redirect.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/Protocol.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:
35 AWS_S3_API Redirect();
36 AWS_S3_API Redirect(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3_API Redirect& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::String& GetHostName() const{ return m_hostName; }
47 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
48 inline void SetHostName(const Aws::String& value) { m_hostNameHasBeenSet = true; m_hostName = value; }
49 inline void SetHostName(Aws::String&& value) { m_hostNameHasBeenSet = true; m_hostName = std::move(value); }
50 inline void SetHostName(const char* value) { m_hostNameHasBeenSet = true; m_hostName.assign(value); }
51 inline Redirect& WithHostName(const Aws::String& value) { SetHostName(value); return *this;}
52 inline Redirect& WithHostName(Aws::String&& value) { SetHostName(std::move(value)); return *this;}
53 inline Redirect& WithHostName(const char* value) { SetHostName(value); return *this;}
55
57
61 inline const Aws::String& GetHttpRedirectCode() const{ return m_httpRedirectCode; }
62 inline bool HttpRedirectCodeHasBeenSet() const { return m_httpRedirectCodeHasBeenSet; }
63 inline void SetHttpRedirectCode(const Aws::String& value) { m_httpRedirectCodeHasBeenSet = true; m_httpRedirectCode = value; }
64 inline void SetHttpRedirectCode(Aws::String&& value) { m_httpRedirectCodeHasBeenSet = true; m_httpRedirectCode = std::move(value); }
65 inline void SetHttpRedirectCode(const char* value) { m_httpRedirectCodeHasBeenSet = true; m_httpRedirectCode.assign(value); }
66 inline Redirect& WithHttpRedirectCode(const Aws::String& value) { SetHttpRedirectCode(value); return *this;}
67 inline Redirect& WithHttpRedirectCode(Aws::String&& value) { SetHttpRedirectCode(std::move(value)); return *this;}
68 inline Redirect& WithHttpRedirectCode(const char* value) { SetHttpRedirectCode(value); return *this;}
70
72
76 inline const Protocol& GetProtocol() const{ return m_protocol; }
77 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
78 inline void SetProtocol(const Protocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
79 inline void SetProtocol(Protocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
80 inline Redirect& WithProtocol(const Protocol& value) { SetProtocol(value); return *this;}
81 inline Redirect& WithProtocol(Protocol&& value) { SetProtocol(std::move(value)); return *this;}
83
85
98 inline const Aws::String& GetReplaceKeyPrefixWith() const{ return m_replaceKeyPrefixWith; }
99 inline bool ReplaceKeyPrefixWithHasBeenSet() const { return m_replaceKeyPrefixWithHasBeenSet; }
100 inline void SetReplaceKeyPrefixWith(const Aws::String& value) { m_replaceKeyPrefixWithHasBeenSet = true; m_replaceKeyPrefixWith = value; }
101 inline void SetReplaceKeyPrefixWith(Aws::String&& value) { m_replaceKeyPrefixWithHasBeenSet = true; m_replaceKeyPrefixWith = std::move(value); }
102 inline void SetReplaceKeyPrefixWith(const char* value) { m_replaceKeyPrefixWithHasBeenSet = true; m_replaceKeyPrefixWith.assign(value); }
103 inline Redirect& WithReplaceKeyPrefixWith(const Aws::String& value) { SetReplaceKeyPrefixWith(value); return *this;}
104 inline Redirect& WithReplaceKeyPrefixWith(Aws::String&& value) { SetReplaceKeyPrefixWith(std::move(value)); return *this;}
105 inline Redirect& WithReplaceKeyPrefixWith(const char* value) { SetReplaceKeyPrefixWith(value); return *this;}
107
109
119 inline const Aws::String& GetReplaceKeyWith() const{ return m_replaceKeyWith; }
120 inline bool ReplaceKeyWithHasBeenSet() const { return m_replaceKeyWithHasBeenSet; }
121 inline void SetReplaceKeyWith(const Aws::String& value) { m_replaceKeyWithHasBeenSet = true; m_replaceKeyWith = value; }
122 inline void SetReplaceKeyWith(Aws::String&& value) { m_replaceKeyWithHasBeenSet = true; m_replaceKeyWith = std::move(value); }
123 inline void SetReplaceKeyWith(const char* value) { m_replaceKeyWithHasBeenSet = true; m_replaceKeyWith.assign(value); }
124 inline Redirect& WithReplaceKeyWith(const Aws::String& value) { SetReplaceKeyWith(value); return *this;}
125 inline Redirect& WithReplaceKeyWith(Aws::String&& value) { SetReplaceKeyWith(std::move(value)); return *this;}
126 inline Redirect& WithReplaceKeyWith(const char* value) { SetReplaceKeyWith(value); return *this;}
128 private:
129
130 Aws::String m_hostName;
131 bool m_hostNameHasBeenSet = false;
132
133 Aws::String m_httpRedirectCode;
134 bool m_httpRedirectCodeHasBeenSet = false;
135
136 Protocol m_protocol;
137 bool m_protocolHasBeenSet = false;
138
139 Aws::String m_replaceKeyPrefixWith;
140 bool m_replaceKeyPrefixWithHasBeenSet = false;
141
142 Aws::String m_replaceKeyWith;
143 bool m_replaceKeyWithHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace S3
148} // namespace Aws
Redirect & WithReplaceKeyPrefixWith(const char *value)
Definition Redirect.h:105
Redirect & WithProtocol(Protocol &&value)
Definition Redirect.h:81
Redirect & WithReplaceKeyPrefixWith(const Aws::String &value)
Definition Redirect.h:103
void SetHostName(const char *value)
Definition Redirect.h:50
void SetHostName(const Aws::String &value)
Definition Redirect.h:48
const Protocol & GetProtocol() const
Definition Redirect.h:76
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Redirect & WithReplaceKeyPrefixWith(Aws::String &&value)
Definition Redirect.h:104
void SetReplaceKeyPrefixWith(const Aws::String &value)
Definition Redirect.h:100
void SetHttpRedirectCode(const Aws::String &value)
Definition Redirect.h:63
Redirect & WithHttpRedirectCode(Aws::String &&value)
Definition Redirect.h:67
bool HttpRedirectCodeHasBeenSet() const
Definition Redirect.h:62
Redirect & WithReplaceKeyWith(const Aws::String &value)
Definition Redirect.h:124
Redirect & WithHostName(const char *value)
Definition Redirect.h:53
AWS_S3_API Redirect(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetReplaceKeyPrefixWith() const
Definition Redirect.h:98
void SetReplaceKeyPrefixWith(Aws::String &&value)
Definition Redirect.h:101
const Aws::String & GetHttpRedirectCode() const
Definition Redirect.h:61
bool HostNameHasBeenSet() const
Definition Redirect.h:47
void SetHostName(Aws::String &&value)
Definition Redirect.h:49
void SetReplaceKeyWith(const char *value)
Definition Redirect.h:123
void SetHttpRedirectCode(const char *value)
Definition Redirect.h:65
void SetProtocol(Protocol &&value)
Definition Redirect.h:79
void SetHttpRedirectCode(Aws::String &&value)
Definition Redirect.h:64
bool ReplaceKeyWithHasBeenSet() const
Definition Redirect.h:120
Redirect & WithReplaceKeyWith(Aws::String &&value)
Definition Redirect.h:125
Redirect & WithReplaceKeyWith(const char *value)
Definition Redirect.h:126
bool ProtocolHasBeenSet() const
Definition Redirect.h:77
Redirect & WithProtocol(const Protocol &value)
Definition Redirect.h:80
Redirect & WithHttpRedirectCode(const char *value)
Definition Redirect.h:68
Redirect & WithHttpRedirectCode(const Aws::String &value)
Definition Redirect.h:66
void SetReplaceKeyWith(Aws::String &&value)
Definition Redirect.h:122
void SetReplaceKeyPrefixWith(const char *value)
Definition Redirect.h:102
const Aws::String & GetReplaceKeyWith() const
Definition Redirect.h:119
AWS_S3_API Redirect & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Redirect & WithHostName(Aws::String &&value)
Definition Redirect.h:52
const Aws::String & GetHostName() const
Definition Redirect.h:46
bool ReplaceKeyPrefixWithHasBeenSet() const
Definition Redirect.h:99
Redirect & WithHostName(const Aws::String &value)
Definition Redirect.h:51
void SetReplaceKeyWith(const Aws::String &value)
Definition Redirect.h:121
void SetProtocol(const Protocol &value)
Definition Redirect.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String