AWS SDK for C++  1.9.125
AWS SDK for C++
MetricsConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/s3/S3_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace S3
22 {
23 namespace Model
24 {
25 
38  {
39  public:
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
46 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
55  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 
60  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 
65  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
66 
70  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
71 
75  inline MetricsConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
76 
80  inline MetricsConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
81 
85  inline MetricsConfiguration& WithId(const char* value) { SetId(value); return *this;}
86 
87 
93  inline const MetricsFilter& GetFilter() const{ return m_filter; }
94 
100  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
101 
107  inline void SetFilter(const MetricsFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
108 
114  inline void SetFilter(MetricsFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
115 
121  inline MetricsConfiguration& WithFilter(const MetricsFilter& value) { SetFilter(value); return *this;}
122 
128  inline MetricsConfiguration& WithFilter(MetricsFilter&& value) { SetFilter(std::move(value)); return *this;}
129 
130  private:
131 
132  Aws::String m_id;
133  bool m_idHasBeenSet;
134 
135  MetricsFilter m_filter;
136  bool m_filterHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace S3
141 } // namespace Aws
Aws::S3::Model::MetricsConfiguration::MetricsConfiguration
MetricsConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3::Model::MetricsConfiguration::WithId
MetricsConfiguration & WithId(Aws::String &&value)
Definition: MetricsConfiguration.h:80
Aws::S3::Model::MetricsConfiguration::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: MetricsConfiguration.h:100
Aws::S3::Model::MetricsConfiguration::GetId
const Aws::String & GetId() const
Definition: MetricsConfiguration.h:50
Aws::S3::Model::MetricsConfiguration::WithFilter
MetricsConfiguration & WithFilter(const MetricsFilter &value)
Definition: MetricsConfiguration.h:121
Aws::S3::Model::MetricsConfiguration::GetFilter
const MetricsFilter & GetFilter() const
Definition: MetricsConfiguration.h:93
S3_EXPORTS.h
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::Model::MetricsConfiguration::SetFilter
void SetFilter(MetricsFilter &&value)
Definition: MetricsConfiguration.h:114
Aws::S3::Model::MetricsConfiguration::MetricsConfiguration
MetricsConfiguration()
Aws::S3::Model::MetricsConfiguration::SetId
void SetId(Aws::String &&value)
Definition: MetricsConfiguration.h:65
Aws::S3::Model::MetricsConfiguration::SetId
void SetId(const Aws::String &value)
Definition: MetricsConfiguration.h:60
Aws::S3::Model::MetricsConfiguration::IdHasBeenSet
bool IdHasBeenSet() const
Definition: MetricsConfiguration.h:55
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3::Model::MetricsConfiguration::WithId
MetricsConfiguration & WithId(const Aws::String &value)
Definition: MetricsConfiguration.h:75
Aws::S3::Model::MetricsConfiguration::WithFilter
MetricsConfiguration & WithFilter(MetricsFilter &&value)
Definition: MetricsConfiguration.h:128
Aws::S3::Model::MetricsFilter
Definition: MetricsFilter.h:38
AWSString.h
Aws::S3::Model::MetricsConfiguration::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3::Model::MetricsConfiguration::SetFilter
void SetFilter(const MetricsFilter &value)
Definition: MetricsConfiguration.h:107
Aws::S3::Model::MetricsConfiguration::operator=
MetricsConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricsFilter.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::MetricsConfiguration::WithId
MetricsConfiguration & WithId(const char *value)
Definition: MetricsConfiguration.h:85
Aws::S3::Model::MetricsConfiguration
Definition: MetricsConfiguration.h:38
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::S3::Model::MetricsConfiguration::SetId
void SetId(const char *value)
Definition: MetricsConfiguration.h:70