AWS SDK for C++  0.14.3
AWS SDK for C++
TrustedSigners.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 
48  {
49  public:
52  TrustedSigners& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
53 
54  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
55 
60  inline bool GetEnabled() const{ return m_enabled; }
61 
66  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
67 
72  inline TrustedSigners& WithEnabled(bool value) { SetEnabled(value); return *this;}
73 
77  inline int GetQuantity() const{ return m_quantity; }
78 
82  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
83 
87  inline TrustedSigners& WithQuantity(int value) { SetQuantity(value); return *this;}
88 
93  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
94 
99  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
100 
105  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = value; }
106 
111  inline TrustedSigners& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
112 
117  inline TrustedSigners& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(value); return *this;}
118 
123  inline TrustedSigners& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
124 
129  inline TrustedSigners& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
130 
135  inline TrustedSigners& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
136 
137  private:
138  bool m_enabled;
139  bool m_enabledHasBeenSet;
140  int m_quantity;
141  bool m_quantityHasBeenSet;
142  Aws::Vector<Aws::String> m_items;
143  bool m_itemsHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace CloudFront
148 } // namespace Aws
TrustedSigners & WithEnabled(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetItems(const Aws::Vector< Aws::String > &value)
void SetItems(Aws::Vector< Aws::String > &&value)
TrustedSigners & WithItems(Aws::Vector< Aws::String > &&value)
TrustedSigners & AddItems(const Aws::String &value)
TrustedSigners & WithItems(const Aws::Vector< Aws::String > &value)
#define AWS_CLOUDFRONT_API
TrustedSigners & WithQuantity(int value)
TrustedSigners & AddItems(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TrustedSigners & AddItems(const char *value)
const Aws::Vector< Aws::String > & GetItems() const
JSON (JavaScript Object Notation).