/** * 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 Kinesis { namespace Model { /** *

PutRecords results.

See Also:

AWS * API Reference

*/ class AWS_KINESIS_API PutRecordsResult { public: PutRecordsResult(); PutRecordsResult(const Aws::AmazonWebServiceResult& result); 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, * correlated with the request by natural ordering. 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, * correlated with the request by natural ordering. 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, * correlated with the request by natural ordering. 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, * correlated with the request by natural ordering. 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, * correlated with the request by natural ordering. 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, * correlated with the request by natural ordering. 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, * correlated with the request by natural ordering. 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS KMS key.

*/ inline PutRecordsResult& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;} private: int m_failedRecordCount; Aws::Vector m_records; EncryptionType m_encryptionType; }; } // namespace Model } // namespace Kinesis } // namespace Aws