AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricsAndOperator.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3-crt/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 S3Crt
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_S3CRT_API MetricsAndOperator();
39 AWS_S3CRT_API MetricsAndOperator(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
49 inline const Aws::String& GetPrefix() const{ return m_prefix; }
50 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
51 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
52 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
53 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
54 inline MetricsAndOperator& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
55 inline MetricsAndOperator& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
56 inline MetricsAndOperator& WithPrefix(const char* value) { SetPrefix(value); return *this;}
58
60
63 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
64 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
65 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
66 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
67 inline MetricsAndOperator& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
68 inline MetricsAndOperator& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
69 inline MetricsAndOperator& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
70 inline MetricsAndOperator& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
72
74
77 inline const Aws::String& GetAccessPointArn() const{ return m_accessPointArn; }
78 inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; }
79 inline void SetAccessPointArn(const Aws::String& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = value; }
80 inline void SetAccessPointArn(Aws::String&& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = std::move(value); }
81 inline void SetAccessPointArn(const char* value) { m_accessPointArnHasBeenSet = true; m_accessPointArn.assign(value); }
82 inline MetricsAndOperator& WithAccessPointArn(const Aws::String& value) { SetAccessPointArn(value); return *this;}
83 inline MetricsAndOperator& WithAccessPointArn(Aws::String&& value) { SetAccessPointArn(std::move(value)); return *this;}
84 inline MetricsAndOperator& WithAccessPointArn(const char* value) { SetAccessPointArn(value); return *this;}
86 private:
87
88 Aws::String m_prefix;
89 bool m_prefixHasBeenSet = false;
90
91 Aws::Vector<Tag> m_tags;
92 bool m_tagsHasBeenSet = false;
93
94 Aws::String m_accessPointArn;
95 bool m_accessPointArnHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace S3Crt
100} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
MetricsAndOperator & WithTags(Aws::Vector< Tag > &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetPrefix(const Aws::String &value)
const Aws::String & GetAccessPointArn() const
AWS_S3CRT_API MetricsAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPrefix() const
void SetAccessPointArn(const Aws::String &value)
MetricsAndOperator & AddTags(Tag &&value)
MetricsAndOperator & WithPrefix(const char *value)
MetricsAndOperator & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CRT_API MetricsAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricsAndOperator & WithAccessPointArn(const Aws::String &value)
MetricsAndOperator & WithAccessPointArn(Aws::String &&value)
void SetAccessPointArn(Aws::String &&value)
MetricsAndOperator & WithTags(const Aws::Vector< Tag > &value)
MetricsAndOperator & WithPrefix(Aws::String &&value)
MetricsAndOperator & WithPrefix(const Aws::String &value)
MetricsAndOperator & WithAccessPointArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector