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

The sequence token is not valid. You can get the correct sequence token in * the expectedSequenceToken field in the * InvalidSequenceTokenException message.

* PutLogEvents actions are now always accepted and never return * InvalidSequenceTokenException regardless of receiving an invalid * sequence token.

See Also:

AWS * API Reference

*/ class InvalidSequenceTokenException { public: AWS_CLOUDWATCHLOGS_API InvalidSequenceTokenException(); AWS_CLOUDWATCHLOGS_API InvalidSequenceTokenException(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API InvalidSequenceTokenException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetExpectedSequenceToken() const{ return m_expectedSequenceToken; } inline bool ExpectedSequenceTokenHasBeenSet() const { return m_expectedSequenceTokenHasBeenSet; } inline void SetExpectedSequenceToken(const Aws::String& value) { m_expectedSequenceTokenHasBeenSet = true; m_expectedSequenceToken = value; } inline void SetExpectedSequenceToken(Aws::String&& value) { m_expectedSequenceTokenHasBeenSet = true; m_expectedSequenceToken = std::move(value); } inline void SetExpectedSequenceToken(const char* value) { m_expectedSequenceTokenHasBeenSet = true; m_expectedSequenceToken.assign(value); } inline InvalidSequenceTokenException& WithExpectedSequenceToken(const Aws::String& value) { SetExpectedSequenceToken(value); return *this;} inline InvalidSequenceTokenException& WithExpectedSequenceToken(Aws::String&& value) { SetExpectedSequenceToken(std::move(value)); return *this;} inline InvalidSequenceTokenException& WithExpectedSequenceToken(const char* value) { SetExpectedSequenceToken(value); return *this;} private: Aws::String m_expectedSequenceToken; bool m_expectedSequenceTokenHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws