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

#pragma once
#include <aws/apprunner/AppRunnerRequest.h>
#include <aws/apprunner/AppRunner_EXPORTS.h>
#include <aws/apprunner/model/IngressVpcConfiguration.h>
#include <aws/core/utils/memory/stl/AWSString.h>

#include <utility>

namespace Aws {
namespace AppRunner {
namespace Model {

/**
 */
class UpdateVpcIngressConnectionRequest : public AppRunnerRequest {
 public:
  AWS_APPRUNNER_API UpdateVpcIngressConnectionRequest() = 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 "UpdateVpcIngressConnection"; }

  AWS_APPRUNNER_API Aws::String SerializePayload() const override;

  AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>The Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection
   * resource that you want to update.</p>
   */
  inline const Aws::String& GetVpcIngressConnectionArn() const { return m_vpcIngressConnectionArn; }
  inline bool VpcIngressConnectionArnHasBeenSet() const { return m_vpcIngressConnectionArnHasBeenSet; }
  template <typename VpcIngressConnectionArnT = Aws::String>
  void SetVpcIngressConnectionArn(VpcIngressConnectionArnT&& value) {
    m_vpcIngressConnectionArnHasBeenSet = true;
    m_vpcIngressConnectionArn = std::forward<VpcIngressConnectionArnT>(value);
  }
  template <typename VpcIngressConnectionArnT = Aws::String>
  UpdateVpcIngressConnectionRequest& WithVpcIngressConnectionArn(VpcIngressConnectionArnT&& value) {
    SetVpcIngressConnectionArn(std::forward<VpcIngressConnectionArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Specifications for the customer’s Amazon VPC and the related Amazon Web
   * Services PrivateLink VPC endpoint that are used to update the VPC Ingress
   * Connection resource.</p>
   */
  inline const IngressVpcConfiguration& GetIngressVpcConfiguration() const { return m_ingressVpcConfiguration; }
  inline bool IngressVpcConfigurationHasBeenSet() const { return m_ingressVpcConfigurationHasBeenSet; }
  template <typename IngressVpcConfigurationT = IngressVpcConfiguration>
  void SetIngressVpcConfiguration(IngressVpcConfigurationT&& value) {
    m_ingressVpcConfigurationHasBeenSet = true;
    m_ingressVpcConfiguration = std::forward<IngressVpcConfigurationT>(value);
  }
  template <typename IngressVpcConfigurationT = IngressVpcConfiguration>
  UpdateVpcIngressConnectionRequest& WithIngressVpcConfiguration(IngressVpcConfigurationT&& value) {
    SetIngressVpcConfiguration(std::forward<IngressVpcConfigurationT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_vpcIngressConnectionArn;

  IngressVpcConfiguration m_ingressVpcConfiguration;
  bool m_vpcIngressConnectionArnHasBeenSet = false;
  bool m_ingressVpcConfigurationHasBeenSet = false;
};

}  // namespace Model
}  // namespace AppRunner
}  // namespace Aws
