/** * 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 CloudWatchLogs { namespace Model { class PutLogEventsResult { public: AWS_CLOUDWATCHLOGS_API PutLogEventsResult(); AWS_CLOUDWATCHLOGS_API PutLogEventsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHLOGS_API PutLogEventsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The next sequence token.

This field has been * deprecated.

The sequence token is now ignored in * PutLogEvents actions. PutLogEvents actions are always * accepted even if the sequence token is not valid. You can use parallel * PutLogEvents actions on the same log stream and you do not need to * wait for the response of a previous PutLogEvents action to obtain * the nextSequenceToken value.

*/ inline const Aws::String& GetNextSequenceToken() const{ return m_nextSequenceToken; } /** *

The next sequence token.

This field has been * deprecated.

The sequence token is now ignored in * PutLogEvents actions. PutLogEvents actions are always * accepted even if the sequence token is not valid. You can use parallel * PutLogEvents actions on the same log stream and you do not need to * wait for the response of a previous PutLogEvents action to obtain * the nextSequenceToken value.

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

The next sequence token.

This field has been * deprecated.

The sequence token is now ignored in * PutLogEvents actions. PutLogEvents actions are always * accepted even if the sequence token is not valid. You can use parallel * PutLogEvents actions on the same log stream and you do not need to * wait for the response of a previous PutLogEvents action to obtain * the nextSequenceToken value.

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

The next sequence token.

This field has been * deprecated.

The sequence token is now ignored in * PutLogEvents actions. PutLogEvents actions are always * accepted even if the sequence token is not valid. You can use parallel * PutLogEvents actions on the same log stream and you do not need to * wait for the response of a previous PutLogEvents action to obtain * the nextSequenceToken value.

*/ inline void SetNextSequenceToken(const char* value) { m_nextSequenceToken.assign(value); } /** *

The next sequence token.

This field has been * deprecated.

The sequence token is now ignored in * PutLogEvents actions. PutLogEvents actions are always * accepted even if the sequence token is not valid. You can use parallel * PutLogEvents actions on the same log stream and you do not need to * wait for the response of a previous PutLogEvents action to obtain * the nextSequenceToken value.

*/ inline PutLogEventsResult& WithNextSequenceToken(const Aws::String& value) { SetNextSequenceToken(value); return *this;} /** *

The next sequence token.

This field has been * deprecated.

The sequence token is now ignored in * PutLogEvents actions. PutLogEvents actions are always * accepted even if the sequence token is not valid. You can use parallel * PutLogEvents actions on the same log stream and you do not need to * wait for the response of a previous PutLogEvents action to obtain * the nextSequenceToken value.

*/ inline PutLogEventsResult& WithNextSequenceToken(Aws::String&& value) { SetNextSequenceToken(std::move(value)); return *this;} /** *

The next sequence token.

This field has been * deprecated.

The sequence token is now ignored in * PutLogEvents actions. PutLogEvents actions are always * accepted even if the sequence token is not valid. You can use parallel * PutLogEvents actions on the same log stream and you do not need to * wait for the response of a previous PutLogEvents action to obtain * the nextSequenceToken value.

*/ inline PutLogEventsResult& WithNextSequenceToken(const char* value) { SetNextSequenceToken(value); return *this;} /** *

The rejected events.

*/ inline const RejectedLogEventsInfo& GetRejectedLogEventsInfo() const{ return m_rejectedLogEventsInfo; } /** *

The rejected events.

*/ inline void SetRejectedLogEventsInfo(const RejectedLogEventsInfo& value) { m_rejectedLogEventsInfo = value; } /** *

The rejected events.

*/ inline void SetRejectedLogEventsInfo(RejectedLogEventsInfo&& value) { m_rejectedLogEventsInfo = std::move(value); } /** *

The rejected events.

*/ inline PutLogEventsResult& WithRejectedLogEventsInfo(const RejectedLogEventsInfo& value) { SetRejectedLogEventsInfo(value); return *this;} /** *

The rejected events.

*/ inline PutLogEventsResult& WithRejectedLogEventsInfo(RejectedLogEventsInfo&& value) { SetRejectedLogEventsInfo(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 PutLogEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutLogEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutLogEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextSequenceToken; RejectedLogEventsInfo m_rejectedLogEventsInfo; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws