/**
 * 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/dynamodb/DynamoDBRequest.h>
#include <aws/dynamodb/DynamoDB_EXPORTS.h>
#include <aws/dynamodb/model/UpdateKinesisStreamingConfiguration.h>

#include <utility>

namespace Aws {
namespace DynamoDB {
namespace Model {

/**
 */
class UpdateKinesisStreamingDestinationRequest : public DynamoDBRequest {
 public:
  AWS_DYNAMODB_API UpdateKinesisStreamingDestinationRequest() = 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 "UpdateKinesisStreamingDestination"; }

  AWS_DYNAMODB_API Aws::String SerializePayload() const override;

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

  /**
   * Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation.
   */
  AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;

  ///@{
  /**
   * <p>The table name for the Kinesis streaming destination input. You can also
   * provide the ARN of the table in this parameter.</p>
   */
  inline const Aws::String& GetTableName() const { return m_tableName; }
  inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
  template <typename TableNameT = Aws::String>
  void SetTableName(TableNameT&& value) {
    m_tableNameHasBeenSet = true;
    m_tableName = std::forward<TableNameT>(value);
  }
  template <typename TableNameT = Aws::String>
  UpdateKinesisStreamingDestinationRequest& WithTableName(TableNameT&& value) {
    SetTableName(std::forward<TableNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) for the Kinesis stream input.</p>
   */
  inline const Aws::String& GetStreamArn() const { return m_streamArn; }
  inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
  template <typename StreamArnT = Aws::String>
  void SetStreamArn(StreamArnT&& value) {
    m_streamArnHasBeenSet = true;
    m_streamArn = std::forward<StreamArnT>(value);
  }
  template <typename StreamArnT = Aws::String>
  UpdateKinesisStreamingDestinationRequest& WithStreamArn(StreamArnT&& value) {
    SetStreamArn(std::forward<StreamArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The command to update the Kinesis stream configuration.</p>
   */
  inline const UpdateKinesisStreamingConfiguration& GetUpdateKinesisStreamingConfiguration() const {
    return m_updateKinesisStreamingConfiguration;
  }
  inline bool UpdateKinesisStreamingConfigurationHasBeenSet() const { return m_updateKinesisStreamingConfigurationHasBeenSet; }
  template <typename UpdateKinesisStreamingConfigurationT = UpdateKinesisStreamingConfiguration>
  void SetUpdateKinesisStreamingConfiguration(UpdateKinesisStreamingConfigurationT&& value) {
    m_updateKinesisStreamingConfigurationHasBeenSet = true;
    m_updateKinesisStreamingConfiguration = std::forward<UpdateKinesisStreamingConfigurationT>(value);
  }
  template <typename UpdateKinesisStreamingConfigurationT = UpdateKinesisStreamingConfiguration>
  UpdateKinesisStreamingDestinationRequest& WithUpdateKinesisStreamingConfiguration(UpdateKinesisStreamingConfigurationT&& value) {
    SetUpdateKinesisStreamingConfiguration(std::forward<UpdateKinesisStreamingConfigurationT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_tableName;

  Aws::String m_streamArn;

  UpdateKinesisStreamingConfiguration m_updateKinesisStreamingConfiguration;
  bool m_tableNameHasBeenSet = false;
  bool m_streamArnHasBeenSet = false;
  bool m_updateKinesisStreamingConfigurationHasBeenSet = false;
};

}  // namespace Model
}  // namespace DynamoDB
}  // namespace Aws
