AWS SDK for C++  0.14.3
AWS SDK for C++
AllowedMethods.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace CloudFront
31 {
32 namespace Model
33 {
34 
46  {
47  public:
50  AllowedMethods& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51 
52  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
53 
59  inline int GetQuantity() const{ return m_quantity; }
60 
66  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
67 
73  inline AllowedMethods& WithQuantity(int value) { SetQuantity(value); return *this;}
74 
79  inline const Aws::Vector<Method>& GetItems() const{ return m_items; }
80 
85  inline void SetItems(const Aws::Vector<Method>& value) { m_itemsHasBeenSet = true; m_items = value; }
86 
91  inline void SetItems(Aws::Vector<Method>&& value) { m_itemsHasBeenSet = true; m_items = value; }
92 
97  inline AllowedMethods& WithItems(const Aws::Vector<Method>& value) { SetItems(value); return *this;}
98 
103  inline AllowedMethods& WithItems(Aws::Vector<Method>&& value) { SetItems(value); return *this;}
104 
109  inline AllowedMethods& AddItems(const Method& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
110 
115  inline AllowedMethods& AddItems(Method&& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
116 
117 
118  inline const CachedMethods& GetCachedMethods() const{ return m_cachedMethods; }
119 
120 
121  inline void SetCachedMethods(const CachedMethods& value) { m_cachedMethodsHasBeenSet = true; m_cachedMethods = value; }
122 
123 
124  inline void SetCachedMethods(CachedMethods&& value) { m_cachedMethodsHasBeenSet = true; m_cachedMethods = value; }
125 
126 
127  inline AllowedMethods& WithCachedMethods(const CachedMethods& value) { SetCachedMethods(value); return *this;}
128 
129 
130  inline AllowedMethods& WithCachedMethods(CachedMethods&& value) { SetCachedMethods(value); return *this;}
131 
132  private:
133  int m_quantity;
134  bool m_quantityHasBeenSet;
135  Aws::Vector<Method> m_items;
136  bool m_itemsHasBeenSet;
137  CachedMethods m_cachedMethods;
138  bool m_cachedMethodsHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace CloudFront
143 } // namespace Aws
AllowedMethods & AddItems(const Method &value)
void SetCachedMethods(CachedMethods &&value)
void SetItems(const Aws::Vector< Method > &value)
AllowedMethods & AddItems(Method &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetCachedMethods(const CachedMethods &value)
AllowedMethods & WithQuantity(int value)
void SetItems(Aws::Vector< Method > &&value)
AllowedMethods & WithCachedMethods(const CachedMethods &value)
AllowedMethods & WithCachedMethods(CachedMethods &&value)
#define AWS_CLOUDFRONT_API
AllowedMethods & WithItems(Aws::Vector< Method > &&value)
AllowedMethods & WithItems(const Aws::Vector< Method > &value)
const Aws::Vector< Method > & GetItems() const
JSON (JavaScript Object Notation).
const CachedMethods & GetCachedMethods() const