/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An error associated with a statement in a PartiQL batch that was run.
* See Also:
AWS
* API Reference
The error code associated with the failed PartiQL batch statement.
*/ inline const BatchStatementErrorCodeEnum& GetCode() const{ return m_code; } /** *The error code associated with the failed PartiQL batch statement.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The error code associated with the failed PartiQL batch statement.
*/ inline void SetCode(const BatchStatementErrorCodeEnum& value) { m_codeHasBeenSet = true; m_code = value; } /** *The error code associated with the failed PartiQL batch statement.
*/ inline void SetCode(BatchStatementErrorCodeEnum&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The error code associated with the failed PartiQL batch statement.
*/ inline BatchStatementError& WithCode(const BatchStatementErrorCodeEnum& value) { SetCode(value); return *this;} /** *The error code associated with the failed PartiQL batch statement.
*/ inline BatchStatementError& WithCode(BatchStatementErrorCodeEnum&& value) { SetCode(std::move(value)); return *this;} /** *The error message associated with the PartiQL batch response.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The error message associated with the PartiQL batch response.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The error message associated with the PartiQL batch response.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The error message associated with the PartiQL batch response.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The error message associated with the PartiQL batch response.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The error message associated with the PartiQL batch response.
*/ inline BatchStatementError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The error message associated with the PartiQL batch response.
*/ inline BatchStatementError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The error message associated with the PartiQL batch response.
*/ inline BatchStatementError& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.
The item which caused the condition check to fail. This will be set if
* ReturnValuesOnConditionCheckFailure is specified as ALL_OLD
.