AWS SDK for C++  0.14.3
AWS SDK for C++
CookiePreference.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  CookiePreference& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
53  inline const ItemSelection& GetForward() const{ return m_forward; }
54 
61  inline void SetForward(const ItemSelection& value) { m_forwardHasBeenSet = true; m_forward = value; }
62 
69  inline void SetForward(ItemSelection&& value) { m_forwardHasBeenSet = true; m_forward = value; }
70 
77  inline CookiePreference& WithForward(const ItemSelection& value) { SetForward(value); return *this;}
78 
85  inline CookiePreference& WithForward(ItemSelection&& value) { SetForward(value); return *this;}
86 
92  inline const CookieNames& GetWhitelistedNames() const{ return m_whitelistedNames; }
93 
99  inline void SetWhitelistedNames(const CookieNames& value) { m_whitelistedNamesHasBeenSet = true; m_whitelistedNames = value; }
100 
106  inline void SetWhitelistedNames(CookieNames&& value) { m_whitelistedNamesHasBeenSet = true; m_whitelistedNames = value; }
107 
113  inline CookiePreference& WithWhitelistedNames(const CookieNames& value) { SetWhitelistedNames(value); return *this;}
114 
120  inline CookiePreference& WithWhitelistedNames(CookieNames&& value) { SetWhitelistedNames(value); return *this;}
121 
122  private:
123  ItemSelection m_forward;
124  bool m_forwardHasBeenSet;
125  CookieNames m_whitelistedNames;
126  bool m_whitelistedNamesHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace CloudFront
131 } // namespace Aws
#define AWS_CLOUDFRONT_API
JSON (JavaScript Object Notation).