AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFront {
20namespace Model {
21
31 public:
32 AWS_CLOUDFRONT_API KeyGroupConfig() = default;
33 AWS_CLOUDFRONT_API KeyGroupConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDFRONT_API KeyGroupConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 KeyGroupConfig& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
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) {
64 m_itemsHasBeenSet = true;
65 m_items = std::forward<ItemsT>(value);
66 }
67 template <typename ItemsT = Aws::Vector<Aws::String>>
68 KeyGroupConfig& WithItems(ItemsT&& value) {
69 SetItems(std::forward<ItemsT>(value));
70 return *this;
71 }
72 template <typename ItemsT = Aws::String>
73 KeyGroupConfig& AddItems(ItemsT&& value) {
74 m_itemsHasBeenSet = true;
75 m_items.emplace_back(std::forward<ItemsT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetComment() const { return m_comment; }
86 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
87 template <typename CommentT = Aws::String>
88 void SetComment(CommentT&& value) {
89 m_commentHasBeenSet = true;
90 m_comment = std::forward<CommentT>(value);
91 }
92 template <typename CommentT = Aws::String>
93 KeyGroupConfig& WithComment(CommentT&& value) {
94 SetComment(std::forward<CommentT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_name;
100
102
103 Aws::String m_comment;
104 bool m_nameHasBeenSet = false;
105 bool m_itemsHasBeenSet = false;
106 bool m_commentHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace CloudFront
111} // 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