AWS SDK for C++  1.9.158
AWS SDK for C++
MetricsAndOperator.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/s3/S3_EXPORTS.h>
10 #include <aws/s3/model/Tag.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace S3
23 {
24 namespace Model
25 {
26 
36  {
37  public:
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
48  inline const Aws::String& GetPrefix() const{ return m_prefix; }
49 
53  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
54 
58  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
59 
63  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
64 
68  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
69 
73  inline MetricsAndOperator& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
74 
78  inline MetricsAndOperator& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
79 
83  inline MetricsAndOperator& WithPrefix(const char* value) { SetPrefix(value); return *this;}
84 
85 
89  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
90 
94  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 
99  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 
104  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 
109  inline MetricsAndOperator& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
110 
114  inline MetricsAndOperator& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
115 
119  inline MetricsAndOperator& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
120 
124  inline MetricsAndOperator& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125 
126 
130  inline const Aws::String& GetAccessPointArn() const{ return m_accessPointArn; }
131 
135  inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; }
136 
140  inline void SetAccessPointArn(const Aws::String& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = value; }
141 
145  inline void SetAccessPointArn(Aws::String&& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = std::move(value); }
146 
150  inline void SetAccessPointArn(const char* value) { m_accessPointArnHasBeenSet = true; m_accessPointArn.assign(value); }
151 
155  inline MetricsAndOperator& WithAccessPointArn(const Aws::String& value) { SetAccessPointArn(value); return *this;}
156 
160  inline MetricsAndOperator& WithAccessPointArn(Aws::String&& value) { SetAccessPointArn(std::move(value)); return *this;}
161 
165  inline MetricsAndOperator& WithAccessPointArn(const char* value) { SetAccessPointArn(value); return *this;}
166 
167  private:
168 
169  Aws::String m_prefix;
170  bool m_prefixHasBeenSet;
171 
172  Aws::Vector<Tag> m_tags;
173  bool m_tagsHasBeenSet;
174 
175  Aws::String m_accessPointArn;
176  bool m_accessPointArnHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace S3
181 } // namespace Aws
Aws::S3::Model::MetricsAndOperator::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: MetricsAndOperator.h:104
Aws::S3::Model::MetricsAndOperator::SetAccessPointArn
void SetAccessPointArn(Aws::String &&value)
Definition: MetricsAndOperator.h:145
Aws::S3::Model::MetricsAndOperator::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: MetricsAndOperator.h:99
Aws::S3::Model::MetricsAndOperator::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: MetricsAndOperator.h:53
Aws::S3::Model::MetricsAndOperator::MetricsAndOperator
MetricsAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
Tag.h
Aws::S3::Model::MetricsAndOperator::SetAccessPointArn
void SetAccessPointArn(const char *value)
Definition: MetricsAndOperator.h:150
Aws::S3::Model::MetricsAndOperator::WithPrefix
MetricsAndOperator & WithPrefix(const Aws::String &value)
Definition: MetricsAndOperator.h:73
Aws::S3::Model::MetricsAndOperator::SetAccessPointArn
void SetAccessPointArn(const Aws::String &value)
Definition: MetricsAndOperator.h:140
Aws::S3::Model::MetricsAndOperator::WithPrefix
MetricsAndOperator & WithPrefix(Aws::String &&value)
Definition: MetricsAndOperator.h:78
Aws::S3::Model::MetricsAndOperator::GetAccessPointArn
const Aws::String & GetAccessPointArn() const
Definition: MetricsAndOperator.h:130
Aws::S3::Model::MetricsAndOperator::WithTags
MetricsAndOperator & WithTags(const Aws::Vector< Tag > &value)
Definition: MetricsAndOperator.h:109
Aws::S3::Model::MetricsAndOperator::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: MetricsAndOperator.h:94
Aws::S3::Model::MetricsAndOperator::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: MetricsAndOperator.h:58
Aws::S3::Model::MetricsAndOperator::SetPrefix
void SetPrefix(const char *value)
Definition: MetricsAndOperator.h:68
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3::Model::MetricsAndOperator::WithTags
MetricsAndOperator & WithTags(Aws::Vector< Tag > &&value)
Definition: MetricsAndOperator.h:114
AWSVector.h
S3_EXPORTS.h
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::Model::MetricsAndOperator::operator=
MetricsAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3::Model::MetricsAndOperator::AddTags
MetricsAndOperator & AddTags(Tag &&value)
Definition: MetricsAndOperator.h:124
Aws::S3::Model::MetricsAndOperator::MetricsAndOperator
MetricsAndOperator()
Aws::S3::Model::MetricsAndOperator::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3::Model::MetricsAndOperator::WithAccessPointArn
MetricsAndOperator & WithAccessPointArn(Aws::String &&value)
Definition: MetricsAndOperator.h:160
Aws::S3::Model::MetricsAndOperator::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: MetricsAndOperator.h:63
Aws::S3::Model::MetricsAndOperator::WithAccessPointArn
MetricsAndOperator & WithAccessPointArn(const Aws::String &value)
Definition: MetricsAndOperator.h:155
AWSString.h
Aws::S3::Model::MetricsAndOperator::WithPrefix
MetricsAndOperator & WithPrefix(const char *value)
Definition: MetricsAndOperator.h:83
Aws::S3::Model::MetricsAndOperator::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: MetricsAndOperator.h:89
Aws::S3::Model::Tag
Definition: Tag.h:31
Aws::S3::Model::MetricsAndOperator
Definition: MetricsAndOperator.h:36
Aws::S3::Model::MetricsAndOperator::GetPrefix
const Aws::String & GetPrefix() const
Definition: MetricsAndOperator.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::MetricsAndOperator::WithAccessPointArn
MetricsAndOperator & WithAccessPointArn(const char *value)
Definition: MetricsAndOperator.h:165
Aws::S3::Model::MetricsAndOperator::AccessPointArnHasBeenSet
bool AccessPointArnHasBeenSet() const
Definition: MetricsAndOperator.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::S3::Model::MetricsAndOperator::AddTags
MetricsAndOperator & AddTags(const Tag &value)
Definition: MetricsAndOperator.h:119