/**
 * 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 <utility>

namespace Aws {
namespace SESV2 {
namespace Model {

/**
 * <p>A request to move a dedicated IP address to a dedicated IP
 * pool.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutDedicatedIpInPoolRequest">AWS
 * API Reference</a></p>
 */
class PutDedicatedIpInPoolRequest : public SESV2Request {
 public:
  AWS_SESV2_API PutDedicatedIpInPoolRequest() = 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 "PutDedicatedIpInPool"; }

  AWS_SESV2_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p>The IP address that you want to move to the dedicated IP pool. The value you
   * specify has to be a dedicated IP address that's associated with your Amazon Web
   * Services account.</p>
   */
  inline const Aws::String& GetIp() const { return m_ip; }
  inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
  template <typename IpT = Aws::String>
  void SetIp(IpT&& value) {
    m_ipHasBeenSet = true;
    m_ip = std::forward<IpT>(value);
  }
  template <typename IpT = Aws::String>
  PutDedicatedIpInPoolRequest& WithIp(IpT&& value) {
    SetIp(std::forward<IpT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The name of the IP pool that you want to add the dedicated IP address to. You
   * have to specify an IP pool that already exists.</p>
   */
  inline const Aws::String& GetDestinationPoolName() const { return m_destinationPoolName; }
  inline bool DestinationPoolNameHasBeenSet() const { return m_destinationPoolNameHasBeenSet; }
  template <typename DestinationPoolNameT = Aws::String>
  void SetDestinationPoolName(DestinationPoolNameT&& value) {
    m_destinationPoolNameHasBeenSet = true;
    m_destinationPoolName = std::forward<DestinationPoolNameT>(value);
  }
  template <typename DestinationPoolNameT = Aws::String>
  PutDedicatedIpInPoolRequest& WithDestinationPoolName(DestinationPoolNameT&& value) {
    SetDestinationPoolName(std::forward<DestinationPoolNameT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_ip;

  Aws::String m_destinationPoolName;
  bool m_ipHasBeenSet = false;
  bool m_destinationPoolNameHasBeenSet = false;
};

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