/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Kinesis { namespace Model { /** *

PutRecords results.

See Also:

AWS * API Reference

*/ class PutRecordsResult { public: AWS_KINESIS_API PutRecordsResult(); AWS_KINESIS_API PutRecordsResult(const Aws::AmazonWebServiceResult& result); AWS_KINESIS_API PutRecordsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The number of unsuccessfully processed records in a PutRecords * request.

*/ inline int GetFailedRecordCount() const{ return m_failedRecordCount; } /** *

The number of unsuccessfully processed records in a PutRecords * request.

*/ inline void SetFailedRecordCount(int value) { m_failedRecordCount = value; } /** *

The number of unsuccessfully processed records in a PutRecords * request.

*/ inline PutRecordsResult& WithFailedRecordCount(int value) { SetFailedRecordCount(value); return *this;} /** *

An array of successfully and unsuccessfully processed record results. A * record that is successfully added to a stream includes * SequenceNumber and ShardId in the result. A record * that fails to be added to a stream includes ErrorCode and * ErrorMessage in the result.

*/ inline const Aws::Vector& GetRecords() const{ return m_records; } /** *

An array of successfully and unsuccessfully processed record results. A * record that is successfully added to a stream includes * SequenceNumber and ShardId in the result. A record * that fails to be added to a stream includes ErrorCode and * ErrorMessage in the result.

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

An array of successfully and unsuccessfully processed record results. A * record that is successfully added to a stream includes * SequenceNumber and ShardId in the result. A record * that fails to be added to a stream includes ErrorCode and * ErrorMessage in the result.

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

An array of successfully and unsuccessfully processed record results. A * record that is successfully added to a stream includes * SequenceNumber and ShardId in the result. A record * that fails to be added to a stream includes ErrorCode and * ErrorMessage in the result.

*/ inline PutRecordsResult& WithRecords(const Aws::Vector& value) { SetRecords(value); return *this;} /** *

An array of successfully and unsuccessfully processed record results. A * record that is successfully added to a stream includes * SequenceNumber and ShardId in the result. A record * that fails to be added to a stream includes ErrorCode and * ErrorMessage in the result.

*/ inline PutRecordsResult& WithRecords(Aws::Vector&& value) { SetRecords(std::move(value)); return *this;} /** *

An array of successfully and unsuccessfully processed record results. A * record that is successfully added to a stream includes * SequenceNumber and ShardId in the result. A record * that fails to be added to a stream includes ErrorCode and * ErrorMessage in the result.

*/ inline PutRecordsResult& AddRecords(const PutRecordsResultEntry& value) { m_records.push_back(value); return *this; } /** *

An array of successfully and unsuccessfully processed record results. A * record that is successfully added to a stream includes * SequenceNumber and ShardId in the result. A record * that fails to be added to a stream includes ErrorCode and * ErrorMessage in the result.

*/ inline PutRecordsResult& AddRecords(PutRecordsResultEntry&& value) { m_records.push_back(std::move(value)); return *this; } /** *

The encryption type used on the records. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records.

  • KMS: Use server-side encryption on the * records using a customer-managed Amazon Web Services KMS key.

*/ inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; } /** *

The encryption type used on the records. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records.

  • KMS: Use server-side encryption on the * records using a customer-managed Amazon Web Services KMS key.

*/ inline void SetEncryptionType(const EncryptionType& value) { m_encryptionType = value; } /** *

The encryption type used on the records. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records.

  • KMS: Use server-side encryption on the * records using a customer-managed Amazon Web Services KMS key.

*/ inline void SetEncryptionType(EncryptionType&& value) { m_encryptionType = std::move(value); } /** *

The encryption type used on the records. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records.

  • KMS: Use server-side encryption on the * records using a customer-managed Amazon Web Services KMS key.

*/ inline PutRecordsResult& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;} /** *

The encryption type used on the records. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records.

  • KMS: Use server-side encryption on the * records using a customer-managed Amazon Web Services KMS key.

*/ inline PutRecordsResult& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(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 PutRecordsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutRecordsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutRecordsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_failedRecordCount; Aws::Vector m_records; EncryptionType m_encryptionType; Aws::String m_requestId; }; } // namespace Model } // namespace Kinesis } // namespace Aws