AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
CloudWatchDestination.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/email/SES_EXPORTS.h>
10#include <aws/email/model/CloudWatchDimensionConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace SES {
21namespace Model {
22
35 public:
36 AWS_SES_API CloudWatchDestination() = default;
39
40 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
48 inline const Aws::Vector<CloudWatchDimensionConfiguration>& GetDimensionConfigurations() const { return m_dimensionConfigurations; }
49 inline bool DimensionConfigurationsHasBeenSet() const { return m_dimensionConfigurationsHasBeenSet; }
50 template <typename DimensionConfigurationsT = Aws::Vector<CloudWatchDimensionConfiguration>>
51 void SetDimensionConfigurations(DimensionConfigurationsT&& value) {
52 m_dimensionConfigurationsHasBeenSet = true;
53 m_dimensionConfigurations = std::forward<DimensionConfigurationsT>(value);
54 }
55 template <typename DimensionConfigurationsT = Aws::Vector<CloudWatchDimensionConfiguration>>
56 CloudWatchDestination& WithDimensionConfigurations(DimensionConfigurationsT&& value) {
57 SetDimensionConfigurations(std::forward<DimensionConfigurationsT>(value));
58 return *this;
59 }
60 template <typename DimensionConfigurationsT = CloudWatchDimensionConfiguration>
61 CloudWatchDestination& AddDimensionConfigurations(DimensionConfigurationsT&& value) {
62 m_dimensionConfigurationsHasBeenSet = true;
63 m_dimensionConfigurations.emplace_back(std::forward<DimensionConfigurationsT>(value));
64 return *this;
65 }
67 private:
68 Aws::Vector<CloudWatchDimensionConfiguration> m_dimensionConfigurations;
69 bool m_dimensionConfigurationsHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace SES
74} // namespace Aws
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDimensionConfigurations(DimensionConfigurationsT &&value)
AWS_SES_API CloudWatchDestination(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< CloudWatchDimensionConfiguration > & GetDimensionConfigurations() const
CloudWatchDestination & AddDimensionConfigurations(DimensionConfigurationsT &&value)
AWS_SES_API CloudWatchDestination()=default
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_SES_API CloudWatchDestination & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudWatchDestination & WithDimensionConfigurations(DimensionConfigurationsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream