1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/s3-crt/S3Crt_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/s3-crt/model/Tag.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 template<typename RESULT_TYPE> 15 class AmazonWebServiceResult; 16 17 namespace Utils 18 { 19 namespace Xml 20 { 21 class XmlDocument; 22 } // namespace Xml 23 } // namespace Utils 24 namespace S3Crt 25 { 26 namespace Model 27 { 28 class AWS_S3CRT_API GetBucketTaggingResult 29 { 30 public: 31 GetBucketTaggingResult(); 32 GetBucketTaggingResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 33 GetBucketTaggingResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 34 35 36 /** 37 * <p>Contains the tag set.</p> 38 */ GetTagSet()39 inline const Aws::Vector<Tag>& GetTagSet() const{ return m_tagSet; } 40 41 /** 42 * <p>Contains the tag set.</p> 43 */ SetTagSet(const Aws::Vector<Tag> & value)44 inline void SetTagSet(const Aws::Vector<Tag>& value) { m_tagSet = value; } 45 46 /** 47 * <p>Contains the tag set.</p> 48 */ SetTagSet(Aws::Vector<Tag> && value)49 inline void SetTagSet(Aws::Vector<Tag>&& value) { m_tagSet = std::move(value); } 50 51 /** 52 * <p>Contains the tag set.</p> 53 */ WithTagSet(const Aws::Vector<Tag> & value)54 inline GetBucketTaggingResult& WithTagSet(const Aws::Vector<Tag>& value) { SetTagSet(value); return *this;} 55 56 /** 57 * <p>Contains the tag set.</p> 58 */ WithTagSet(Aws::Vector<Tag> && value)59 inline GetBucketTaggingResult& WithTagSet(Aws::Vector<Tag>&& value) { SetTagSet(std::move(value)); return *this;} 60 61 /** 62 * <p>Contains the tag set.</p> 63 */ AddTagSet(const Tag & value)64 inline GetBucketTaggingResult& AddTagSet(const Tag& value) { m_tagSet.push_back(value); return *this; } 65 66 /** 67 * <p>Contains the tag set.</p> 68 */ AddTagSet(Tag && value)69 inline GetBucketTaggingResult& AddTagSet(Tag&& value) { m_tagSet.push_back(std::move(value)); return *this; } 70 71 private: 72 73 Aws::Vector<Tag> m_tagSet; 74 }; 75 76 } // namespace Model 77 } // namespace S3Crt 78 } // namespace Aws 79