AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
MetricsConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/MetricsFilter.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
34 public:
35 AWS_S3_API MetricsConfiguration() = default;
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
42
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
69 inline const MetricsFilter& GetFilter() const { return m_filter; }
70 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
71 template <typename FilterT = MetricsFilter>
72 void SetFilter(FilterT&& value) {
73 m_filterHasBeenSet = true;
74 m_filter = std::forward<FilterT>(value);
75 }
76 template <typename FilterT = MetricsFilter>
77 MetricsConfiguration& WithFilter(FilterT&& value) {
78 SetFilter(std::forward<FilterT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_id;
84
85 MetricsFilter m_filter;
86 bool m_idHasBeenSet = false;
87 bool m_filterHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace S3
92} // 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