AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IntelligentTieringAndOperator.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3/model/Tag.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_S3_API IntelligentTieringAndOperator() = default;
40
41 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
49 inline const Aws::String& GetPrefix() const { return m_prefix; }
50 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
51 template<typename PrefixT = Aws::String>
52 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
53 template<typename PrefixT = Aws::String>
54 IntelligentTieringAndOperator& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
56
58
62 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
63 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
64 template<typename TagsT = Aws::Vector<Tag>>
65 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
66 template<typename TagsT = Aws::Vector<Tag>>
67 IntelligentTieringAndOperator& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
68 template<typename TagsT = Tag>
69 IntelligentTieringAndOperator& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
71 private:
72
73 Aws::String m_prefix;
74 bool m_prefixHasBeenSet = false;
75
76 Aws::Vector<Tag> m_tags;
77 bool m_tagsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace S3
82} // namespace Aws
IntelligentTieringAndOperator & WithTags(TagsT &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
IntelligentTieringAndOperator & AddTags(TagsT &&value)
AWS_S3_API IntelligentTieringAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API IntelligentTieringAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IntelligentTieringAndOperator & WithPrefix(PrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector