AWS SDK for C++  1.9.109
AWS SDK for C++
KeyGroupConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFront
22 {
23 namespace Model
24 {
25 
35  {
36  public:
40 
41  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42 
43 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline KeyGroupConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline KeyGroupConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline KeyGroupConfig& WithName(const char* value) { SetName(value); return *this;}
83 
84 
88  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
89 
93  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
94 
98  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
99 
103  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
104 
108  inline KeyGroupConfig& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
109 
113  inline KeyGroupConfig& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
114 
118  inline KeyGroupConfig& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
119 
123  inline KeyGroupConfig& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
124 
128  inline KeyGroupConfig& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
129 
130 
135  inline const Aws::String& GetComment() const{ return m_comment; }
136 
141  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
142 
147  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
148 
153  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
154 
159  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
160 
165  inline KeyGroupConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
166 
171  inline KeyGroupConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
172 
177  inline KeyGroupConfig& WithComment(const char* value) { SetComment(value); return *this;}
178 
179  private:
180 
181  Aws::String m_name;
182  bool m_nameHasBeenSet;
183 
184  Aws::Vector<Aws::String> m_items;
185  bool m_itemsHasBeenSet;
186 
187  Aws::String m_comment;
188  bool m_commentHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace CloudFront
193 } // namespace Aws
Aws::CloudFront::Model::KeyGroupConfig::WithItems
KeyGroupConfig & WithItems(const Aws::Vector< Aws::String > &value)
Definition: KeyGroupConfig.h:108
Aws::CloudFront::Model::KeyGroupConfig::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: KeyGroupConfig.h:141
Aws::CloudFront::Model::KeyGroupConfig::AddItems
KeyGroupConfig & AddItems(const Aws::String &value)
Definition: KeyGroupConfig.h:118
Aws::CloudFront::Model::KeyGroupConfig::WithName
KeyGroupConfig & WithName(Aws::String &&value)
Definition: KeyGroupConfig.h:77
Aws::CloudFront::Model::KeyGroupConfig::WithName
KeyGroupConfig & WithName(const char *value)
Definition: KeyGroupConfig.h:82
Aws::CloudFront::Model::KeyGroupConfig::NameHasBeenSet
bool NameHasBeenSet() const
Definition: KeyGroupConfig.h:52
Aws::CloudFront::Model::KeyGroupConfig::AddItems
KeyGroupConfig & AddItems(const char *value)
Definition: KeyGroupConfig.h:128
Aws::CloudFront::Model::KeyGroupConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::KeyGroupConfig::KeyGroupConfig
KeyGroupConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::KeyGroupConfig::operator=
KeyGroupConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::KeyGroupConfig::AddItems
KeyGroupConfig & AddItems(Aws::String &&value)
Definition: KeyGroupConfig.h:123
Aws::CloudFront::Model::KeyGroupConfig::SetComment
void SetComment(Aws::String &&value)
Definition: KeyGroupConfig.h:153
Aws::CloudFront::Model::KeyGroupConfig::SetItems
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: KeyGroupConfig.h:98
AWSVector.h
Aws::CloudFront::Model::KeyGroupConfig::SetComment
void SetComment(const char *value)
Definition: KeyGroupConfig.h:159
Aws::CloudFront::Model::KeyGroupConfig::GetName
const Aws::String & GetName() const
Definition: KeyGroupConfig.h:47
Aws::CloudFront::Model::KeyGroupConfig::WithComment
KeyGroupConfig & WithComment(Aws::String &&value)
Definition: KeyGroupConfig.h:171
Aws::CloudFront::Model::KeyGroupConfig::SetItems
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: KeyGroupConfig.h:103
Aws::CloudFront::Model::KeyGroupConfig::SetName
void SetName(const char *value)
Definition: KeyGroupConfig.h:67
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::KeyGroupConfig::WithComment
KeyGroupConfig & WithComment(const char *value)
Definition: KeyGroupConfig.h:177
Aws::CloudFront::Model::KeyGroupConfig::SetName
void SetName(Aws::String &&value)
Definition: KeyGroupConfig.h:62
Aws::CloudFront::Model::KeyGroupConfig::GetComment
const Aws::String & GetComment() const
Definition: KeyGroupConfig.h:135
AWSString.h
Aws::CloudFront::Model::KeyGroupConfig::WithItems
KeyGroupConfig & WithItems(Aws::Vector< Aws::String > &&value)
Definition: KeyGroupConfig.h:113
Aws::CloudFront::Model::KeyGroupConfig::SetName
void SetName(const Aws::String &value)
Definition: KeyGroupConfig.h:57
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::KeyGroupConfig::WithName
KeyGroupConfig & WithName(const Aws::String &value)
Definition: KeyGroupConfig.h:72
CloudFront_EXPORTS.h
Aws::CloudFront::Model::KeyGroupConfig::WithComment
KeyGroupConfig & WithComment(const Aws::String &value)
Definition: KeyGroupConfig.h:165
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::KeyGroupConfig
Definition: KeyGroupConfig.h:35
Aws::CloudFront::Model::KeyGroupConfig::GetItems
const Aws::Vector< Aws::String > & GetItems() const
Definition: KeyGroupConfig.h:88
Aws::CloudFront::Model::KeyGroupConfig::KeyGroupConfig
KeyGroupConfig()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::KeyGroupConfig::SetComment
void SetComment(const Aws::String &value)
Definition: KeyGroupConfig.h:147
Aws::CloudFront::Model::KeyGroupConfig::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: KeyGroupConfig.h:93