AWS SDK for C++  1.9.158
AWS SDK for C++
MetricsFilter.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/s3/S3_EXPORTS.h>
9 #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 
38  {
39  public:
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
46 
50  inline const Aws::String& GetPrefix() const{ return m_prefix; }
51 
55  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
56 
60  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
61 
65  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
66 
70  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
71 
75  inline MetricsFilter& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
76 
80  inline MetricsFilter& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
81 
85  inline MetricsFilter& WithPrefix(const char* value) { SetPrefix(value); return *this;}
86 
87 
91  inline const Tag& GetTag() const{ return m_tag; }
92 
96  inline bool TagHasBeenSet() const { return m_tagHasBeenSet; }
97 
101  inline void SetTag(const Tag& value) { m_tagHasBeenSet = true; m_tag = value; }
102 
106  inline void SetTag(Tag&& value) { m_tagHasBeenSet = true; m_tag = std::move(value); }
107 
111  inline MetricsFilter& WithTag(const Tag& value) { SetTag(value); return *this;}
112 
116  inline MetricsFilter& WithTag(Tag&& value) { SetTag(std::move(value)); return *this;}
117 
118 
122  inline const Aws::String& GetAccessPointArn() const{ return m_accessPointArn; }
123 
127  inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; }
128 
132  inline void SetAccessPointArn(const Aws::String& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = value; }
133 
137  inline void SetAccessPointArn(Aws::String&& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = std::move(value); }
138 
142  inline void SetAccessPointArn(const char* value) { m_accessPointArnHasBeenSet = true; m_accessPointArn.assign(value); }
143 
147  inline MetricsFilter& WithAccessPointArn(const Aws::String& value) { SetAccessPointArn(value); return *this;}
148 
152  inline MetricsFilter& WithAccessPointArn(Aws::String&& value) { SetAccessPointArn(std::move(value)); return *this;}
153 
157  inline MetricsFilter& WithAccessPointArn(const char* value) { SetAccessPointArn(value); return *this;}
158 
159 
165  inline const MetricsAndOperator& GetAnd() const{ return m_and; }
166 
172  inline bool AndHasBeenSet() const { return m_andHasBeenSet; }
173 
179  inline void SetAnd(const MetricsAndOperator& value) { m_andHasBeenSet = true; m_and = value; }
180 
186  inline void SetAnd(MetricsAndOperator&& value) { m_andHasBeenSet = true; m_and = std::move(value); }
187 
193  inline MetricsFilter& WithAnd(const MetricsAndOperator& value) { SetAnd(value); return *this;}
194 
200  inline MetricsFilter& WithAnd(MetricsAndOperator&& value) { SetAnd(std::move(value)); return *this;}
201 
202  private:
203 
204  Aws::String m_prefix;
205  bool m_prefixHasBeenSet;
206 
207  Tag m_tag;
208  bool m_tagHasBeenSet;
209 
210  Aws::String m_accessPointArn;
211  bool m_accessPointArnHasBeenSet;
212 
213  MetricsAndOperator m_and;
214  bool m_andHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace S3
219 } // namespace Aws
Aws::S3::Model::MetricsFilter::operator=
MetricsFilter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3::Model::MetricsFilter::GetAccessPointArn
const Aws::String & GetAccessPointArn() const
Definition: MetricsFilter.h:122
Tag.h
Aws::S3::Model::MetricsFilter::GetTag
const Tag & GetTag() const
Definition: MetricsFilter.h:91
Aws::S3::Model::MetricsFilter::GetAnd
const MetricsAndOperator & GetAnd() const
Definition: MetricsFilter.h:165
Aws::S3::Model::MetricsFilter::SetTag
void SetTag(const Tag &value)
Definition: MetricsFilter.h:101
Aws::S3::Model::MetricsFilter::SetAccessPointArn
void SetAccessPointArn(const Aws::String &value)
Definition: MetricsFilter.h:132
Aws::S3::Model::MetricsFilter::GetPrefix
const Aws::String & GetPrefix() const
Definition: MetricsFilter.h:50
Aws::S3::Model::MetricsFilter::SetPrefix
void SetPrefix(const char *value)
Definition: MetricsFilter.h:70
Aws::S3::Model::MetricsFilter::MetricsFilter
MetricsFilter()
Aws::S3::Model::MetricsFilter::WithPrefix
MetricsFilter & WithPrefix(const Aws::String &value)
Definition: MetricsFilter.h:75
Aws::S3::Model::MetricsFilter::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3::Model::MetricsFilter::SetAccessPointArn
void SetAccessPointArn(Aws::String &&value)
Definition: MetricsFilter.h:137
S3_EXPORTS.h
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::Model::MetricsFilter::WithPrefix
MetricsFilter & WithPrefix(Aws::String &&value)
Definition: MetricsFilter.h:80
Aws::S3::Model::MetricsFilter::SetAccessPointArn
void SetAccessPointArn(const char *value)
Definition: MetricsFilter.h:142
MetricsAndOperator.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3::Model::MetricsFilter::WithAccessPointArn
MetricsFilter & WithAccessPointArn(const char *value)
Definition: MetricsFilter.h:157
Aws::S3::Model::MetricsFilter
Definition: MetricsFilter.h:38
Aws::S3::Model::MetricsFilter::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: MetricsFilter.h:55
Aws::S3::Model::MetricsFilter::WithTag
MetricsFilter & WithTag(const Tag &value)
Definition: MetricsFilter.h:111
Aws::S3::Model::MetricsFilter::SetTag
void SetTag(Tag &&value)
Definition: MetricsFilter.h:106
Aws::S3::Model::MetricsFilter::SetAnd
void SetAnd(MetricsAndOperator &&value)
Definition: MetricsFilter.h:186
AWSString.h
Aws::S3::Model::MetricsFilter::AndHasBeenSet
bool AndHasBeenSet() const
Definition: MetricsFilter.h:172
Aws::S3::Model::MetricsFilter::TagHasBeenSet
bool TagHasBeenSet() const
Definition: MetricsFilter.h:96
Aws::S3::Model::MetricsFilter::AccessPointArnHasBeenSet
bool AccessPointArnHasBeenSet() const
Definition: MetricsFilter.h:127
Aws::S3::Model::MetricsFilter::SetAnd
void SetAnd(const MetricsAndOperator &value)
Definition: MetricsFilter.h:179
Aws::S3::Model::MetricsAndOperator
Definition: MetricsAndOperator.h:36
Aws::S3::Model::Tag
Definition: Tag.h:31
Aws::S3::Model::MetricsFilter::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: MetricsFilter.h:60
Aws::S3::Model::MetricsFilter::WithTag
MetricsFilter & WithTag(Tag &&value)
Definition: MetricsFilter.h:116
Aws::S3::Model::MetricsFilter::WithAnd
MetricsFilter & WithAnd(const MetricsAndOperator &value)
Definition: MetricsFilter.h:193
Aws::S3::Model::MetricsFilter::WithAccessPointArn
MetricsFilter & WithAccessPointArn(Aws::String &&value)
Definition: MetricsFilter.h:152
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::MetricsFilter::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: MetricsFilter.h:65
Aws::S3::Model::MetricsFilter::WithAccessPointArn
MetricsFilter & WithAccessPointArn(const Aws::String &value)
Definition: MetricsFilter.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::MetricsFilter::MetricsFilter
MetricsFilter(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3::Model::MetricsFilter::WithPrefix
MetricsFilter & WithPrefix(const char *value)
Definition: MetricsFilter.h:85
Aws::S3::Model::MetricsFilter::WithAnd
MetricsFilter & WithAnd(MetricsAndOperator &&value)
Definition: MetricsFilter.h:200
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25