/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DynamoDB { namespace Model { /** *

A PartiQL batch statement request.

See Also:

AWS * API Reference

*/ class BatchStatementRequest { public: AWS_DYNAMODB_API BatchStatementRequest(); AWS_DYNAMODB_API BatchStatementRequest(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API BatchStatementRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A valid PartiQL statement.

*/ inline const Aws::String& GetStatement() const{ return m_statement; } /** *

A valid PartiQL statement.

*/ inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; } /** *

A valid PartiQL statement.

*/ inline void SetStatement(const Aws::String& value) { m_statementHasBeenSet = true; m_statement = value; } /** *

A valid PartiQL statement.

*/ inline void SetStatement(Aws::String&& value) { m_statementHasBeenSet = true; m_statement = std::move(value); } /** *

A valid PartiQL statement.

*/ inline void SetStatement(const char* value) { m_statementHasBeenSet = true; m_statement.assign(value); } /** *

A valid PartiQL statement.

*/ inline BatchStatementRequest& WithStatement(const Aws::String& value) { SetStatement(value); return *this;} /** *

A valid PartiQL statement.

*/ inline BatchStatementRequest& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;} /** *

A valid PartiQL statement.

*/ inline BatchStatementRequest& WithStatement(const char* value) { SetStatement(value); return *this;} /** *

The parameters associated with a PartiQL statement in the batch request. *

*/ inline const Aws::Vector& GetParameters() const{ return m_parameters; } /** *

The parameters associated with a PartiQL statement in the batch request. *

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

The parameters associated with a PartiQL statement in the batch request. *

*/ inline void SetParameters(const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

The parameters associated with a PartiQL statement in the batch request. *

*/ inline void SetParameters(Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

The parameters associated with a PartiQL statement in the batch request. *

*/ inline BatchStatementRequest& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} /** *

The parameters associated with a PartiQL statement in the batch request. *

*/ inline BatchStatementRequest& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} /** *

The parameters associated with a PartiQL statement in the batch request. *

*/ inline BatchStatementRequest& AddParameters(const AttributeValue& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; } /** *

The parameters associated with a PartiQL statement in the batch request. *

*/ inline BatchStatementRequest& AddParameters(AttributeValue&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } /** *

The read consistency of the PartiQL batch request.

*/ inline bool GetConsistentRead() const{ return m_consistentRead; } /** *

The read consistency of the PartiQL batch request.

*/ inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; } /** *

The read consistency of the PartiQL batch request.

*/ inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; } /** *

The read consistency of the PartiQL batch request.

*/ inline BatchStatementRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;} /** *

An optional parameter that returns the item attributes for a PartiQL batch * request operation that failed a condition check.

There is no additional * cost associated with requesting a return value aside from the small network and * processing overhead of receiving a larger response. No read capacity units are * consumed.

*/ inline const ReturnValuesOnConditionCheckFailure& GetReturnValuesOnConditionCheckFailure() const{ return m_returnValuesOnConditionCheckFailure; } /** *

An optional parameter that returns the item attributes for a PartiQL batch * request operation that failed a condition check.

There is no additional * cost associated with requesting a return value aside from the small network and * processing overhead of receiving a larger response. No read capacity units are * consumed.

*/ inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; } /** *

An optional parameter that returns the item attributes for a PartiQL batch * request operation that failed a condition check.

There is no additional * cost associated with requesting a return value aside from the small network and * processing overhead of receiving a larger response. No read capacity units are * consumed.

*/ inline void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; } /** *

An optional parameter that returns the item attributes for a PartiQL batch * request operation that failed a condition check.

There is no additional * cost associated with requesting a return value aside from the small network and * processing overhead of receiving a larger response. No read capacity units are * consumed.

*/ inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure&& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = std::move(value); } /** *

An optional parameter that returns the item attributes for a PartiQL batch * request operation that failed a condition check.

There is no additional * cost associated with requesting a return value aside from the small network and * processing overhead of receiving a larger response. No read capacity units are * consumed.

*/ inline BatchStatementRequest& WithReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { SetReturnValuesOnConditionCheckFailure(value); return *this;} /** *

An optional parameter that returns the item attributes for a PartiQL batch * request operation that failed a condition check.

There is no additional * cost associated with requesting a return value aside from the small network and * processing overhead of receiving a larger response. No read capacity units are * consumed.

*/ inline BatchStatementRequest& WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure&& value) { SetReturnValuesOnConditionCheckFailure(std::move(value)); return *this;} private: Aws::String m_statement; bool m_statementHasBeenSet = false; Aws::Vector m_parameters; bool m_parametersHasBeenSet = false; bool m_consistentRead; bool m_consistentReadHasBeenSet = false; ReturnValuesOnConditionCheckFailure m_returnValuesOnConditionCheckFailure; bool m_returnValuesOnConditionCheckFailureHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws