AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Tagging.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/Tag.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
31 class Tagging
32 {
33 public:
37
39
40
44 inline const Aws::Vector<Tag>& GetTagSet() const{ return m_tagSet; }
45
49 inline bool TagSetHasBeenSet() const { return m_tagSetHasBeenSet; }
50
54 inline void SetTagSet(const Aws::Vector<Tag>& value) { m_tagSetHasBeenSet = true; m_tagSet = value; }
55
59 inline void SetTagSet(Aws::Vector<Tag>&& value) { m_tagSetHasBeenSet = true; m_tagSet = std::move(value); }
60
64 inline Tagging& WithTagSet(const Aws::Vector<Tag>& value) { SetTagSet(value); return *this;}
65
69 inline Tagging& WithTagSet(Aws::Vector<Tag>&& value) { SetTagSet(std::move(value)); return *this;}
70
74 inline Tagging& AddTagSet(const Tag& value) { m_tagSetHasBeenSet = true; m_tagSet.push_back(value); return *this; }
75
79 inline Tagging& AddTagSet(Tag&& value) { m_tagSetHasBeenSet = true; m_tagSet.push_back(std::move(value)); return *this; }
80
81 private:
82
83 Aws::Vector<Tag> m_tagSet;
84 bool m_tagSetHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace S3
89} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Tagging & AddTagSet(Tag &&value)
Definition: Tagging.h:79
Tagging & WithTagSet(Aws::Vector< Tag > &&value)
Definition: Tagging.h:69
Tagging & AddTagSet(const Tag &value)
Definition: Tagging.h:74
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API Tagging(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTagSet(const Aws::Vector< Tag > &value)
Definition: Tagging.h:54
Tagging & WithTagSet(const Aws::Vector< Tag > &value)
Definition: Tagging.h:64
const Aws::Vector< Tag > & GetTagSet() const
Definition: Tagging.h:44
void SetTagSet(Aws::Vector< Tag > &&value)
Definition: Tagging.h:59
bool TagSetHasBeenSet() const
Definition: Tagging.h:49
AWS_S3_API Tagging & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector