/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace PinpointSMSVoice { namespace Model { /** * Create a new event destination in a configuration set.

See Also:

AWS * API Reference

*/ class CreateConfigurationSetEventDestinationRequest : public PinpointSMSVoiceRequest { public: AWS_PINPOINTSMSVOICE_API CreateConfigurationSetEventDestinationRequest(); // 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 "CreateConfigurationSetEventDestination"; } AWS_PINPOINTSMSVOICE_API Aws::String SerializePayload() const override; /** * ConfigurationSetName */ inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; } /** * ConfigurationSetName */ inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; } /** * ConfigurationSetName */ inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; } /** * ConfigurationSetName */ inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); } /** * ConfigurationSetName */ inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); } /** * ConfigurationSetName */ inline CreateConfigurationSetEventDestinationRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;} /** * ConfigurationSetName */ inline CreateConfigurationSetEventDestinationRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;} /** * ConfigurationSetName */ inline CreateConfigurationSetEventDestinationRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;} inline const EventDestinationDefinition& GetEventDestination() const{ return m_eventDestination; } inline bool EventDestinationHasBeenSet() const { return m_eventDestinationHasBeenSet; } inline void SetEventDestination(const EventDestinationDefinition& value) { m_eventDestinationHasBeenSet = true; m_eventDestination = value; } inline void SetEventDestination(EventDestinationDefinition&& value) { m_eventDestinationHasBeenSet = true; m_eventDestination = std::move(value); } inline CreateConfigurationSetEventDestinationRequest& WithEventDestination(const EventDestinationDefinition& value) { SetEventDestination(value); return *this;} inline CreateConfigurationSetEventDestinationRequest& WithEventDestination(EventDestinationDefinition&& value) { SetEventDestination(std::move(value)); return *this;} /** * A name that identifies the event destination. */ inline const Aws::String& GetEventDestinationName() const{ return m_eventDestinationName; } /** * A name that identifies the event destination. */ inline bool EventDestinationNameHasBeenSet() const { return m_eventDestinationNameHasBeenSet; } /** * A name that identifies the event destination. */ inline void SetEventDestinationName(const Aws::String& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = value; } /** * A name that identifies the event destination. */ inline void SetEventDestinationName(Aws::String&& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = std::move(value); } /** * A name that identifies the event destination. */ inline void SetEventDestinationName(const char* value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName.assign(value); } /** * A name that identifies the event destination. */ inline CreateConfigurationSetEventDestinationRequest& WithEventDestinationName(const Aws::String& value) { SetEventDestinationName(value); return *this;} /** * A name that identifies the event destination. */ inline CreateConfigurationSetEventDestinationRequest& WithEventDestinationName(Aws::String&& value) { SetEventDestinationName(std::move(value)); return *this;} /** * A name that identifies the event destination. */ inline CreateConfigurationSetEventDestinationRequest& WithEventDestinationName(const char* value) { SetEventDestinationName(value); return *this;} private: Aws::String m_configurationSetName; bool m_configurationSetNameHasBeenSet = false; EventDestinationDefinition m_eventDestination; bool m_eventDestinationHasBeenSet = false; Aws::String m_eventDestinationName; bool m_eventDestinationNameHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoice } // namespace Aws