/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SES { namespace Model { /** *

A domain that is used to redirect email recipients to an Amazon SES-operated * domain. This domain captures open and click events generated by Amazon SES * emails.

For more information, see Configuring * Custom Domains to Handle Open and Click Tracking in the Amazon SES * Developer Guide.

See Also:

AWS * API Reference

*/ class TrackingOptions { public: AWS_SES_API TrackingOptions(); AWS_SES_API TrackingOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API TrackingOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The custom subdomain that will be used to redirect email recipients to the * Amazon SES event tracking domain.

*/ inline const Aws::String& GetCustomRedirectDomain() const{ return m_customRedirectDomain; } /** *

The custom subdomain that will be used to redirect email recipients to the * Amazon SES event tracking domain.

*/ inline bool CustomRedirectDomainHasBeenSet() const { return m_customRedirectDomainHasBeenSet; } /** *

The custom subdomain that will be used to redirect email recipients to the * Amazon SES event tracking domain.

*/ inline void SetCustomRedirectDomain(const Aws::String& value) { m_customRedirectDomainHasBeenSet = true; m_customRedirectDomain = value; } /** *

The custom subdomain that will be used to redirect email recipients to the * Amazon SES event tracking domain.

*/ inline void SetCustomRedirectDomain(Aws::String&& value) { m_customRedirectDomainHasBeenSet = true; m_customRedirectDomain = std::move(value); } /** *

The custom subdomain that will be used to redirect email recipients to the * Amazon SES event tracking domain.

*/ inline void SetCustomRedirectDomain(const char* value) { m_customRedirectDomainHasBeenSet = true; m_customRedirectDomain.assign(value); } /** *

The custom subdomain that will be used to redirect email recipients to the * Amazon SES event tracking domain.

*/ inline TrackingOptions& WithCustomRedirectDomain(const Aws::String& value) { SetCustomRedirectDomain(value); return *this;} /** *

The custom subdomain that will be used to redirect email recipients to the * Amazon SES event tracking domain.

*/ inline TrackingOptions& WithCustomRedirectDomain(Aws::String&& value) { SetCustomRedirectDomain(std::move(value)); return *this;} /** *

The custom subdomain that will be used to redirect email recipients to the * Amazon SES event tracking domain.

*/ inline TrackingOptions& WithCustomRedirectDomain(const char* value) { SetCustomRedirectDomain(value); return *this;} private: Aws::String m_customRedirectDomain; bool m_customRedirectDomainHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws