AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
DistributionCustomErrorResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
31 public:
32 AWS_LIGHTSAIL_API DistributionCustomErrorResponse() = default;
35 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetErrorCode() const { return m_errorCode; }
43 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
44 inline void SetErrorCode(int value) {
45 m_errorCodeHasBeenSet = true;
46 m_errorCode = value;
47 }
49 SetErrorCode(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetResponseCode() const { return m_responseCode; }
60 inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
61 template <typename ResponseCodeT = Aws::String>
62 void SetResponseCode(ResponseCodeT&& value) {
63 m_responseCodeHasBeenSet = true;
64 m_responseCode = std::forward<ResponseCodeT>(value);
65 }
66 template <typename ResponseCodeT = Aws::String>
68 SetResponseCode(std::forward<ResponseCodeT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetResponsePagePath() const { return m_responsePagePath; }
80 inline bool ResponsePagePathHasBeenSet() const { return m_responsePagePathHasBeenSet; }
81 template <typename ResponsePagePathT = Aws::String>
82 void SetResponsePagePath(ResponsePagePathT&& value) {
83 m_responsePagePathHasBeenSet = true;
84 m_responsePagePath = std::forward<ResponsePagePathT>(value);
85 }
86 template <typename ResponsePagePathT = Aws::String>
88 SetResponsePagePath(std::forward<ResponsePagePathT>(value));
89 return *this;
90 }
92
94
99 inline long long GetErrorCachingMinTTL() const { return m_errorCachingMinTTL; }
100 inline bool ErrorCachingMinTTLHasBeenSet() const { return m_errorCachingMinTTLHasBeenSet; }
101 inline void SetErrorCachingMinTTL(long long value) {
102 m_errorCachingMinTTLHasBeenSet = true;
103 m_errorCachingMinTTL = value;
104 }
107 return *this;
108 }
110 private:
111 int m_errorCode{0};
112
113 Aws::String m_responseCode;
114
115 Aws::String m_responsePagePath;
116
117 long long m_errorCachingMinTTL{0};
118 bool m_errorCodeHasBeenSet = false;
119 bool m_responseCodeHasBeenSet = false;
120 bool m_responsePagePathHasBeenSet = false;
121 bool m_errorCachingMinTTLHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Lightsail
126} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API DistributionCustomErrorResponse()=default
DistributionCustomErrorResponse & WithResponsePagePath(ResponsePagePathT &&value)
AWS_LIGHTSAIL_API DistributionCustomErrorResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API DistributionCustomErrorResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
DistributionCustomErrorResponse & WithErrorCachingMinTTL(long long value)
DistributionCustomErrorResponse & WithResponseCode(ResponseCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue