/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sesv2/SESV2Request.h>
#include <aws/sesv2/SESV2_EXPORTS.h>
#include <aws/sesv2/model/EventDestinationDefinition.h>

#include <utility>

namespace Aws {
namespace SESV2 {
namespace Model {

/**
 * <p>A request to change the settings for an event destination for a configuration
 * set.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/UpdateConfigurationSetEventDestinationRequest">AWS
 * API Reference</a></p>
 */
class UpdateConfigurationSetEventDestinationRequest : public SESV2Request {
 public:
  AWS_SESV2_API UpdateConfigurationSetEventDestinationRequest() = default;

  // 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 "UpdateConfigurationSetEventDestination"; }

  AWS_SESV2_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p>The name of the configuration set that contains the event destination to
   * modify.</p>
   */
  inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
  inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
  template <typename ConfigurationSetNameT = Aws::String>
  void SetConfigurationSetName(ConfigurationSetNameT&& value) {
    m_configurationSetNameHasBeenSet = true;
    m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
  }
  template <typename ConfigurationSetNameT = Aws::String>
  UpdateConfigurationSetEventDestinationRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) {
    SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The name of the event destination.</p>
   */
  inline const Aws::String& GetEventDestinationName() const { return m_eventDestinationName; }
  inline bool EventDestinationNameHasBeenSet() const { return m_eventDestinationNameHasBeenSet; }
  template <typename EventDestinationNameT = Aws::String>
  void SetEventDestinationName(EventDestinationNameT&& value) {
    m_eventDestinationNameHasBeenSet = true;
    m_eventDestinationName = std::forward<EventDestinationNameT>(value);
  }
  template <typename EventDestinationNameT = Aws::String>
  UpdateConfigurationSetEventDestinationRequest& WithEventDestinationName(EventDestinationNameT&& value) {
    SetEventDestinationName(std::forward<EventDestinationNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>An object that defines the event destination.</p>
   */
  inline const EventDestinationDefinition& GetEventDestination() const { return m_eventDestination; }
  inline bool EventDestinationHasBeenSet() const { return m_eventDestinationHasBeenSet; }
  template <typename EventDestinationT = EventDestinationDefinition>
  void SetEventDestination(EventDestinationT&& value) {
    m_eventDestinationHasBeenSet = true;
    m_eventDestination = std::forward<EventDestinationT>(value);
  }
  template <typename EventDestinationT = EventDestinationDefinition>
  UpdateConfigurationSetEventDestinationRequest& WithEventDestination(EventDestinationT&& value) {
    SetEventDestination(std::forward<EventDestinationT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_configurationSetName;

  Aws::String m_eventDestinationName;

  EventDestinationDefinition m_eventDestination;
  bool m_configurationSetNameHasBeenSet = false;
  bool m_eventDestinationNameHasBeenSet = false;
  bool m_eventDestinationHasBeenSet = false;
};

}  // namespace Model
}  // namespace SESV2
}  // namespace Aws
