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

#pragma once
#include <aws/core/utils/UUID.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/translate/TranslateRequest.h>
#include <aws/translate/Translate_EXPORTS.h>
#include <aws/translate/model/ParallelDataConfig.h>

#include <utility>

namespace Aws {
namespace Translate {
namespace Model {

/**
 */
class UpdateParallelDataRequest : public TranslateRequest {
 public:
  AWS_TRANSLATE_API UpdateParallelDataRequest() = 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 "UpdateParallelData"; }

  AWS_TRANSLATE_API Aws::String SerializePayload() const override;

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

  ///@{
  /**
   * <p>The name of the parallel data resource being updated.</p>
   */
  inline const Aws::String& GetName() const { return m_name; }
  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
  template <typename NameT = Aws::String>
  void SetName(NameT&& value) {
    m_nameHasBeenSet = true;
    m_name = std::forward<NameT>(value);
  }
  template <typename NameT = Aws::String>
  UpdateParallelDataRequest& WithName(NameT&& value) {
    SetName(std::forward<NameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A custom description for the parallel data resource in Amazon Translate.</p>
   */
  inline const Aws::String& GetDescription() const { return m_description; }
  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
  template <typename DescriptionT = Aws::String>
  void SetDescription(DescriptionT&& value) {
    m_descriptionHasBeenSet = true;
    m_description = std::forward<DescriptionT>(value);
  }
  template <typename DescriptionT = Aws::String>
  UpdateParallelDataRequest& WithDescription(DescriptionT&& value) {
    SetDescription(std::forward<DescriptionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Specifies the format and S3 location of the parallel data input file.</p>
   */
  inline const ParallelDataConfig& GetParallelDataConfig() const { return m_parallelDataConfig; }
  inline bool ParallelDataConfigHasBeenSet() const { return m_parallelDataConfigHasBeenSet; }
  template <typename ParallelDataConfigT = ParallelDataConfig>
  void SetParallelDataConfig(ParallelDataConfigT&& value) {
    m_parallelDataConfigHasBeenSet = true;
    m_parallelDataConfig = std::forward<ParallelDataConfigT>(value);
  }
  template <typename ParallelDataConfigT = ParallelDataConfig>
  UpdateParallelDataRequest& WithParallelDataConfig(ParallelDataConfigT&& value) {
    SetParallelDataConfig(std::forward<ParallelDataConfigT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A unique identifier for the request. This token is automatically generated
   * when you use Amazon Translate through an AWS SDK.</p>
   */
  inline const Aws::String& GetClientToken() const { return m_clientToken; }
  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
  template <typename ClientTokenT = Aws::String>
  void SetClientToken(ClientTokenT&& value) {
    m_clientTokenHasBeenSet = true;
    m_clientToken = std::forward<ClientTokenT>(value);
  }
  template <typename ClientTokenT = Aws::String>
  UpdateParallelDataRequest& WithClientToken(ClientTokenT&& value) {
    SetClientToken(std::forward<ClientTokenT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_name;

  Aws::String m_description;

  ParallelDataConfig m_parallelDataConfig;

  Aws::String m_clientToken{Aws::Utils::UUID::PseudoRandomUUID()};
  bool m_nameHasBeenSet = false;
  bool m_descriptionHasBeenSet = false;
  bool m_parallelDataConfigHasBeenSet = false;
  bool m_clientTokenHasBeenSet = true;
};

}  // namespace Model
}  // namespace Translate
}  // namespace Aws
