/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

An object that defines an Amazon CloudWatch destination for email events. You * can use Amazon CloudWatch to monitor and gain insights on your email sending * metrics.

See Also:

AWS * API Reference

*/ class CloudWatchDestination { public: AWS_SESV2_API CloudWatchDestination(); AWS_SESV2_API CloudWatchDestination(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API CloudWatchDestination& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An array of objects that define the dimensions to use when you send email * events to Amazon CloudWatch.

*/ inline const Aws::Vector& GetDimensionConfigurations() const{ return m_dimensionConfigurations; } /** *

An array of objects that define the dimensions to use when you send email * events to Amazon CloudWatch.

*/ inline bool DimensionConfigurationsHasBeenSet() const { return m_dimensionConfigurationsHasBeenSet; } /** *

An array of objects that define the dimensions to use when you send email * events to Amazon CloudWatch.

*/ inline void SetDimensionConfigurations(const Aws::Vector& value) { m_dimensionConfigurationsHasBeenSet = true; m_dimensionConfigurations = value; } /** *

An array of objects that define the dimensions to use when you send email * events to Amazon CloudWatch.

*/ inline void SetDimensionConfigurations(Aws::Vector&& value) { m_dimensionConfigurationsHasBeenSet = true; m_dimensionConfigurations = std::move(value); } /** *

An array of objects that define the dimensions to use when you send email * events to Amazon CloudWatch.

*/ inline CloudWatchDestination& WithDimensionConfigurations(const Aws::Vector& value) { SetDimensionConfigurations(value); return *this;} /** *

An array of objects that define the dimensions to use when you send email * events to Amazon CloudWatch.

*/ inline CloudWatchDestination& WithDimensionConfigurations(Aws::Vector&& value) { SetDimensionConfigurations(std::move(value)); return *this;} /** *

An array of objects that define the dimensions to use when you send email * events to Amazon CloudWatch.

*/ inline CloudWatchDestination& AddDimensionConfigurations(const CloudWatchDimensionConfiguration& value) { m_dimensionConfigurationsHasBeenSet = true; m_dimensionConfigurations.push_back(value); return *this; } /** *

An array of objects that define the dimensions to use when you send email * events to Amazon CloudWatch.

*/ inline CloudWatchDestination& AddDimensionConfigurations(CloudWatchDimensionConfiguration&& value) { m_dimensionConfigurationsHasBeenSet = true; m_dimensionConfigurations.push_back(std::move(value)); return *this; } private: Aws::Vector m_dimensionConfigurations; bool m_dimensionConfigurationsHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws