AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CustomErrorResponse.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace CloudFront {
19namespace Model {
20
34 public:
35 AWS_CLOUDFRONT_API CustomErrorResponse() = default;
36 AWS_CLOUDFRONT_API CustomErrorResponse(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API CustomErrorResponse& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
42
46 inline int GetErrorCode() const { return m_errorCode; }
47 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
48 inline void SetErrorCode(int value) {
49 m_errorCodeHasBeenSet = true;
50 m_errorCode = value;
51 }
53 SetErrorCode(value);
54 return *this;
55 }
57
59
80 inline const Aws::String& GetResponsePagePath() const { return m_responsePagePath; }
81 inline bool ResponsePagePathHasBeenSet() const { return m_responsePagePathHasBeenSet; }
82 template <typename ResponsePagePathT = Aws::String>
83 void SetResponsePagePath(ResponsePagePathT&& value) {
84 m_responsePagePathHasBeenSet = true;
85 m_responsePagePath = std::forward<ResponsePagePathT>(value);
86 }
87 template <typename ResponsePagePathT = Aws::String>
88 CustomErrorResponse& WithResponsePagePath(ResponsePagePathT&& value) {
89 SetResponsePagePath(std::forward<ResponsePagePathT>(value));
90 return *this;
91 }
93
95
111 inline const Aws::String& GetResponseCode() const { return m_responseCode; }
112 inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
113 template <typename ResponseCodeT = Aws::String>
114 void SetResponseCode(ResponseCodeT&& value) {
115 m_responseCodeHasBeenSet = true;
116 m_responseCode = std::forward<ResponseCodeT>(value);
117 }
118 template <typename ResponseCodeT = Aws::String>
119 CustomErrorResponse& WithResponseCode(ResponseCodeT&& value) {
120 SetResponseCode(std::forward<ResponseCodeT>(value));
121 return *this;
122 }
124
126
135 inline long long GetErrorCachingMinTTL() const { return m_errorCachingMinTTL; }
136 inline bool ErrorCachingMinTTLHasBeenSet() const { return m_errorCachingMinTTLHasBeenSet; }
137 inline void SetErrorCachingMinTTL(long long value) {
138 m_errorCachingMinTTLHasBeenSet = true;
139 m_errorCachingMinTTL = value;
140 }
143 return *this;
144 }
146 private:
147 int m_errorCode{0};
148
149 Aws::String m_responsePagePath;
150
151 Aws::String m_responseCode;
152
153 long long m_errorCachingMinTTL{0};
154 bool m_errorCodeHasBeenSet = false;
155 bool m_responsePagePathHasBeenSet = false;
156 bool m_responseCodeHasBeenSet = false;
157 bool m_errorCachingMinTTLHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace CloudFront
162} // namespace Aws
CustomErrorResponse & WithErrorCode(int value)
CustomErrorResponse & WithErrorCachingMinTTL(long long value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CustomErrorResponse & WithResponseCode(ResponseCodeT &&value)
void SetResponsePagePath(ResponsePagePathT &&value)
AWS_CLOUDFRONT_API CustomErrorResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API CustomErrorResponse()=default
CustomErrorResponse & WithResponsePagePath(ResponsePagePathT &&value)
AWS_CLOUDFRONT_API CustomErrorResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String