/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace PinpointEmail { namespace Model { /** *

A request to create a configuration set.

See Also:

AWS * API Reference

*/ class CreateConfigurationSetRequest : public PinpointEmailRequest { public: AWS_PINPOINTEMAIL_API CreateConfigurationSetRequest(); // 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 "CreateConfigurationSet"; } AWS_PINPOINTEMAIL_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 CreateConfigurationSetRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;} /** *

The name of the configuration set.

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

The name of the configuration set.

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

An object that defines the open and click tracking options for emails that * you send using the configuration set.

*/ inline const TrackingOptions& GetTrackingOptions() const{ return m_trackingOptions; } /** *

An object that defines the open and click tracking options for emails that * you send using the configuration set.

*/ inline bool TrackingOptionsHasBeenSet() const { return m_trackingOptionsHasBeenSet; } /** *

An object that defines the open and click tracking options for emails that * you send using the configuration set.

*/ inline void SetTrackingOptions(const TrackingOptions& value) { m_trackingOptionsHasBeenSet = true; m_trackingOptions = value; } /** *

An object that defines the open and click tracking options for emails that * you send using the configuration set.

*/ inline void SetTrackingOptions(TrackingOptions&& value) { m_trackingOptionsHasBeenSet = true; m_trackingOptions = std::move(value); } /** *

An object that defines the open and click tracking options for emails that * you send using the configuration set.

*/ inline CreateConfigurationSetRequest& WithTrackingOptions(const TrackingOptions& value) { SetTrackingOptions(value); return *this;} /** *

An object that defines the open and click tracking options for emails that * you send using the configuration set.

*/ inline CreateConfigurationSetRequest& WithTrackingOptions(TrackingOptions&& value) { SetTrackingOptions(std::move(value)); return *this;} /** *

An object that defines the dedicated IP pool that is used to send emails that * you send using the configuration set.

*/ inline const DeliveryOptions& GetDeliveryOptions() const{ return m_deliveryOptions; } /** *

An object that defines the dedicated IP pool that is used to send emails that * you send using the configuration set.

*/ inline bool DeliveryOptionsHasBeenSet() const { return m_deliveryOptionsHasBeenSet; } /** *

An object that defines the dedicated IP pool that is used to send emails that * you send using the configuration set.

*/ inline void SetDeliveryOptions(const DeliveryOptions& value) { m_deliveryOptionsHasBeenSet = true; m_deliveryOptions = value; } /** *

An object that defines the dedicated IP pool that is used to send emails that * you send using the configuration set.

*/ inline void SetDeliveryOptions(DeliveryOptions&& value) { m_deliveryOptionsHasBeenSet = true; m_deliveryOptions = std::move(value); } /** *

An object that defines the dedicated IP pool that is used to send emails that * you send using the configuration set.

*/ inline CreateConfigurationSetRequest& WithDeliveryOptions(const DeliveryOptions& value) { SetDeliveryOptions(value); return *this;} /** *

An object that defines the dedicated IP pool that is used to send emails that * you send using the configuration set.

*/ inline CreateConfigurationSetRequest& WithDeliveryOptions(DeliveryOptions&& value) { SetDeliveryOptions(std::move(value)); return *this;} /** *

An object that defines whether or not Amazon Pinpoint collects reputation * metrics for the emails that you send that use the configuration set.

*/ inline const ReputationOptions& GetReputationOptions() const{ return m_reputationOptions; } /** *

An object that defines whether or not Amazon Pinpoint collects reputation * metrics for the emails that you send that use the configuration set.

*/ inline bool ReputationOptionsHasBeenSet() const { return m_reputationOptionsHasBeenSet; } /** *

An object that defines whether or not Amazon Pinpoint collects reputation * metrics for the emails that you send that use the configuration set.

*/ inline void SetReputationOptions(const ReputationOptions& value) { m_reputationOptionsHasBeenSet = true; m_reputationOptions = value; } /** *

An object that defines whether or not Amazon Pinpoint collects reputation * metrics for the emails that you send that use the configuration set.

*/ inline void SetReputationOptions(ReputationOptions&& value) { m_reputationOptionsHasBeenSet = true; m_reputationOptions = std::move(value); } /** *

An object that defines whether or not Amazon Pinpoint collects reputation * metrics for the emails that you send that use the configuration set.

*/ inline CreateConfigurationSetRequest& WithReputationOptions(const ReputationOptions& value) { SetReputationOptions(value); return *this;} /** *

An object that defines whether or not Amazon Pinpoint collects reputation * metrics for the emails that you send that use the configuration set.

*/ inline CreateConfigurationSetRequest& WithReputationOptions(ReputationOptions&& value) { SetReputationOptions(std::move(value)); return *this;} /** *

An object that defines whether or not Amazon Pinpoint can send email that you * send using the configuration set.

*/ inline const SendingOptions& GetSendingOptions() const{ return m_sendingOptions; } /** *

An object that defines whether or not Amazon Pinpoint can send email that you * send using the configuration set.

*/ inline bool SendingOptionsHasBeenSet() const { return m_sendingOptionsHasBeenSet; } /** *

An object that defines whether or not Amazon Pinpoint can send email that you * send using the configuration set.

*/ inline void SetSendingOptions(const SendingOptions& value) { m_sendingOptionsHasBeenSet = true; m_sendingOptions = value; } /** *

An object that defines whether or not Amazon Pinpoint can send email that you * send using the configuration set.

*/ inline void SetSendingOptions(SendingOptions&& value) { m_sendingOptionsHasBeenSet = true; m_sendingOptions = std::move(value); } /** *

An object that defines whether or not Amazon Pinpoint can send email that you * send using the configuration set.

*/ inline CreateConfigurationSetRequest& WithSendingOptions(const SendingOptions& value) { SetSendingOptions(value); return *this;} /** *

An object that defines whether or not Amazon Pinpoint can send email that you * send using the configuration set.

*/ inline CreateConfigurationSetRequest& WithSendingOptions(SendingOptions&& value) { SetSendingOptions(std::move(value)); return *this;} /** *

An array of objects that define the tags (keys and values) that you want to * associate with the configuration set.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the configuration set.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the configuration set.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the configuration set.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the configuration set.

*/ inline CreateConfigurationSetRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

An array of objects that define the tags (keys and values) that you want to * associate with the configuration set.

*/ inline CreateConfigurationSetRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

An array of objects that define the tags (keys and values) that you want to * associate with the configuration set.

*/ inline CreateConfigurationSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the configuration set.

*/ inline CreateConfigurationSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_configurationSetName; bool m_configurationSetNameHasBeenSet = false; TrackingOptions m_trackingOptions; bool m_trackingOptionsHasBeenSet = false; DeliveryOptions m_deliveryOptions; bool m_deliveryOptionsHasBeenSet = false; ReputationOptions m_reputationOptions; bool m_reputationOptionsHasBeenSet = false; SendingOptions m_sendingOptions; bool m_sendingOptionsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace PinpointEmail } // namespace Aws