/**
 * 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/schemas/SchemasRequest.h>
#include <aws/schemas/Schemas_EXPORTS.h>
#include <aws/schemas/model/Type.h>

#include <utility>

namespace Aws {
namespace Schemas {
namespace Model {

/**
 */
class UpdateSchemaRequest : public SchemasRequest {
 public:
  AWS_SCHEMAS_API UpdateSchemaRequest() = 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 "UpdateSchema"; }

  AWS_SCHEMAS_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p>The ID of the client token.</p>
   */
  inline const Aws::String& GetClientTokenId() const { return m_clientTokenId; }
  inline bool ClientTokenIdHasBeenSet() const { return m_clientTokenIdHasBeenSet; }
  template <typename ClientTokenIdT = Aws::String>
  void SetClientTokenId(ClientTokenIdT&& value) {
    m_clientTokenIdHasBeenSet = true;
    m_clientTokenId = std::forward<ClientTokenIdT>(value);
  }
  template <typename ClientTokenIdT = Aws::String>
  UpdateSchemaRequest& WithClientTokenId(ClientTokenIdT&& value) {
    SetClientTokenId(std::forward<ClientTokenIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The source of the schema definition.</p>
   */
  inline const Aws::String& GetContent() const { return m_content; }
  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
  template <typename ContentT = Aws::String>
  void SetContent(ContentT&& value) {
    m_contentHasBeenSet = true;
    m_content = std::forward<ContentT>(value);
  }
  template <typename ContentT = Aws::String>
  UpdateSchemaRequest& WithContent(ContentT&& value) {
    SetContent(std::forward<ContentT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The description of the schema.</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>
  UpdateSchemaRequest& WithDescription(DescriptionT&& value) {
    SetDescription(std::forward<DescriptionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The name of the registry.</p>
   */
  inline const Aws::String& GetRegistryName() const { return m_registryName; }
  inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
  template <typename RegistryNameT = Aws::String>
  void SetRegistryName(RegistryNameT&& value) {
    m_registryNameHasBeenSet = true;
    m_registryName = std::forward<RegistryNameT>(value);
  }
  template <typename RegistryNameT = Aws::String>
  UpdateSchemaRequest& WithRegistryName(RegistryNameT&& value) {
    SetRegistryName(std::forward<RegistryNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The name of the schema.</p>
   */
  inline const Aws::String& GetSchemaName() const { return m_schemaName; }
  inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
  template <typename SchemaNameT = Aws::String>
  void SetSchemaName(SchemaNameT&& value) {
    m_schemaNameHasBeenSet = true;
    m_schemaName = std::forward<SchemaNameT>(value);
  }
  template <typename SchemaNameT = Aws::String>
  UpdateSchemaRequest& WithSchemaName(SchemaNameT&& value) {
    SetSchemaName(std::forward<SchemaNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The schema type for the events schema.</p>
   */
  inline Type GetType() const { return m_type; }
  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
  inline void SetType(Type value) {
    m_typeHasBeenSet = true;
    m_type = value;
  }
  inline UpdateSchemaRequest& WithType(Type value) {
    SetType(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_clientTokenId{Aws::Utils::UUID::PseudoRandomUUID()};

  Aws::String m_content;

  Aws::String m_description;

  Aws::String m_registryName;

  Aws::String m_schemaName;

  Type m_type{Type::NOT_SET};
  bool m_clientTokenIdHasBeenSet = true;
  bool m_contentHasBeenSet = false;
  bool m_descriptionHasBeenSet = false;
  bool m_registryNameHasBeenSet = false;
  bool m_schemaNameHasBeenSet = false;
  bool m_typeHasBeenSet = false;
};

}  // namespace Model
}  // namespace Schemas
}  // namespace Aws
