AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricsConfiguration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/MetricsFilter.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
38 {
39 public:
43
44 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
53 inline const Aws::String& GetId() const{ return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
58 inline MetricsConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
59 inline MetricsConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
60 inline MetricsConfiguration& WithId(const char* value) { SetId(value); return *this;}
62
64
69 inline const MetricsFilter& GetFilter() const{ return m_filter; }
70 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
71 inline void SetFilter(const MetricsFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
72 inline void SetFilter(MetricsFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
73 inline MetricsConfiguration& WithFilter(const MetricsFilter& value) { SetFilter(value); return *this;}
74 inline MetricsConfiguration& WithFilter(MetricsFilter&& value) { SetFilter(std::move(value)); return *this;}
76 private:
77
78 Aws::String m_id;
79 bool m_idHasBeenSet = false;
80
81 MetricsFilter m_filter;
82 bool m_filterHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace S3
87} // namespace Aws
MetricsConfiguration & WithFilter(const MetricsFilter &value)
AWS_S3_API MetricsConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricsConfiguration & WithId(const char *value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
MetricsConfiguration & WithId(const Aws::String &value)
MetricsConfiguration & WithFilter(MetricsFilter &&value)
AWS_S3_API MetricsConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricsConfiguration & WithId(Aws::String &&value)
const MetricsFilter & GetFilter() const
void SetId(const Aws::String &value)
void SetFilter(const MetricsFilter &value)
void SetFilter(MetricsFilter &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String