AWS SDK for C++  0.12.9
AWS SDK for C++
ForwardedValues.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace CloudFront
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  ForwardedValues& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
52  inline bool GetQueryString() const{ return m_queryString; }
53 
59  inline void SetQueryString(bool value) { m_queryStringHasBeenSet = true; m_queryString = value; }
60 
66  inline ForwardedValues& WithQueryString(bool value) { SetQueryString(value); return *this;}
67 
71  inline const CookiePreference& GetCookies() const{ return m_cookies; }
72 
76  inline void SetCookies(const CookiePreference& value) { m_cookiesHasBeenSet = true; m_cookies = value; }
77 
81  inline void SetCookies(CookiePreference&& value) { m_cookiesHasBeenSet = true; m_cookies = value; }
82 
86  inline ForwardedValues& WithCookies(const CookiePreference& value) { SetCookies(value); return *this;}
87 
91  inline ForwardedValues& WithCookies(CookiePreference&& value) { SetCookies(value); return *this;}
92 
97  inline const Headers& GetHeaders() const{ return m_headers; }
98 
103  inline void SetHeaders(const Headers& value) { m_headersHasBeenSet = true; m_headers = value; }
104 
109  inline void SetHeaders(Headers&& value) { m_headersHasBeenSet = true; m_headers = value; }
110 
115  inline ForwardedValues& WithHeaders(const Headers& value) { SetHeaders(value); return *this;}
116 
121  inline ForwardedValues& WithHeaders(Headers&& value) { SetHeaders(value); return *this;}
122 
123  private:
124  bool m_queryString;
125  bool m_queryStringHasBeenSet;
126  CookiePreference m_cookies;
127  bool m_cookiesHasBeenSet;
128  Headers m_headers;
129  bool m_headersHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace CloudFront
134 } // namespace Aws
ForwardedValues & WithCookies(const CookiePreference &value)
void SetCookies(CookiePreference &&value)
const CookiePreference & GetCookies() const
ForwardedValues & WithHeaders(const Headers &value)
ForwardedValues & WithCookies(CookiePreference &&value)
void SetCookies(const CookiePreference &value)
#define AWS_CLOUDFRONT_API
void SetHeaders(const Headers &value)
ForwardedValues & WithHeaders(Headers &&value)
JSON (JavaScript Object Notation).
ForwardedValues & WithQueryString(bool value)