AWS SDK for C++  0.14.3
AWS SDK for C++
CustomErrorResponse.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace CloudFront
29 {
30 namespace Model
31 {
32 
46  {
47  public:
50  CustomErrorResponse& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51 
52  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
53 
58  inline int GetErrorCode() const{ return m_errorCode; }
59 
64  inline void SetErrorCode(int value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
65 
70  inline CustomErrorResponse& WithErrorCode(int value) { SetErrorCode(value); return *this;}
71 
80  inline const Aws::String& GetResponsePagePath() const{ return m_responsePagePath; }
81 
90  inline void SetResponsePagePath(const Aws::String& value) { m_responsePagePathHasBeenSet = true; m_responsePagePath = value; }
91 
100  inline void SetResponsePagePath(Aws::String&& value) { m_responsePagePathHasBeenSet = true; m_responsePagePath = value; }
101 
110  inline void SetResponsePagePath(const char* value) { m_responsePagePathHasBeenSet = true; m_responsePagePath.assign(value); }
111 
120  inline CustomErrorResponse& WithResponsePagePath(const Aws::String& value) { SetResponsePagePath(value); return *this;}
121 
130  inline CustomErrorResponse& WithResponsePagePath(Aws::String&& value) { SetResponsePagePath(value); return *this;}
131 
140  inline CustomErrorResponse& WithResponsePagePath(const char* value) { SetResponsePagePath(value); return *this;}
141 
147  inline const Aws::String& GetResponseCode() const{ return m_responseCode; }
148 
154  inline void SetResponseCode(const Aws::String& value) { m_responseCodeHasBeenSet = true; m_responseCode = value; }
155 
161  inline void SetResponseCode(Aws::String&& value) { m_responseCodeHasBeenSet = true; m_responseCode = value; }
162 
168  inline void SetResponseCode(const char* value) { m_responseCodeHasBeenSet = true; m_responseCode.assign(value); }
169 
175  inline CustomErrorResponse& WithResponseCode(const Aws::String& value) { SetResponseCode(value); return *this;}
176 
182  inline CustomErrorResponse& WithResponseCode(Aws::String&& value) { SetResponseCode(value); return *this;}
183 
189  inline CustomErrorResponse& WithResponseCode(const char* value) { SetResponseCode(value); return *this;}
190 
196  inline long long GetErrorCachingMinTTL() const{ return m_errorCachingMinTTL; }
197 
203  inline void SetErrorCachingMinTTL(long long value) { m_errorCachingMinTTLHasBeenSet = true; m_errorCachingMinTTL = value; }
204 
210  inline CustomErrorResponse& WithErrorCachingMinTTL(long long value) { SetErrorCachingMinTTL(value); return *this;}
211 
212  private:
213  int m_errorCode;
214  bool m_errorCodeHasBeenSet;
215  Aws::String m_responsePagePath;
216  bool m_responsePagePathHasBeenSet;
217  Aws::String m_responseCode;
218  bool m_responseCodeHasBeenSet;
219  long long m_errorCachingMinTTL;
220  bool m_errorCachingMinTTLHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace CloudFront
225 } // namespace Aws
void SetResponsePagePath(const Aws::String &value)
CustomErrorResponse & WithErrorCachingMinTTL(long long value)
void SetResponseCode(const Aws::String &value)
CustomErrorResponse & WithResponsePagePath(Aws::String &&value)
CustomErrorResponse & WithResponseCode(Aws::String &&value)
#define AWS_CLOUDFRONT_API
CustomErrorResponse & WithResponseCode(const Aws::String &value)
const Aws::String & GetResponsePagePath() const
CustomErrorResponse & WithResponseCode(const char *value)
CustomErrorResponse & WithErrorCode(int value)
CustomErrorResponse & WithResponsePagePath(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CustomErrorResponse & WithResponsePagePath(const Aws::String &value)
JSON (JavaScript Object Notation).