AWS SDK for C++

AWS SDK for C++ Version 1.11.699

Loading...
Searching...
No Matches
MetricsConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3-crt/S3Crt_EXPORTS.h>
9#include <aws/s3-crt/model/MetricsFilter.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3Crt {
20namespace Model {
21
34 public:
35 AWS_S3CRT_API MetricsConfiguration() = default;
36 AWS_S3CRT_API MetricsConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CRT_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
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) {
71 m_filterHasBeenSet = true;
72 m_filter = std::forward<FilterT>(value);
73 }
74 template <typename FilterT = MetricsFilter>
75 MetricsConfiguration& WithFilter(FilterT&& value) {
76 SetFilter(std::forward<FilterT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_id;
82 bool m_idHasBeenSet = false;
83
84 MetricsFilter m_filter;
85 bool m_filterHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace S3Crt
90} // namespace Aws
MetricsConfiguration & WithId(IdT &&value)
AWS_S3CRT_API MetricsConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const MetricsFilter & GetFilter() const
AWS_S3CRT_API MetricsConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
MetricsConfiguration & WithFilter(FilterT &&value)
AWS_S3CRT_API MetricsConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String