/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Firehose { namespace Model { class PutRecordBatchResult { public: AWS_FIREHOSE_API PutRecordBatchResult(); AWS_FIREHOSE_API PutRecordBatchResult(const Aws::AmazonWebServiceResult& result); AWS_FIREHOSE_API 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; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutRecordBatchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutRecordBatchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutRecordBatchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_failedPutCount; bool m_encrypted; Aws::Vector m_requestResponses; Aws::String m_requestId; }; } // namespace Model } // namespace Firehose } // namespace Aws