AWS SDK for C++  1.9.20
AWS SDK for C++
Tags.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 
33  {
34  public:
35  Tags();
36  Tags(const Aws::Utils::Xml::XmlNode& xmlNode);
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
45  inline const Aws::Vector<Tag>& GetItems() const{ return m_items; }
46 
50  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
51 
55  inline void SetItems(const Aws::Vector<Tag>& value) { m_itemsHasBeenSet = true; m_items = value; }
56 
60  inline void SetItems(Aws::Vector<Tag>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
61 
65  inline Tags& WithItems(const Aws::Vector<Tag>& value) { SetItems(value); return *this;}
66 
70  inline Tags& WithItems(Aws::Vector<Tag>&& value) { SetItems(std::move(value)); return *this;}
71 
75  inline Tags& AddItems(const Tag& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
76 
80  inline Tags& AddItems(Tag&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
81 
82  private:
83 
84  Aws::Vector<Tag> m_items;
85  bool m_itemsHasBeenSet;
86  };
87 
88 } // namespace Model
89 } // namespace CloudFront
90 } // namespace Aws
Aws::CloudFront::Model::Tags::GetItems
const Aws::Vector< Tag > & GetItems() const
Definition: Tags.h:45
Aws::CloudFront::Model::Tag
Definition: Tag.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudFront::Model::Tags::Tags
Tags()
Aws::CloudFront::Model::Tags::WithItems
Tags & WithItems(Aws::Vector< Tag > &&value)
Definition: Tags.h:70
Aws::CloudFront::Model::Tags::operator=
Tags & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Tags::WithItems
Tags & WithItems(const Aws::Vector< Tag > &value)
Definition: Tags.h:65
Aws::CloudFront::Model::Tags::AddItems
Tags & AddItems(Tag &&value)
Definition: Tags.h:80
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::Tags::SetItems
void SetItems(Aws::Vector< Tag > &&value)
Definition: Tags.h:60
Aws::CloudFront::Model::Tags::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: Tags.h:50
Aws::CloudFront::Model::Tags::Tags
Tags(const Aws::Utils::Xml::XmlNode &xmlNode)
Tag.h
Aws::CloudFront::Model::Tags::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::Tags::AddItems
Tags & AddItems(const Tag &value)
Definition: Tags.h:75
Aws::CloudFront::Model::Tags::SetItems
void SetItems(const Aws::Vector< Tag > &value)
Definition: Tags.h:55
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::Tags
Definition: Tags.h:33