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

Represents the output for PutRecord.

See Also:

* AWS * API Reference

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

The shard ID of the shard where the data record was placed.

*/ inline const Aws::String& GetShardId() const{ return m_shardId; } /** *

The shard ID of the shard where the data record was placed.

*/ inline void SetShardId(const Aws::String& value) { m_shardId = value; } /** *

The shard ID of the shard where the data record was placed.

*/ inline void SetShardId(Aws::String&& value) { m_shardId = std::move(value); } /** *

The shard ID of the shard where the data record was placed.

*/ inline void SetShardId(const char* value) { m_shardId.assign(value); } /** *

The shard ID of the shard where the data record was placed.

*/ inline PutRecordResult& WithShardId(const Aws::String& value) { SetShardId(value); return *this;} /** *

The shard ID of the shard where the data record was placed.

*/ inline PutRecordResult& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;} /** *

The shard ID of the shard where the data record was placed.

*/ inline PutRecordResult& WithShardId(const char* value) { SetShardId(value); return *this;} /** *

The sequence number identifier that was assigned to the put data record. The * sequence number for the record is unique across all records in the stream. A * sequence number is the identifier associated with every record put into the * stream.

*/ inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; } /** *

The sequence number identifier that was assigned to the put data record. The * sequence number for the record is unique across all records in the stream. A * sequence number is the identifier associated with every record put into the * stream.

*/ inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumber = value; } /** *

The sequence number identifier that was assigned to the put data record. The * sequence number for the record is unique across all records in the stream. A * sequence number is the identifier associated with every record put into the * stream.

*/ inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumber = std::move(value); } /** *

The sequence number identifier that was assigned to the put data record. The * sequence number for the record is unique across all records in the stream. A * sequence number is the identifier associated with every record put into the * stream.

*/ inline void SetSequenceNumber(const char* value) { m_sequenceNumber.assign(value); } /** *

The sequence number identifier that was assigned to the put data record. The * sequence number for the record is unique across all records in the stream. A * sequence number is the identifier associated with every record put into the * stream.

*/ inline PutRecordResult& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;} /** *

The sequence number identifier that was assigned to the put data record. The * sequence number for the record is unique across all records in the stream. A * sequence number is the identifier associated with every record put into the * stream.

*/ inline PutRecordResult& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;} /** *

The sequence number identifier that was assigned to the put data record. The * sequence number for the record is unique across all records in the stream. A * sequence number is the identifier associated with every record put into the * stream.

*/ inline PutRecordResult& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;} /** *

The encryption type to use on the record. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records in the stream.

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

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

The encryption type to use on the record. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records in the stream.

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

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

The encryption type to use on the record. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records in the stream.

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

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

The encryption type to use on the record. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records in the stream.

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

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

The encryption type to use on the record. This parameter can be one of the * following values:

  • NONE: Do not encrypt the * records in the stream.

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

*/ inline PutRecordResult& 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 PutRecordResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutRecordResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutRecordResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_shardId; Aws::String m_sequenceNumber; EncryptionType m_encryptionType; Aws::String m_requestId; }; } // namespace Model } // namespace Kinesis } // namespace Aws