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

Provides statistics for the specified ImportID. CloudTrail does * not update import statistics in real-time. Returned values for parameters such * as EventsCompleted may be lower than the actual value, because * CloudTrail updates statistics incrementally over the course of the import. *

See Also:

AWS * API Reference

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

The number of S3 prefixes found for the import.

*/ inline long long GetPrefixesFound() const{ return m_prefixesFound; } /** *

The number of S3 prefixes found for the import.

*/ inline bool PrefixesFoundHasBeenSet() const { return m_prefixesFoundHasBeenSet; } /** *

The number of S3 prefixes found for the import.

*/ inline void SetPrefixesFound(long long value) { m_prefixesFoundHasBeenSet = true; m_prefixesFound = value; } /** *

The number of S3 prefixes found for the import.

*/ inline ImportStatistics& WithPrefixesFound(long long value) { SetPrefixesFound(value); return *this;} /** *

The number of S3 prefixes that completed import.

*/ inline long long GetPrefixesCompleted() const{ return m_prefixesCompleted; } /** *

The number of S3 prefixes that completed import.

*/ inline bool PrefixesCompletedHasBeenSet() const { return m_prefixesCompletedHasBeenSet; } /** *

The number of S3 prefixes that completed import.

*/ inline void SetPrefixesCompleted(long long value) { m_prefixesCompletedHasBeenSet = true; m_prefixesCompleted = value; } /** *

The number of S3 prefixes that completed import.

*/ inline ImportStatistics& WithPrefixesCompleted(long long value) { SetPrefixesCompleted(value); return *this;} /** *

The number of log files that completed import.

*/ inline long long GetFilesCompleted() const{ return m_filesCompleted; } /** *

The number of log files that completed import.

*/ inline bool FilesCompletedHasBeenSet() const { return m_filesCompletedHasBeenSet; } /** *

The number of log files that completed import.

*/ inline void SetFilesCompleted(long long value) { m_filesCompletedHasBeenSet = true; m_filesCompleted = value; } /** *

The number of log files that completed import.

*/ inline ImportStatistics& WithFilesCompleted(long long value) { SetFilesCompleted(value); return *this;} /** *

The number of trail events imported into the event data store.

*/ inline long long GetEventsCompleted() const{ return m_eventsCompleted; } /** *

The number of trail events imported into the event data store.

*/ inline bool EventsCompletedHasBeenSet() const { return m_eventsCompletedHasBeenSet; } /** *

The number of trail events imported into the event data store.

*/ inline void SetEventsCompleted(long long value) { m_eventsCompletedHasBeenSet = true; m_eventsCompleted = value; } /** *

The number of trail events imported into the event data store.

*/ inline ImportStatistics& WithEventsCompleted(long long value) { SetEventsCompleted(value); return *this;} /** *

The number of failed entries.

*/ inline long long GetFailedEntries() const{ return m_failedEntries; } /** *

The number of failed entries.

*/ inline bool FailedEntriesHasBeenSet() const { return m_failedEntriesHasBeenSet; } /** *

The number of failed entries.

*/ inline void SetFailedEntries(long long value) { m_failedEntriesHasBeenSet = true; m_failedEntries = value; } /** *

The number of failed entries.

*/ inline ImportStatistics& WithFailedEntries(long long value) { SetFailedEntries(value); return *this;} private: long long m_prefixesFound; bool m_prefixesFoundHasBeenSet = false; long long m_prefixesCompleted; bool m_prefixesCompletedHasBeenSet = false; long long m_filesCompleted; bool m_filesCompletedHasBeenSet = false; long long m_eventsCompleted; bool m_eventsCompletedHasBeenSet = false; long long m_failedEntries; bool m_failedEntriesHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws