AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
KeyGroupConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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
35 {
36 public:
37 AWS_CLOUDFRONT_API KeyGroupConfig() = default;
38 AWS_CLOUDFRONT_API KeyGroupConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDFRONT_API KeyGroupConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 KeyGroupConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetItems() const { return m_items; }
61 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
62 template<typename ItemsT = Aws::Vector<Aws::String>>
63 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
64 template<typename ItemsT = Aws::Vector<Aws::String>>
65 KeyGroupConfig& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
66 template<typename ItemsT = Aws::String>
67 KeyGroupConfig& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
69
71
75 inline const Aws::String& GetComment() const { return m_comment; }
76 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
77 template<typename CommentT = Aws::String>
78 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
79 template<typename CommentT = Aws::String>
80 KeyGroupConfig& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
82 private:
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
88 bool m_itemsHasBeenSet = false;
89
90 Aws::String m_comment;
91 bool m_commentHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CloudFront
96} // namespace Aws
KeyGroupConfig & WithItems(ItemsT &&value)
AWS_CLOUDFRONT_API KeyGroupConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetItems() const
KeyGroupConfig & WithComment(CommentT &&value)
KeyGroupConfig & AddItems(ItemsT &&value)
const Aws::String & GetName() const
AWS_CLOUDFRONT_API KeyGroupConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
KeyGroupConfig & WithName(NameT &&value)
const Aws::String & GetComment() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API KeyGroupConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector