AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename HostNameT = Aws::String>
49 void SetHostName(HostNameT&& value) { m_hostNameHasBeenSet = true; m_hostName = std::forward<HostNameT>(value); }
50 template<typename HostNameT = Aws::String>
51 Redirect& WithHostName(HostNameT&& value) { SetHostName(std::forward<HostNameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetHttpRedirectCode() const { return m_httpRedirectCode; }
60 inline bool HttpRedirectCodeHasBeenSet() const { return m_httpRedirectCodeHasBeenSet; }
61 template<typename HttpRedirectCodeT = Aws::String>
62 void SetHttpRedirectCode(HttpRedirectCodeT&& value) { m_httpRedirectCodeHasBeenSet = true; m_httpRedirectCode = std::forward<HttpRedirectCodeT>(value); }
63 template<typename HttpRedirectCodeT = Aws::String>
64 Redirect& WithHttpRedirectCode(HttpRedirectCodeT&& value) { SetHttpRedirectCode(std::forward<HttpRedirectCodeT>(value)); return *this;}
66
68
72 inline Protocol GetProtocol() const { return m_protocol; }
73 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
74 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
75 inline Redirect& WithProtocol(Protocol value) { SetProtocol(value); return *this;}
77
79
92 inline const Aws::String& GetReplaceKeyPrefixWith() const { return m_replaceKeyPrefixWith; }
93 inline bool ReplaceKeyPrefixWithHasBeenSet() const { return m_replaceKeyPrefixWithHasBeenSet; }
94 template<typename ReplaceKeyPrefixWithT = Aws::String>
95 void SetReplaceKeyPrefixWith(ReplaceKeyPrefixWithT&& value) { m_replaceKeyPrefixWithHasBeenSet = true; m_replaceKeyPrefixWith = std::forward<ReplaceKeyPrefixWithT>(value); }
96 template<typename ReplaceKeyPrefixWithT = Aws::String>
97 Redirect& WithReplaceKeyPrefixWith(ReplaceKeyPrefixWithT&& value) { SetReplaceKeyPrefixWith(std::forward<ReplaceKeyPrefixWithT>(value)); return *this;}
99
101
111 inline const Aws::String& GetReplaceKeyWith() const { return m_replaceKeyWith; }
112 inline bool ReplaceKeyWithHasBeenSet() const { return m_replaceKeyWithHasBeenSet; }
113 template<typename ReplaceKeyWithT = Aws::String>
114 void SetReplaceKeyWith(ReplaceKeyWithT&& value) { m_replaceKeyWithHasBeenSet = true; m_replaceKeyWith = std::forward<ReplaceKeyWithT>(value); }
115 template<typename ReplaceKeyWithT = Aws::String>
116 Redirect& WithReplaceKeyWith(ReplaceKeyWithT&& value) { SetReplaceKeyWith(std::forward<ReplaceKeyWithT>(value)); return *this;}
118 private:
119
120 Aws::String m_hostName;
121 bool m_hostNameHasBeenSet = false;
122
123 Aws::String m_httpRedirectCode;
124 bool m_httpRedirectCodeHasBeenSet = false;
125
126 Protocol m_protocol{Protocol::NOT_SET};
127 bool m_protocolHasBeenSet = false;
128
129 Aws::String m_replaceKeyPrefixWith;
130 bool m_replaceKeyPrefixWithHasBeenSet = false;
131
132 Aws::String m_replaceKeyWith;
133 bool m_replaceKeyWithHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace S3
138} // namespace Aws
void SetReplaceKeyPrefixWith(ReplaceKeyPrefixWithT &&value)
Definition Redirect.h:95
Protocol GetProtocol() const
Definition Redirect.h:72
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Redirect & WithReplaceKeyWith(ReplaceKeyWithT &&value)
Definition Redirect.h:116
Redirect & WithHostName(HostNameT &&value)
Definition Redirect.h:51
void SetHostName(HostNameT &&value)
Definition Redirect.h:49
void SetHttpRedirectCode(HttpRedirectCodeT &&value)
Definition Redirect.h:62
Redirect & WithProtocol(Protocol value)
Definition Redirect.h:75
bool HttpRedirectCodeHasBeenSet() const
Definition Redirect.h:60
AWS_S3_API Redirect(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetReplaceKeyPrefixWith() const
Definition Redirect.h:92
void SetProtocol(Protocol value)
Definition Redirect.h:74
const Aws::String & GetHttpRedirectCode() const
Definition Redirect.h:59
bool HostNameHasBeenSet() const
Definition Redirect.h:47
bool ReplaceKeyWithHasBeenSet() const
Definition Redirect.h:112
AWS_S3_API Redirect()=default
bool ProtocolHasBeenSet() const
Definition Redirect.h:73
const Aws::String & GetReplaceKeyWith() const
Definition Redirect.h:111
Redirect & WithHttpRedirectCode(HttpRedirectCodeT &&value)
Definition Redirect.h:64
AWS_S3_API Redirect & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetHostName() const
Definition Redirect.h:46
bool ReplaceKeyPrefixWithHasBeenSet() const
Definition Redirect.h:93
void SetReplaceKeyWith(ReplaceKeyWithT &&value)
Definition Redirect.h:114
Redirect & WithReplaceKeyPrefixWith(ReplaceKeyPrefixWithT &&value)
Definition Redirect.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String