/**
 * 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/directconnect/DirectConnect_EXPORTS.h>
#include <aws/directconnect/model/VirtualInterface.h>

#include <utility>

namespace Aws {
template <typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils {
namespace Json {
class JsonValue;
}  // namespace Json
}  // namespace Utils
namespace DirectConnect {
namespace Model {
class AllocateTransitVirtualInterfaceResult {
 public:
  AWS_DIRECTCONNECT_API AllocateTransitVirtualInterfaceResult() = default;
  AWS_DIRECTCONNECT_API AllocateTransitVirtualInterfaceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
  AWS_DIRECTCONNECT_API AllocateTransitVirtualInterfaceResult& operator=(
      const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

  ///@{
  /**
   * <p>Information about the transit virtual interface.</p>
   */
  inline const VirtualInterface& GetVirtualInterface() const { return m_virtualInterface; }
  template <typename VirtualInterfaceT = VirtualInterface>
  void SetVirtualInterface(VirtualInterfaceT&& value) {
    m_virtualInterfaceHasBeenSet = true;
    m_virtualInterface = std::forward<VirtualInterfaceT>(value);
  }
  template <typename VirtualInterfaceT = VirtualInterface>
  AllocateTransitVirtualInterfaceResult& WithVirtualInterface(VirtualInterfaceT&& value) {
    SetVirtualInterface(std::forward<VirtualInterfaceT>(value));
    return *this;
  }
  ///@}

  ///@{

  inline const Aws::String& GetRequestId() const { return m_requestId; }
  template <typename RequestIdT = Aws::String>
  void SetRequestId(RequestIdT&& value) {
    m_requestIdHasBeenSet = true;
    m_requestId = std::forward<RequestIdT>(value);
  }
  template <typename RequestIdT = Aws::String>
  AllocateTransitVirtualInterfaceResult& WithRequestId(RequestIdT&& value) {
    SetRequestId(std::forward<RequestIdT>(value));
    return *this;
  }
  ///@}
 private:
  VirtualInterface m_virtualInterface;
  bool m_virtualInterfaceHasBeenSet = false;

  Aws::String m_requestId;
  bool m_requestIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace DirectConnect
}  // namespace Aws
