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

A table showing information about the most recent successful and failed * attempts to ingest events.

See Also:

AWS * API Reference

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

The time stamp of the most recent successful ingestion of events for the * channel.

*/ inline const Aws::Utils::DateTime& GetLatestIngestionSuccessTime() const{ return m_latestIngestionSuccessTime; } /** *

The time stamp of the most recent successful ingestion of events for the * channel.

*/ inline bool LatestIngestionSuccessTimeHasBeenSet() const { return m_latestIngestionSuccessTimeHasBeenSet; } /** *

The time stamp of the most recent successful ingestion of events for the * channel.

*/ inline void SetLatestIngestionSuccessTime(const Aws::Utils::DateTime& value) { m_latestIngestionSuccessTimeHasBeenSet = true; m_latestIngestionSuccessTime = value; } /** *

The time stamp of the most recent successful ingestion of events for the * channel.

*/ inline void SetLatestIngestionSuccessTime(Aws::Utils::DateTime&& value) { m_latestIngestionSuccessTimeHasBeenSet = true; m_latestIngestionSuccessTime = std::move(value); } /** *

The time stamp of the most recent successful ingestion of events for the * channel.

*/ inline IngestionStatus& WithLatestIngestionSuccessTime(const Aws::Utils::DateTime& value) { SetLatestIngestionSuccessTime(value); return *this;} /** *

The time stamp of the most recent successful ingestion of events for the * channel.

*/ inline IngestionStatus& WithLatestIngestionSuccessTime(Aws::Utils::DateTime&& value) { SetLatestIngestionSuccessTime(std::move(value)); return *this;} /** *

The event ID of the most recent successful ingestion of events.

*/ inline const Aws::String& GetLatestIngestionSuccessEventID() const{ return m_latestIngestionSuccessEventID; } /** *

The event ID of the most recent successful ingestion of events.

*/ inline bool LatestIngestionSuccessEventIDHasBeenSet() const { return m_latestIngestionSuccessEventIDHasBeenSet; } /** *

The event ID of the most recent successful ingestion of events.

*/ inline void SetLatestIngestionSuccessEventID(const Aws::String& value) { m_latestIngestionSuccessEventIDHasBeenSet = true; m_latestIngestionSuccessEventID = value; } /** *

The event ID of the most recent successful ingestion of events.

*/ inline void SetLatestIngestionSuccessEventID(Aws::String&& value) { m_latestIngestionSuccessEventIDHasBeenSet = true; m_latestIngestionSuccessEventID = std::move(value); } /** *

The event ID of the most recent successful ingestion of events.

*/ inline void SetLatestIngestionSuccessEventID(const char* value) { m_latestIngestionSuccessEventIDHasBeenSet = true; m_latestIngestionSuccessEventID.assign(value); } /** *

The event ID of the most recent successful ingestion of events.

*/ inline IngestionStatus& WithLatestIngestionSuccessEventID(const Aws::String& value) { SetLatestIngestionSuccessEventID(value); return *this;} /** *

The event ID of the most recent successful ingestion of events.

*/ inline IngestionStatus& WithLatestIngestionSuccessEventID(Aws::String&& value) { SetLatestIngestionSuccessEventID(std::move(value)); return *this;} /** *

The event ID of the most recent successful ingestion of events.

*/ inline IngestionStatus& WithLatestIngestionSuccessEventID(const char* value) { SetLatestIngestionSuccessEventID(value); return *this;} /** *

The error code for the most recent failure to ingest events.

*/ inline const Aws::String& GetLatestIngestionErrorCode() const{ return m_latestIngestionErrorCode; } /** *

The error code for the most recent failure to ingest events.

*/ inline bool LatestIngestionErrorCodeHasBeenSet() const { return m_latestIngestionErrorCodeHasBeenSet; } /** *

The error code for the most recent failure to ingest events.

*/ inline void SetLatestIngestionErrorCode(const Aws::String& value) { m_latestIngestionErrorCodeHasBeenSet = true; m_latestIngestionErrorCode = value; } /** *

The error code for the most recent failure to ingest events.

*/ inline void SetLatestIngestionErrorCode(Aws::String&& value) { m_latestIngestionErrorCodeHasBeenSet = true; m_latestIngestionErrorCode = std::move(value); } /** *

The error code for the most recent failure to ingest events.

*/ inline void SetLatestIngestionErrorCode(const char* value) { m_latestIngestionErrorCodeHasBeenSet = true; m_latestIngestionErrorCode.assign(value); } /** *

The error code for the most recent failure to ingest events.

*/ inline IngestionStatus& WithLatestIngestionErrorCode(const Aws::String& value) { SetLatestIngestionErrorCode(value); return *this;} /** *

The error code for the most recent failure to ingest events.

*/ inline IngestionStatus& WithLatestIngestionErrorCode(Aws::String&& value) { SetLatestIngestionErrorCode(std::move(value)); return *this;} /** *

The error code for the most recent failure to ingest events.

*/ inline IngestionStatus& WithLatestIngestionErrorCode(const char* value) { SetLatestIngestionErrorCode(value); return *this;} /** *

The time stamp of the most recent attempt to ingest events on the * channel.

*/ inline const Aws::Utils::DateTime& GetLatestIngestionAttemptTime() const{ return m_latestIngestionAttemptTime; } /** *

The time stamp of the most recent attempt to ingest events on the * channel.

*/ inline bool LatestIngestionAttemptTimeHasBeenSet() const { return m_latestIngestionAttemptTimeHasBeenSet; } /** *

The time stamp of the most recent attempt to ingest events on the * channel.

*/ inline void SetLatestIngestionAttemptTime(const Aws::Utils::DateTime& value) { m_latestIngestionAttemptTimeHasBeenSet = true; m_latestIngestionAttemptTime = value; } /** *

The time stamp of the most recent attempt to ingest events on the * channel.

*/ inline void SetLatestIngestionAttemptTime(Aws::Utils::DateTime&& value) { m_latestIngestionAttemptTimeHasBeenSet = true; m_latestIngestionAttemptTime = std::move(value); } /** *

The time stamp of the most recent attempt to ingest events on the * channel.

*/ inline IngestionStatus& WithLatestIngestionAttemptTime(const Aws::Utils::DateTime& value) { SetLatestIngestionAttemptTime(value); return *this;} /** *

The time stamp of the most recent attempt to ingest events on the * channel.

*/ inline IngestionStatus& WithLatestIngestionAttemptTime(Aws::Utils::DateTime&& value) { SetLatestIngestionAttemptTime(std::move(value)); return *this;} /** *

The event ID of the most recent attempt to ingest events.

*/ inline const Aws::String& GetLatestIngestionAttemptEventID() const{ return m_latestIngestionAttemptEventID; } /** *

The event ID of the most recent attempt to ingest events.

*/ inline bool LatestIngestionAttemptEventIDHasBeenSet() const { return m_latestIngestionAttemptEventIDHasBeenSet; } /** *

The event ID of the most recent attempt to ingest events.

*/ inline void SetLatestIngestionAttemptEventID(const Aws::String& value) { m_latestIngestionAttemptEventIDHasBeenSet = true; m_latestIngestionAttemptEventID = value; } /** *

The event ID of the most recent attempt to ingest events.

*/ inline void SetLatestIngestionAttemptEventID(Aws::String&& value) { m_latestIngestionAttemptEventIDHasBeenSet = true; m_latestIngestionAttemptEventID = std::move(value); } /** *

The event ID of the most recent attempt to ingest events.

*/ inline void SetLatestIngestionAttemptEventID(const char* value) { m_latestIngestionAttemptEventIDHasBeenSet = true; m_latestIngestionAttemptEventID.assign(value); } /** *

The event ID of the most recent attempt to ingest events.

*/ inline IngestionStatus& WithLatestIngestionAttemptEventID(const Aws::String& value) { SetLatestIngestionAttemptEventID(value); return *this;} /** *

The event ID of the most recent attempt to ingest events.

*/ inline IngestionStatus& WithLatestIngestionAttemptEventID(Aws::String&& value) { SetLatestIngestionAttemptEventID(std::move(value)); return *this;} /** *

The event ID of the most recent attempt to ingest events.

*/ inline IngestionStatus& WithLatestIngestionAttemptEventID(const char* value) { SetLatestIngestionAttemptEventID(value); return *this;} private: Aws::Utils::DateTime m_latestIngestionSuccessTime; bool m_latestIngestionSuccessTimeHasBeenSet = false; Aws::String m_latestIngestionSuccessEventID; bool m_latestIngestionSuccessEventIDHasBeenSet = false; Aws::String m_latestIngestionErrorCode; bool m_latestIngestionErrorCodeHasBeenSet = false; Aws::Utils::DateTime m_latestIngestionAttemptTime; bool m_latestIngestionAttemptTimeHasBeenSet = false; Aws::String m_latestIngestionAttemptEventID; bool m_latestIngestionAttemptEventIDHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws