/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Firehose { namespace Model { class AWS_FIREHOSE_API PutRecordBatchResult { public: PutRecordBatchResult(); PutRecordBatchResult(const Aws::AmazonWebServiceResult& result); PutRecordBatchResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The number of records that might have failed processing. This number might be * greater than 0 even if the PutRecordBatch call succeeds. Check * FailedPutCount to determine whether there are records that you need * to resend.

*/ inline int GetFailedPutCount() const{ return m_failedPutCount; } /** *

The number of records that might have failed processing. This number might be * greater than 0 even if the PutRecordBatch call succeeds. Check * FailedPutCount to determine whether there are records that you need * to resend.

*/ inline void SetFailedPutCount(int value) { m_failedPutCount = value; } /** *

The number of records that might have failed processing. This number might be * greater than 0 even if the PutRecordBatch call succeeds. Check * FailedPutCount to determine whether there are records that you need * to resend.

*/ inline PutRecordBatchResult& WithFailedPutCount(int value) { SetFailedPutCount(value); return *this;} /** *

Indicates whether server-side encryption (SSE) was enabled during this * operation.

*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *

Indicates whether server-side encryption (SSE) was enabled during this * operation.

*/ inline void SetEncrypted(bool value) { m_encrypted = value; } /** *

Indicates whether server-side encryption (SSE) was enabled during this * operation.

*/ inline PutRecordBatchResult& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *

The results array. For each record, the index of the response element is the * same as the index used in the request array.

*/ inline const Aws::Vector& GetRequestResponses() const{ return m_requestResponses; } /** *

The results array. For each record, the index of the response element is the * same as the index used in the request array.

*/ inline void SetRequestResponses(const Aws::Vector& value) { m_requestResponses = value; } /** *

The results array. For each record, the index of the response element is the * same as the index used in the request array.

*/ inline void SetRequestResponses(Aws::Vector&& value) { m_requestResponses = std::move(value); } /** *

The results array. For each record, the index of the response element is the * same as the index used in the request array.

*/ inline PutRecordBatchResult& WithRequestResponses(const Aws::Vector& value) { SetRequestResponses(value); return *this;} /** *

The results array. For each record, the index of the response element is the * same as the index used in the request array.

*/ inline PutRecordBatchResult& WithRequestResponses(Aws::Vector&& value) { SetRequestResponses(std::move(value)); return *this;} /** *

The results array. For each record, the index of the response element is the * same as the index used in the request array.

*/ inline PutRecordBatchResult& AddRequestResponses(const PutRecordBatchResponseEntry& value) { m_requestResponses.push_back(value); return *this; } /** *

The results array. For each record, the index of the response element is the * same as the index used in the request array.

*/ inline PutRecordBatchResult& AddRequestResponses(PutRecordBatchResponseEntry&& value) { m_requestResponses.push_back(std::move(value)); return *this; } private: int m_failedPutCount; bool m_encrypted; Aws::Vector m_requestResponses; }; } // namespace Model } // namespace Firehose } // namespace Aws