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

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/bedrock-agent-runtime/model/Attribution.h>
#include <aws/core/utils/Array.h>
#include <utility>

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

  /**
   * <p>Contains a part of an agent response and citations for it. </p><p><h3>See
   * Also:</h3>   <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InlineAgentPayloadPart">AWS
   * API Reference</a></p>
   */
  class InlineAgentPayloadPart
  {
  public:
    AWS_BEDROCKAGENTRUNTIME_API InlineAgentPayloadPart() = default;
    AWS_BEDROCKAGENTRUNTIME_API InlineAgentPayloadPart(Aws::Utils::Json::JsonView jsonValue);
    AWS_BEDROCKAGENTRUNTIME_API InlineAgentPayloadPart& operator=(Aws::Utils::Json::JsonView jsonValue);
    AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;


    ///@{
    /**
     * <p>Contains citations for a part of an agent response.</p>
     */
    inline const Attribution& GetAttribution() const { return m_attribution; }
    inline bool AttributionHasBeenSet() const { return m_attributionHasBeenSet; }
    template<typename AttributionT = Attribution>
    void SetAttribution(AttributionT&& value) { m_attributionHasBeenSet = true; m_attribution = std::forward<AttributionT>(value); }
    template<typename AttributionT = Attribution>
    InlineAgentPayloadPart& WithAttribution(AttributionT&& value) { SetAttribution(std::forward<AttributionT>(value)); return *this;}
    ///@}

    ///@{
    /**
     * <p>A part of the agent response in bytes.</p>
     */
    inline const Aws::Utils::CryptoBuffer& GetBytes() const { return m_bytes; }
    inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
    template<typename BytesT = Aws::Utils::CryptoBuffer>
    void SetBytes(BytesT&& value) { m_bytesHasBeenSet = true; m_bytes = std::forward<BytesT>(value); }
    template<typename BytesT = Aws::Utils::CryptoBuffer>
    InlineAgentPayloadPart& WithBytes(BytesT&& value) { SetBytes(std::forward<BytesT>(value)); return *this;}
    ///@}
  private:

    Attribution m_attribution;
    bool m_attributionHasBeenSet = false;

    Aws::Utils::CryptoBuffer m_bytes{};
    bool m_bytesHasBeenSet = false;
  };

} // namespace Model
} // namespace BedrockAgentRuntime
} // namespace Aws
