AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline KeyGroupConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline KeyGroupConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline KeyGroupConfig& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
63 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
64 inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
65 inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
66 inline KeyGroupConfig& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
67 inline KeyGroupConfig& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
68 inline KeyGroupConfig& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
69 inline KeyGroupConfig& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
70 inline KeyGroupConfig& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
72
74
78 inline const Aws::String& GetComment() const{ return m_comment; }
79 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
80 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
81 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
82 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
83 inline KeyGroupConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
84 inline KeyGroupConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
85 inline KeyGroupConfig& WithComment(const char* value) { SetComment(value); return *this;}
87 private:
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
93 bool m_itemsHasBeenSet = false;
94
95 Aws::String m_comment;
96 bool m_commentHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CloudFront
101} // namespace Aws
void SetName(Aws::String &&value)
KeyGroupConfig & AddItems(Aws::String &&value)
void SetItems(Aws::Vector< Aws::String > &&value)
KeyGroupConfig & AddItems(const char *value)
AWS_CLOUDFRONT_API KeyGroupConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
KeyGroupConfig & WithName(const char *value)
KeyGroupConfig & WithComment(const Aws::String &value)
KeyGroupConfig & WithComment(Aws::String &&value)
KeyGroupConfig & WithItems(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetItems() const
KeyGroupConfig & WithName(const Aws::String &value)
KeyGroupConfig & WithName(Aws::String &&value)
KeyGroupConfig & WithItems(Aws::Vector< Aws::String > &&value)
const Aws::String & GetName() const
void SetItems(const Aws::Vector< Aws::String > &value)
AWS_CLOUDFRONT_API KeyGroupConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetName(const Aws::String &value)
KeyGroupConfig & WithComment(const char *value)
void SetComment(const Aws::String &value)
void SetComment(Aws::String &&value)
const Aws::String & GetComment() const
KeyGroupConfig & AddItems(const Aws::String &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector