/**
 * 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/workspaces/WorkSpacesRequest.h>
#include <aws/workspaces/WorkSpaces_EXPORTS.h>

#include <utility>

namespace Aws {
namespace WorkSpaces {
namespace Model {

/**
 */
class MigrateWorkspaceRequest : public WorkSpacesRequest {
 public:
  AWS_WORKSPACES_API MigrateWorkspaceRequest() = 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 "MigrateWorkspace"; }

  AWS_WORKSPACES_API Aws::String SerializePayload() const override;

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

  ///@{
  /**
   * <p>The identifier of the WorkSpace to migrate from.</p>
   */
  inline const Aws::String& GetSourceWorkspaceId() const { return m_sourceWorkspaceId; }
  inline bool SourceWorkspaceIdHasBeenSet() const { return m_sourceWorkspaceIdHasBeenSet; }
  template <typename SourceWorkspaceIdT = Aws::String>
  void SetSourceWorkspaceId(SourceWorkspaceIdT&& value) {
    m_sourceWorkspaceIdHasBeenSet = true;
    m_sourceWorkspaceId = std::forward<SourceWorkspaceIdT>(value);
  }
  template <typename SourceWorkspaceIdT = Aws::String>
  MigrateWorkspaceRequest& WithSourceWorkspaceId(SourceWorkspaceIdT&& value) {
    SetSourceWorkspaceId(std::forward<SourceWorkspaceIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The identifier of the target bundle type to migrate the WorkSpace to.</p>
   */
  inline const Aws::String& GetBundleId() const { return m_bundleId; }
  inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
  template <typename BundleIdT = Aws::String>
  void SetBundleId(BundleIdT&& value) {
    m_bundleIdHasBeenSet = true;
    m_bundleId = std::forward<BundleIdT>(value);
  }
  template <typename BundleIdT = Aws::String>
  MigrateWorkspaceRequest& WithBundleId(BundleIdT&& value) {
    SetBundleId(std::forward<BundleIdT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_sourceWorkspaceId;

  Aws::String m_bundleId;
  bool m_sourceWorkspaceIdHasBeenSet = false;
  bool m_bundleIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace WorkSpaces
}  // namespace Aws
