AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrustedKeyGroups.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDFRONT_API TrustedKeyGroups();
36 AWS_CLOUDFRONT_API TrustedKeyGroups(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API TrustedKeyGroups& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
48 inline bool GetEnabled() const{ return m_enabled; }
49 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
50 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
51 inline TrustedKeyGroups& WithEnabled(bool value) { SetEnabled(value); return *this;}
53
55
58 inline int GetQuantity() const{ return m_quantity; }
59 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
60 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
61 inline TrustedKeyGroups& WithQuantity(int value) { SetQuantity(value); return *this;}
63
65
68 inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
69 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
70 inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
71 inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
72 inline TrustedKeyGroups& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
73 inline TrustedKeyGroups& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
74 inline TrustedKeyGroups& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
75 inline TrustedKeyGroups& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
76 inline TrustedKeyGroups& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
78 private:
79
80 bool m_enabled;
81 bool m_enabledHasBeenSet = false;
82
83 int m_quantity;
84 bool m_quantityHasBeenSet = false;
85
87 bool m_itemsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CloudFront
92} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< Aws::String > & GetItems() const
AWS_CLOUDFRONT_API TrustedKeyGroups(const Aws::Utils::Xml::XmlNode &xmlNode)
TrustedKeyGroups & AddItems(const char *value)
TrustedKeyGroups & AddItems(const Aws::String &value)
void SetItems(const Aws::Vector< Aws::String > &value)
TrustedKeyGroups & WithItems(Aws::Vector< Aws::String > &&value)
TrustedKeyGroups & WithQuantity(int value)
AWS_CLOUDFRONT_API TrustedKeyGroups & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrustedKeyGroups & WithEnabled(bool value)
void SetItems(Aws::Vector< Aws::String > &&value)
TrustedKeyGroups & AddItems(Aws::String &&value)
TrustedKeyGroups & WithItems(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector