/** * 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 { /** *

Represents a PartiQL statment that uses parameters.

See * Also:

AWS * API Reference

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

A PartiQL statment that uses parameters.

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

A PartiQL statment that uses parameters.

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

A PartiQL statment that uses parameters.

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

A PartiQL statment that uses parameters.

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

A PartiQL statment that uses parameters.

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

A PartiQL statment that uses parameters.

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

A PartiQL statment that uses parameters.

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

A PartiQL statment that uses parameters.

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

The parameter values.

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

The parameter values.

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

The parameter values.

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

The parameter values.

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

The parameter values.

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

The parameter values.

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

The parameter values.

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

The parameter values.

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

An optional parameter that returns the item attributes for a PartiQL * ParameterizedStatement 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 * ParameterizedStatement 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 * ParameterizedStatement 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 * ParameterizedStatement 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 * ParameterizedStatement 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 ParameterizedStatement& WithReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { SetReturnValuesOnConditionCheckFailure(value); return *this;} /** *

An optional parameter that returns the item attributes for a PartiQL * ParameterizedStatement 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 ParameterizedStatement& 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; ReturnValuesOnConditionCheckFailure m_returnValuesOnConditionCheckFailure; bool m_returnValuesOnConditionCheckFailureHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws