AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
40 AWS_S3_API MetricsConfiguration() = default;
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 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 MetricsConfiguration& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
60
62
67 inline const MetricsFilter& GetFilter() const { return m_filter; }
68 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
69 template<typename FilterT = MetricsFilter>
70 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
71 template<typename FilterT = MetricsFilter>
72 MetricsConfiguration& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
74 private:
75
76 Aws::String m_id;
77 bool m_idHasBeenSet = false;
78
79 MetricsFilter m_filter;
80 bool m_filterHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace S3
85} // namespace Aws
AWS_S3_API MetricsConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API MetricsConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricsConfiguration & WithFilter(FilterT &&value)
const MetricsFilter & GetFilter() const
MetricsConfiguration & WithId(IdT &&value)
AWS_S3_API MetricsConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String