AWS SDK for C++  1.8.157
AWS SDK for C++
Tagging.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 S3Control
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
44  inline const Aws::Vector<S3Tag>& GetTagSet() const{ return m_tagSet; }
45 
49  inline bool TagSetHasBeenSet() const { return m_tagSetHasBeenSet; }
50 
54  inline void SetTagSet(const Aws::Vector<S3Tag>& value) { m_tagSetHasBeenSet = true; m_tagSet = value; }
55 
59  inline void SetTagSet(Aws::Vector<S3Tag>&& value) { m_tagSetHasBeenSet = true; m_tagSet = std::move(value); }
60 
64  inline Tagging& WithTagSet(const Aws::Vector<S3Tag>& value) { SetTagSet(value); return *this;}
65 
69  inline Tagging& WithTagSet(Aws::Vector<S3Tag>&& value) { SetTagSet(std::move(value)); return *this;}
70 
74  inline Tagging& AddTagSet(const S3Tag& value) { m_tagSetHasBeenSet = true; m_tagSet.push_back(value); return *this; }
75 
79  inline Tagging& AddTagSet(S3Tag&& value) { m_tagSetHasBeenSet = true; m_tagSet.push_back(std::move(value)); return *this; }
80 
81  private:
82 
83  Aws::Vector<S3Tag> m_tagSet;
84  bool m_tagSetHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace S3Control
89 } // namespace Aws
Aws::S3Control::Model::Tagging::SetTagSet
void SetTagSet(Aws::Vector< S3Tag > &&value)
Definition: Tagging.h:59
Aws::S3Control::Model::Tagging::WithTagSet
Tagging & WithTagSet(const Aws::Vector< S3Tag > &value)
Definition: Tagging.h:64
Aws::S3Control::Model::Tagging::TagSetHasBeenSet
bool TagSetHasBeenSet() const
Definition: Tagging.h:49
Aws::S3Control::Model::Tagging::SetTagSet
void SetTagSet(const Aws::Vector< S3Tag > &value)
Definition: Tagging.h:54
Aws::S3Control::Model::Tagging::AddTagSet
Tagging & AddTagSet(S3Tag &&value)
Definition: Tagging.h:79
Aws::S3Control::Model::Tagging::Tagging
Tagging()
Aws::S3Control::Model::Tagging::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3Control::Model::Tagging::Tagging
Tagging(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSVector.h
S3Control_EXPORTS.h
S3Tag.h
Aws::S3Control::Model::Tagging
Definition: Tagging.h:32
Aws::S3Control::Model::Tagging::GetTagSet
const Aws::Vector< S3Tag > & GetTagSet() const
Definition: Tagging.h:44
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::Tagging::WithTagSet
Tagging & WithTagSet(Aws::Vector< S3Tag > &&value)
Definition: Tagging.h:69
Aws::S3Control::Model::S3Tag
Definition: S3Tag.h:31
Aws::S3Control::Model::Tagging::operator=
Tagging & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::Tagging::AddTagSet
Tagging & AddTagSet(const S3Tag &value)
Definition: Tagging.h:74
Aws
Definition: AccessManagementClient.h:15