AWS SDK for C++  1.9.21
AWS SDK for C++
CustomErrorResponse.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
38  {
39  public:
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
46 
51  inline int GetErrorCode() const{ return m_errorCode; }
52 
57  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
58 
63  inline void SetErrorCode(int value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
64 
69  inline CustomErrorResponse& WithErrorCode(int value) { SetErrorCode(value); return *this;}
70 
71 
93  inline const Aws::String& GetResponsePagePath() const{ return m_responsePagePath; }
94 
116  inline bool ResponsePagePathHasBeenSet() const { return m_responsePagePathHasBeenSet; }
117 
139  inline void SetResponsePagePath(const Aws::String& value) { m_responsePagePathHasBeenSet = true; m_responsePagePath = value; }
140 
162  inline void SetResponsePagePath(Aws::String&& value) { m_responsePagePathHasBeenSet = true; m_responsePagePath = std::move(value); }
163 
185  inline void SetResponsePagePath(const char* value) { m_responsePagePathHasBeenSet = true; m_responsePagePath.assign(value); }
186 
208  inline CustomErrorResponse& WithResponsePagePath(const Aws::String& value) { SetResponsePagePath(value); return *this;}
209 
231  inline CustomErrorResponse& WithResponsePagePath(Aws::String&& value) { SetResponsePagePath(std::move(value)); return *this;}
232 
254  inline CustomErrorResponse& WithResponsePagePath(const char* value) { SetResponsePagePath(value); return *this;}
255 
256 
273  inline const Aws::String& GetResponseCode() const{ return m_responseCode; }
274 
291  inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
292 
309  inline void SetResponseCode(const Aws::String& value) { m_responseCodeHasBeenSet = true; m_responseCode = value; }
310 
327  inline void SetResponseCode(Aws::String&& value) { m_responseCodeHasBeenSet = true; m_responseCode = std::move(value); }
328 
345  inline void SetResponseCode(const char* value) { m_responseCodeHasBeenSet = true; m_responseCode.assign(value); }
346 
363  inline CustomErrorResponse& WithResponseCode(const Aws::String& value) { SetResponseCode(value); return *this;}
364 
381  inline CustomErrorResponse& WithResponseCode(Aws::String&& value) { SetResponseCode(std::move(value)); return *this;}
382 
399  inline CustomErrorResponse& WithResponseCode(const char* value) { SetResponseCode(value); return *this;}
400 
401 
411  inline long long GetErrorCachingMinTTL() const{ return m_errorCachingMinTTL; }
412 
422  inline bool ErrorCachingMinTTLHasBeenSet() const { return m_errorCachingMinTTLHasBeenSet; }
423 
433  inline void SetErrorCachingMinTTL(long long value) { m_errorCachingMinTTLHasBeenSet = true; m_errorCachingMinTTL = value; }
434 
444  inline CustomErrorResponse& WithErrorCachingMinTTL(long long value) { SetErrorCachingMinTTL(value); return *this;}
445 
446  private:
447 
448  int m_errorCode;
449  bool m_errorCodeHasBeenSet;
450 
451  Aws::String m_responsePagePath;
452  bool m_responsePagePathHasBeenSet;
453 
454  Aws::String m_responseCode;
455  bool m_responseCodeHasBeenSet;
456 
457  long long m_errorCachingMinTTL;
458  bool m_errorCachingMinTTLHasBeenSet;
459  };
460 
461 } // namespace Model
462 } // namespace CloudFront
463 } // namespace Aws
Aws::CloudFront::Model::CustomErrorResponse::WithErrorCachingMinTTL
CustomErrorResponse & WithErrorCachingMinTTL(long long value)
Definition: CustomErrorResponse.h:444
Aws::CloudFront::Model::CustomErrorResponse::WithErrorCode
CustomErrorResponse & WithErrorCode(int value)
Definition: CustomErrorResponse.h:69
Aws::CloudFront::Model::CustomErrorResponse::SetErrorCode
void SetErrorCode(int value)
Definition: CustomErrorResponse.h:63
Aws::CloudFront::Model::CustomErrorResponse::SetResponseCode
void SetResponseCode(const char *value)
Definition: CustomErrorResponse.h:345
Aws::CloudFront::Model::CustomErrorResponse::GetErrorCachingMinTTL
long long GetErrorCachingMinTTL() const
Definition: CustomErrorResponse.h:411
Aws::CloudFront::Model::CustomErrorResponse::SetResponsePagePath
void SetResponsePagePath(const char *value)
Definition: CustomErrorResponse.h:185
Aws::CloudFront::Model::CustomErrorResponse::WithResponseCode
CustomErrorResponse & WithResponseCode(const Aws::String &value)
Definition: CustomErrorResponse.h:363
Aws::CloudFront::Model::CustomErrorResponse::WithResponseCode
CustomErrorResponse & WithResponseCode(Aws::String &&value)
Definition: CustomErrorResponse.h:381
Aws::CloudFront::Model::CustomErrorResponse::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: CustomErrorResponse.h:57
Aws::CloudFront::Model::CustomErrorResponse::ResponsePagePathHasBeenSet
bool ResponsePagePathHasBeenSet() const
Definition: CustomErrorResponse.h:116
Aws::CloudFront::Model::CustomErrorResponse::operator=
CustomErrorResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CustomErrorResponse::ResponseCodeHasBeenSet
bool ResponseCodeHasBeenSet() const
Definition: CustomErrorResponse.h:291
Aws::CloudFront::Model::CustomErrorResponse::SetResponseCode
void SetResponseCode(Aws::String &&value)
Definition: CustomErrorResponse.h:327
Aws::CloudFront::Model::CustomErrorResponse::GetResponseCode
const Aws::String & GetResponseCode() const
Definition: CustomErrorResponse.h:273
Aws::CloudFront::Model::CustomErrorResponse::SetResponseCode
void SetResponseCode(const Aws::String &value)
Definition: CustomErrorResponse.h:309
Aws::CloudFront::Model::CustomErrorResponse::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::CustomErrorResponse::GetErrorCode
int GetErrorCode() const
Definition: CustomErrorResponse.h:51
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CustomErrorResponse
Definition: CustomErrorResponse.h:38
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CustomErrorResponse::WithResponsePagePath
CustomErrorResponse & WithResponsePagePath(Aws::String &&value)
Definition: CustomErrorResponse.h:231
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CustomErrorResponse::GetResponsePagePath
const Aws::String & GetResponsePagePath() const
Definition: CustomErrorResponse.h:93
Aws::CloudFront::Model::CustomErrorResponse::SetResponsePagePath
void SetResponsePagePath(const Aws::String &value)
Definition: CustomErrorResponse.h:139
Aws::CloudFront::Model::CustomErrorResponse::SetErrorCachingMinTTL
void SetErrorCachingMinTTL(long long value)
Definition: CustomErrorResponse.h:433
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CustomErrorResponse::ErrorCachingMinTTLHasBeenSet
bool ErrorCachingMinTTLHasBeenSet() const
Definition: CustomErrorResponse.h:422
Aws::CloudFront::Model::CustomErrorResponse::SetResponsePagePath
void SetResponsePagePath(Aws::String &&value)
Definition: CustomErrorResponse.h:162
Aws::CloudFront::Model::CustomErrorResponse::WithResponseCode
CustomErrorResponse & WithResponseCode(const char *value)
Definition: CustomErrorResponse.h:399
Aws::CloudFront::Model::CustomErrorResponse::WithResponsePagePath
CustomErrorResponse & WithResponsePagePath(const char *value)
Definition: CustomErrorResponse.h:254
Aws::CloudFront::Model::CustomErrorResponse::WithResponsePagePath
CustomErrorResponse & WithResponsePagePath(const Aws::String &value)
Definition: CustomErrorResponse.h:208
Aws::CloudFront::Model::CustomErrorResponse::CustomErrorResponse
CustomErrorResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CustomErrorResponse::CustomErrorResponse
CustomErrorResponse()