/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Kinesis { namespace Model { /** *

Represents the result of an individual record from a PutRecords * request. A record that is successfully added to a stream includes * SequenceNumber and ShardId in the result. A record * that fails to be added to the stream includes ErrorCode and * ErrorMessage in the result.

See Also:

AWS * API Reference

*/ class AWS_KINESIS_API PutRecordsResultEntry { public: PutRecordsResultEntry(); PutRecordsResultEntry(Aws::Utils::Json::JsonView jsonValue); PutRecordsResultEntry& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The sequence number for an individual record result.

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

The sequence number for an individual record result.

*/ inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; } /** *

The sequence number for an individual record result.

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

The sequence number for an individual record result.

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

The sequence number for an individual record result.

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

The sequence number for an individual record result.

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

The sequence number for an individual record result.

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

The sequence number for an individual record result.

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

The shard ID for an individual record result.

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

The shard ID for an individual record result.

*/ inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; } /** *

The shard ID for an individual record result.

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

The shard ID for an individual record result.

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

The shard ID for an individual record result.

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

The shard ID for an individual record result.

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

The shard ID for an individual record result.

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

The shard ID for an individual record result.

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

The error code for an individual record result. ErrorCodes can * be either ProvisionedThroughputExceededException or * InternalFailure.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The error code for an individual record result. ErrorCodes can * be either ProvisionedThroughputExceededException or * InternalFailure.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code for an individual record result. ErrorCodes can * be either ProvisionedThroughputExceededException or * InternalFailure.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code for an individual record result. ErrorCodes can * be either ProvisionedThroughputExceededException or * InternalFailure.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code for an individual record result. ErrorCodes can * be either ProvisionedThroughputExceededException or * InternalFailure.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The error code for an individual record result. ErrorCodes can * be either ProvisionedThroughputExceededException or * InternalFailure.

*/ inline PutRecordsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The error code for an individual record result. ErrorCodes can * be either ProvisionedThroughputExceededException or * InternalFailure.

*/ inline PutRecordsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error code for an individual record result. ErrorCodes can * be either ProvisionedThroughputExceededException or * InternalFailure.

*/ inline PutRecordsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

The error message for an individual record result. An ErrorCode * value of ProvisionedThroughputExceededException has an error * message that includes the account ID, stream name, and shard ID. An * ErrorCode value of InternalFailure has the error * message "Internal Service Failure".

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message for an individual record result. An ErrorCode * value of ProvisionedThroughputExceededException has an error * message that includes the account ID, stream name, and shard ID. An * ErrorCode value of InternalFailure has the error * message "Internal Service Failure".

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The error message for an individual record result. An ErrorCode * value of ProvisionedThroughputExceededException has an error * message that includes the account ID, stream name, and shard ID. An * ErrorCode value of InternalFailure has the error * message "Internal Service Failure".

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The error message for an individual record result. An ErrorCode * value of ProvisionedThroughputExceededException has an error * message that includes the account ID, stream name, and shard ID. An * ErrorCode value of InternalFailure has the error * message "Internal Service Failure".

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The error message for an individual record result. An ErrorCode * value of ProvisionedThroughputExceededException has an error * message that includes the account ID, stream name, and shard ID. An * ErrorCode value of InternalFailure has the error * message "Internal Service Failure".

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The error message for an individual record result. An ErrorCode * value of ProvisionedThroughputExceededException has an error * message that includes the account ID, stream name, and shard ID. An * ErrorCode value of InternalFailure has the error * message "Internal Service Failure".

*/ inline PutRecordsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message for an individual record result. An ErrorCode * value of ProvisionedThroughputExceededException has an error * message that includes the account ID, stream name, and shard ID. An * ErrorCode value of InternalFailure has the error * message "Internal Service Failure".

*/ inline PutRecordsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message for an individual record result. An ErrorCode * value of ProvisionedThroughputExceededException has an error * message that includes the account ID, stream name, and shard ID. An * ErrorCode value of InternalFailure has the error * message "Internal Service Failure".

*/ inline PutRecordsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_sequenceNumber; bool m_sequenceNumberHasBeenSet; Aws::String m_shardId; bool m_shardIdHasBeenSet; Aws::String m_errorCode; bool m_errorCodeHasBeenSet; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet; }; } // namespace Model } // namespace Kinesis } // namespace Aws