AWS SDK for C++  0.12.9
AWS SDK for C++
ActiveTrustedSigners.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 
41  {
42  public:
45  ActiveTrustedSigners& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48 
52  inline bool GetEnabled() const{ return m_enabled; }
53 
57  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
58 
62  inline ActiveTrustedSigners& WithEnabled(bool value) { SetEnabled(value); return *this;}
63 
69  inline long GetQuantity() const{ return m_quantity; }
70 
76  inline void SetQuantity(long value) { m_quantityHasBeenSet = true; m_quantity = value; }
77 
83  inline ActiveTrustedSigners& WithQuantity(long value) { SetQuantity(value); return *this;}
84 
90  inline const Aws::Vector<Signer>& GetItems() const{ return m_items; }
91 
97  inline void SetItems(const Aws::Vector<Signer>& value) { m_itemsHasBeenSet = true; m_items = value; }
98 
104  inline void SetItems(Aws::Vector<Signer>&& value) { m_itemsHasBeenSet = true; m_items = value; }
105 
111  inline ActiveTrustedSigners& WithItems(const Aws::Vector<Signer>& value) { SetItems(value); return *this;}
112 
118  inline ActiveTrustedSigners& WithItems(Aws::Vector<Signer>&& value) { SetItems(value); return *this;}
119 
125  inline ActiveTrustedSigners& AddItems(const Signer& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
126 
132  inline ActiveTrustedSigners& AddItems(Signer&& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
133 
134  private:
135  bool m_enabled;
136  bool m_enabledHasBeenSet;
137  long m_quantity;
138  bool m_quantityHasBeenSet;
139  Aws::Vector<Signer> m_items;
140  bool m_itemsHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace CloudFront
145 } // namespace Aws
ActiveTrustedSigners & WithEnabled(bool value)
void SetItems(const Aws::Vector< Signer > &value)
void SetItems(Aws::Vector< Signer > &&value)
ActiveTrustedSigners & WithItems(Aws::Vector< Signer > &&value)
ActiveTrustedSigners & AddItems(Signer &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_CLOUDFRONT_API
ActiveTrustedSigners & WithItems(const Aws::Vector< Signer > &value)
ActiveTrustedSigners & WithQuantity(long value)
ActiveTrustedSigners & AddItems(const Signer &value)
const Aws::Vector< Signer > & GetItems() const
JSON (JavaScript Object Notation).