AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CloudWatchDestination.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/email/model/CloudWatchDimensionConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace SES
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_SES_API CloudWatchDestination() = default;
44
45 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
54 inline const Aws::Vector<CloudWatchDimensionConfiguration>& GetDimensionConfigurations() const { return m_dimensionConfigurations; }
55 inline bool DimensionConfigurationsHasBeenSet() const { return m_dimensionConfigurationsHasBeenSet; }
56 template<typename DimensionConfigurationsT = Aws::Vector<CloudWatchDimensionConfiguration>>
57 void SetDimensionConfigurations(DimensionConfigurationsT&& value) { m_dimensionConfigurationsHasBeenSet = true; m_dimensionConfigurations = std::forward<DimensionConfigurationsT>(value); }
58 template<typename DimensionConfigurationsT = Aws::Vector<CloudWatchDimensionConfiguration>>
59 CloudWatchDestination& WithDimensionConfigurations(DimensionConfigurationsT&& value) { SetDimensionConfigurations(std::forward<DimensionConfigurationsT>(value)); return *this;}
60 template<typename DimensionConfigurationsT = CloudWatchDimensionConfiguration>
61 CloudWatchDestination& AddDimensionConfigurations(DimensionConfigurationsT&& value) { m_dimensionConfigurationsHasBeenSet = true; m_dimensionConfigurations.emplace_back(std::forward<DimensionConfigurationsT>(value)); return *this; }
63 private:
64
65 Aws::Vector<CloudWatchDimensionConfiguration> m_dimensionConfigurations;
66 bool m_dimensionConfigurationsHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace SES
71} // 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