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

#pragma once
#include <aws/core/utils/Document.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/s3vectors/S3Vectors_EXPORTS.h>
#include <aws/s3vectors/model/VectorData.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace S3Vectors {
namespace Model {

/**
 * <p>The attributes of a vector to add to a vector index.</p><p><h3>See Also:</h3>
 * <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/PutInputVector">AWS
 * API Reference</a></p>
 */
class PutInputVector {
 public:
  AWS_S3VECTORS_API PutInputVector() = default;
  AWS_S3VECTORS_API PutInputVector(Aws::Utils::Json::JsonView jsonValue);
  AWS_S3VECTORS_API PutInputVector& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The name of the vector. The key uniquely identifies the vector in a vector
   * index. </p>
   */
  inline const Aws::String& GetKey() const { return m_key; }
  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
  template <typename KeyT = Aws::String>
  void SetKey(KeyT&& value) {
    m_keyHasBeenSet = true;
    m_key = std::forward<KeyT>(value);
  }
  template <typename KeyT = Aws::String>
  PutInputVector& WithKey(KeyT&& value) {
    SetKey(std::forward<KeyT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The vector data of the vector. </p> <p>Vector dimensions must match the
   * dimension count that's configured for the vector index.</p> <ul> <li> <p>For the
   * <code>cosine</code> distance metric, zero vectors (vectors containing all zeros)
   * aren't allowed.</p> </li> <li> <p>For both <code>cosine</code> and
   * <code>euclidean</code> distance metrics, vector data must contain only valid
   * floating-point values. Invalid values such as NaN (Not a Number) or Infinity
   * aren't allowed.</p> </li> </ul>
   */
  inline const VectorData& GetData() const { return m_data; }
  inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
  template <typename DataT = VectorData>
  void SetData(DataT&& value) {
    m_dataHasBeenSet = true;
    m_data = std::forward<DataT>(value);
  }
  template <typename DataT = VectorData>
  PutInputVector& WithData(DataT&& value) {
    SetData(std::forward<DataT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Metadata about the vector. All metadata entries undergo validation to ensure
   * they meet the format requirements for size and data types.</p>
   */
  inline Aws::Utils::DocumentView GetMetadata() const { return m_metadata; }
  inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
  template <typename MetadataT = Aws::Utils::Document>
  void SetMetadata(MetadataT&& value) {
    m_metadataHasBeenSet = true;
    m_metadata = std::forward<MetadataT>(value);
  }
  template <typename MetadataT = Aws::Utils::Document>
  PutInputVector& WithMetadata(MetadataT&& value) {
    SetMetadata(std::forward<MetadataT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_key;

  VectorData m_data;

  Aws::Utils::Document m_metadata;
  bool m_keyHasBeenSet = false;
  bool m_dataHasBeenSet = false;
  bool m_metadataHasBeenSet = false;
};

}  // namespace Model
}  // namespace S3Vectors
}  // namespace Aws
