/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { class GetImportResult { public: AWS_CLOUDTRAIL_API GetImportResult(); AWS_CLOUDTRAIL_API GetImportResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API GetImportResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the import.

*/ inline const Aws::String& GetImportId() const{ return m_importId; } /** *

The ID of the import.

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

The ID of the import.

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

The ID of the import.

*/ inline void SetImportId(const char* value) { m_importId.assign(value); } /** *

The ID of the import.

*/ inline GetImportResult& WithImportId(const Aws::String& value) { SetImportId(value); return *this;} /** *

The ID of the import.

*/ inline GetImportResult& WithImportId(Aws::String&& value) { SetImportId(std::move(value)); return *this;} /** *

The ID of the import.

*/ inline GetImportResult& WithImportId(const char* value) { SetImportId(value); return *this;} /** *

The ARN of the destination event data store.

*/ inline const Aws::Vector& GetDestinations() const{ return m_destinations; } /** *

The ARN of the destination event data store.

*/ inline void SetDestinations(const Aws::Vector& value) { m_destinations = value; } /** *

The ARN of the destination event data store.

*/ inline void SetDestinations(Aws::Vector&& value) { m_destinations = std::move(value); } /** *

The ARN of the destination event data store.

*/ inline GetImportResult& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;} /** *

The ARN of the destination event data store.

*/ inline GetImportResult& WithDestinations(Aws::Vector&& value) { SetDestinations(std::move(value)); return *this;} /** *

The ARN of the destination event data store.

*/ inline GetImportResult& AddDestinations(const Aws::String& value) { m_destinations.push_back(value); return *this; } /** *

The ARN of the destination event data store.

*/ inline GetImportResult& AddDestinations(Aws::String&& value) { m_destinations.push_back(std::move(value)); return *this; } /** *

The ARN of the destination event data store.

*/ inline GetImportResult& AddDestinations(const char* value) { m_destinations.push_back(value); return *this; } /** *

The source S3 bucket.

*/ inline const ImportSource& GetImportSource() const{ return m_importSource; } /** *

The source S3 bucket.

*/ inline void SetImportSource(const ImportSource& value) { m_importSource = value; } /** *

The source S3 bucket.

*/ inline void SetImportSource(ImportSource&& value) { m_importSource = std::move(value); } /** *

The source S3 bucket.

*/ inline GetImportResult& WithImportSource(const ImportSource& value) { SetImportSource(value); return *this;} /** *

The source S3 bucket.

*/ inline GetImportResult& WithImportSource(ImportSource&& value) { SetImportSource(std::move(value)); return *this;} /** *

Used with EndEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline const Aws::Utils::DateTime& GetStartEventTime() const{ return m_startEventTime; } /** *

Used with EndEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline void SetStartEventTime(const Aws::Utils::DateTime& value) { m_startEventTime = value; } /** *

Used with EndEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline void SetStartEventTime(Aws::Utils::DateTime&& value) { m_startEventTime = std::move(value); } /** *

Used with EndEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline GetImportResult& WithStartEventTime(const Aws::Utils::DateTime& value) { SetStartEventTime(value); return *this;} /** *

Used with EndEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline GetImportResult& WithStartEventTime(Aws::Utils::DateTime&& value) { SetStartEventTime(std::move(value)); return *this;} /** *

Used with StartEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline const Aws::Utils::DateTime& GetEndEventTime() const{ return m_endEventTime; } /** *

Used with StartEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline void SetEndEventTime(const Aws::Utils::DateTime& value) { m_endEventTime = value; } /** *

Used with StartEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline void SetEndEventTime(Aws::Utils::DateTime&& value) { m_endEventTime = std::move(value); } /** *

Used with StartEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline GetImportResult& WithEndEventTime(const Aws::Utils::DateTime& value) { SetEndEventTime(value); return *this;} /** *

Used with StartEventTime to bound a StartImport * request, and limit imported trail events to only those events logged within a * specified time period.

*/ inline GetImportResult& WithEndEventTime(Aws::Utils::DateTime&& value) { SetEndEventTime(std::move(value)); return *this;} /** *

The status of the import.

*/ inline const ImportStatus& GetImportStatus() const{ return m_importStatus; } /** *

The status of the import.

*/ inline void SetImportStatus(const ImportStatus& value) { m_importStatus = value; } /** *

The status of the import.

*/ inline void SetImportStatus(ImportStatus&& value) { m_importStatus = std::move(value); } /** *

The status of the import.

*/ inline GetImportResult& WithImportStatus(const ImportStatus& value) { SetImportStatus(value); return *this;} /** *

The status of the import.

*/ inline GetImportResult& WithImportStatus(ImportStatus&& value) { SetImportStatus(std::move(value)); return *this;} /** *

The timestamp of the import's creation.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The timestamp of the import's creation.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } /** *

The timestamp of the import's creation.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } /** *

The timestamp of the import's creation.

*/ inline GetImportResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The timestamp of the import's creation.

*/ inline GetImportResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

The timestamp of when the import was updated.

*/ inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; } /** *

The timestamp of when the import was updated.

*/ inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestamp = value; } /** *

The timestamp of when the import was updated.

*/ inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestamp = std::move(value); } /** *

The timestamp of when the import was updated.

*/ inline GetImportResult& WithUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetUpdatedTimestamp(value); return *this;} /** *

The timestamp of when the import was updated.

*/ inline GetImportResult& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;} /** *

Provides statistics for the import. 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.

*/ inline const ImportStatistics& GetImportStatistics() const{ return m_importStatistics; } /** *

Provides statistics for the import. 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.

*/ inline void SetImportStatistics(const ImportStatistics& value) { m_importStatistics = value; } /** *

Provides statistics for the import. 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.

*/ inline void SetImportStatistics(ImportStatistics&& value) { m_importStatistics = std::move(value); } /** *

Provides statistics for the import. 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.

*/ inline GetImportResult& WithImportStatistics(const ImportStatistics& value) { SetImportStatistics(value); return *this;} /** *

Provides statistics for the import. 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.

*/ inline GetImportResult& WithImportStatistics(ImportStatistics&& value) { SetImportStatistics(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 GetImportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetImportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetImportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_importId; Aws::Vector m_destinations; ImportSource m_importSource; Aws::Utils::DateTime m_startEventTime; Aws::Utils::DateTime m_endEventTime; ImportStatus m_importStatus; Aws::Utils::DateTime m_createdTimestamp; Aws::Utils::DateTime m_updatedTimestamp; ImportStatistics m_importStatistics; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws