/** * 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 SESV2 { namespace Model { /** *

A request to add a custom domain for tracking open and click events to a * configuration set.

See Also:

AWS * API Reference

*/ class PutConfigurationSetTrackingOptionsRequest : public SESV2Request { public: AWS_SESV2_API PutConfigurationSetTrackingOptionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutConfigurationSetTrackingOptions"; } AWS_SESV2_API Aws::String SerializePayload() const override; /** *

The name of the configuration set.

*/ inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; } /** *

The name of the configuration set.

*/ inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; } /** *

The name of the configuration set.

*/ inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; } /** *

The name of the configuration set.

*/ inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); } /** *

The name of the configuration set.

*/ inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); } /** *

The name of the configuration set.

*/ inline PutConfigurationSetTrackingOptionsRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;} /** *

The name of the configuration set.

*/ inline PutConfigurationSetTrackingOptionsRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;} /** *

The name of the configuration set.

*/ inline PutConfigurationSetTrackingOptionsRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;} /** *

The domain to use to track open and click events.

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

The domain to use to track open and click events.

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

The domain to use to track open and click events.

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

The domain to use to track open and click events.

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

The domain to use to track open and click events.

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

The domain to use to track open and click events.

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

The domain to use to track open and click events.

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

The domain to use to track open and click events.

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