/**
 * 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/route53/Route53Request.h>
#include <aws/route53/Route53_EXPORTS.h>
#include <aws/route53/model/VPC.h>

#include <utility>

namespace Aws {
namespace Route53 {
namespace Model {

/**
 * <p>A complex type that contains information about the request to remove
 * authorization to associate a VPC that was created by one Amazon Web Services
 * account with a hosted zone that was created with a different Amazon Web Services
 * account. </p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteVPCAssociationAuthorizationRequest">AWS
 * API Reference</a></p>
 */
class DeleteVPCAssociationAuthorizationRequest : public Route53Request {
 public:
  AWS_ROUTE53_API DeleteVPCAssociationAuthorizationRequest() = 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 "DeleteVPCAssociationAuthorization"; }

  AWS_ROUTE53_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p>When removing authorization to associate a VPC that was created by one Amazon
   * Web Services account with a hosted zone that was created with a different Amazon
   * Web Services account, the ID of the hosted zone.</p>
   */
  inline const Aws::String& GetHostedZoneId() const { return m_hostedZoneId; }
  inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
  template <typename HostedZoneIdT = Aws::String>
  void SetHostedZoneId(HostedZoneIdT&& value) {
    m_hostedZoneIdHasBeenSet = true;
    m_hostedZoneId = std::forward<HostedZoneIdT>(value);
  }
  template <typename HostedZoneIdT = Aws::String>
  DeleteVPCAssociationAuthorizationRequest& WithHostedZoneId(HostedZoneIdT&& value) {
    SetHostedZoneId(std::forward<HostedZoneIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>When removing authorization to associate a VPC that was created by one Amazon
   * Web Services account with a hosted zone that was created with a different Amazon
   * Web Services account, a complex type that includes the ID and region of the
   * VPC.</p>
   */
  inline const VPC& GetVPC() const { return m_vPC; }
  inline bool VPCHasBeenSet() const { return m_vPCHasBeenSet; }
  template <typename VPCT = VPC>
  void SetVPC(VPCT&& value) {
    m_vPCHasBeenSet = true;
    m_vPC = std::forward<VPCT>(value);
  }
  template <typename VPCT = VPC>
  DeleteVPCAssociationAuthorizationRequest& WithVPC(VPCT&& value) {
    SetVPC(std::forward<VPCT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_hostedZoneId;

  VPC m_vPC;
  bool m_hostedZoneIdHasBeenSet = false;
  bool m_vPCHasBeenSet = false;
};

}  // namespace Model
}  // namespace Route53
}  // namespace Aws
