AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront
21{
22namespace Model
23{
24
38 {
39 public:
40 AWS_CLOUDFRONT_API CustomErrorResponse() = default;
41 AWS_CLOUDFRONT_API CustomErrorResponse(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_CLOUDFRONT_API CustomErrorResponse& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
52 inline int GetErrorCode() const { return m_errorCode; }
53 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
54 inline void SetErrorCode(int value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
55 inline CustomErrorResponse& WithErrorCode(int value) { SetErrorCode(value); return *this;}
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) { m_responsePagePathHasBeenSet = true; m_responsePagePath = std::forward<ResponsePagePathT>(value); }
84 template<typename ResponsePagePathT = Aws::String>
85 CustomErrorResponse& WithResponsePagePath(ResponsePagePathT&& value) { SetResponsePagePath(std::forward<ResponsePagePathT>(value)); return *this;}
87
89
105 inline const Aws::String& GetResponseCode() const { return m_responseCode; }
106 inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
107 template<typename ResponseCodeT = Aws::String>
108 void SetResponseCode(ResponseCodeT&& value) { m_responseCodeHasBeenSet = true; m_responseCode = std::forward<ResponseCodeT>(value); }
109 template<typename ResponseCodeT = Aws::String>
110 CustomErrorResponse& WithResponseCode(ResponseCodeT&& value) { SetResponseCode(std::forward<ResponseCodeT>(value)); return *this;}
112
114
123 inline long long GetErrorCachingMinTTL() const { return m_errorCachingMinTTL; }
124 inline bool ErrorCachingMinTTLHasBeenSet() const { return m_errorCachingMinTTLHasBeenSet; }
125 inline void SetErrorCachingMinTTL(long long value) { m_errorCachingMinTTLHasBeenSet = true; m_errorCachingMinTTL = value; }
126 inline CustomErrorResponse& WithErrorCachingMinTTL(long long value) { SetErrorCachingMinTTL(value); return *this;}
128 private:
129
130 int m_errorCode{0};
131 bool m_errorCodeHasBeenSet = false;
132
133 Aws::String m_responsePagePath;
134 bool m_responsePagePathHasBeenSet = false;
135
136 Aws::String m_responseCode;
137 bool m_responseCodeHasBeenSet = false;
138
139 long long m_errorCachingMinTTL{0};
140 bool m_errorCachingMinTTLHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace CloudFront
145} // 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