AWS SDK for C++  1.8.154
AWS SDK for C++
S3SetObjectTaggingOperation.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 
36  {
37  public:
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
48  inline const Aws::Vector<S3Tag>& GetTagSet() const{ return m_tagSet; }
49 
53  inline bool TagSetHasBeenSet() const { return m_tagSetHasBeenSet; }
54 
58  inline void SetTagSet(const Aws::Vector<S3Tag>& value) { m_tagSetHasBeenSet = true; m_tagSet = value; }
59 
63  inline void SetTagSet(Aws::Vector<S3Tag>&& value) { m_tagSetHasBeenSet = true; m_tagSet = std::move(value); }
64 
68  inline S3SetObjectTaggingOperation& WithTagSet(const Aws::Vector<S3Tag>& value) { SetTagSet(value); return *this;}
69 
73  inline S3SetObjectTaggingOperation& WithTagSet(Aws::Vector<S3Tag>&& value) { SetTagSet(std::move(value)); return *this;}
74 
78  inline S3SetObjectTaggingOperation& AddTagSet(const S3Tag& value) { m_tagSetHasBeenSet = true; m_tagSet.push_back(value); return *this; }
79 
83  inline S3SetObjectTaggingOperation& AddTagSet(S3Tag&& value) { m_tagSetHasBeenSet = true; m_tagSet.push_back(std::move(value)); return *this; }
84 
85  private:
86 
87  Aws::Vector<S3Tag> m_tagSet;
88  bool m_tagSetHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace S3Control
93 } // namespace Aws
Aws::S3Control::Model::S3SetObjectTaggingOperation::S3SetObjectTaggingOperation
S3SetObjectTaggingOperation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3SetObjectTaggingOperation::S3SetObjectTaggingOperation
S3SetObjectTaggingOperation()
Aws::S3Control::Model::S3SetObjectTaggingOperation::SetTagSet
void SetTagSet(Aws::Vector< S3Tag > &&value)
Definition: S3SetObjectTaggingOperation.h:63
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::S3Control::Model::S3SetObjectTaggingOperation::WithTagSet
S3SetObjectTaggingOperation & WithTagSet(const Aws::Vector< S3Tag > &value)
Definition: S3SetObjectTaggingOperation.h:68
S3Control_EXPORTS.h
S3Tag.h
Aws::S3Control::Model::S3SetObjectTaggingOperation::operator=
S3SetObjectTaggingOperation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3SetObjectTaggingOperation::SetTagSet
void SetTagSet(const Aws::Vector< S3Tag > &value)
Definition: S3SetObjectTaggingOperation.h:58
Aws::S3Control::Model::S3Tag
Definition: S3Tag.h:31
Aws::S3Control::Model::S3SetObjectTaggingOperation::GetTagSet
const Aws::Vector< S3Tag > & GetTagSet() const
Definition: S3SetObjectTaggingOperation.h:48
Aws::S3Control::Model::S3SetObjectTaggingOperation::AddTagSet
S3SetObjectTaggingOperation & AddTagSet(S3Tag &&value)
Definition: S3SetObjectTaggingOperation.h:83
Aws::S3Control::Model::S3SetObjectTaggingOperation::TagSetHasBeenSet
bool TagSetHasBeenSet() const
Definition: S3SetObjectTaggingOperation.h:53
Aws::S3Control::Model::S3SetObjectTaggingOperation::WithTagSet
S3SetObjectTaggingOperation & WithTagSet(Aws::Vector< S3Tag > &&value)
Definition: S3SetObjectTaggingOperation.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::S3SetObjectTaggingOperation::AddTagSet
S3SetObjectTaggingOperation & AddTagSet(const S3Tag &value)
Definition: S3SetObjectTaggingOperation.h:78
Aws::S3Control::Model::S3SetObjectTaggingOperation::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::S3SetObjectTaggingOperation
Definition: S3SetObjectTaggingOperation.h:36