AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResponsePagePath(const Aws::String& value) { m_responsePagePathHasBeenSet = true; m_responsePagePath = value; }
83 inline void SetResponsePagePath(Aws::String&& value) { m_responsePagePathHasBeenSet = true; m_responsePagePath = std::move(value); }
84 inline void SetResponsePagePath(const char* value) { m_responsePagePathHasBeenSet = true; m_responsePagePath.assign(value); }
85 inline CustomErrorResponse& WithResponsePagePath(const Aws::String& value) { SetResponsePagePath(value); return *this;}
86 inline CustomErrorResponse& WithResponsePagePath(Aws::String&& value) { SetResponsePagePath(std::move(value)); return *this;}
87 inline CustomErrorResponse& WithResponsePagePath(const char* value) { SetResponsePagePath(value); return *this;}
89
91
107 inline const Aws::String& GetResponseCode() const{ return m_responseCode; }
108 inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
109 inline void SetResponseCode(const Aws::String& value) { m_responseCodeHasBeenSet = true; m_responseCode = value; }
110 inline void SetResponseCode(Aws::String&& value) { m_responseCodeHasBeenSet = true; m_responseCode = std::move(value); }
111 inline void SetResponseCode(const char* value) { m_responseCodeHasBeenSet = true; m_responseCode.assign(value); }
112 inline CustomErrorResponse& WithResponseCode(const Aws::String& value) { SetResponseCode(value); return *this;}
113 inline CustomErrorResponse& WithResponseCode(Aws::String&& value) { SetResponseCode(std::move(value)); return *this;}
114 inline CustomErrorResponse& WithResponseCode(const char* value) { SetResponseCode(value); return *this;}
116
118
127 inline long long GetErrorCachingMinTTL() const{ return m_errorCachingMinTTL; }
128 inline bool ErrorCachingMinTTLHasBeenSet() const { return m_errorCachingMinTTLHasBeenSet; }
129 inline void SetErrorCachingMinTTL(long long value) { m_errorCachingMinTTLHasBeenSet = true; m_errorCachingMinTTL = value; }
130 inline CustomErrorResponse& WithErrorCachingMinTTL(long long value) { SetErrorCachingMinTTL(value); return *this;}
132 private:
133
134 int m_errorCode;
135 bool m_errorCodeHasBeenSet = false;
136
137 Aws::String m_responsePagePath;
138 bool m_responsePagePathHasBeenSet = false;
139
140 Aws::String m_responseCode;
141 bool m_responseCodeHasBeenSet = false;
142
143 long long m_errorCachingMinTTL;
144 bool m_errorCachingMinTTLHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace CloudFront
149} // namespace Aws
void SetResponseCode(const Aws::String &value)
CustomErrorResponse & WithErrorCode(int value)
CustomErrorResponse & WithResponsePagePath(const Aws::String &value)
CustomErrorResponse & WithResponseCode(Aws::String &&value)
CustomErrorResponse & WithErrorCachingMinTTL(long long value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CustomErrorResponse & WithResponsePagePath(Aws::String &&value)
AWS_CLOUDFRONT_API CustomErrorResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResponsePagePath(const Aws::String &value)
CustomErrorResponse & WithResponseCode(const Aws::String &value)
AWS_CLOUDFRONT_API CustomErrorResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CustomErrorResponse & WithResponsePagePath(const char *value)
CustomErrorResponse & WithResponseCode(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String