/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { class StartImportResult { public: AWS_CLOUDTRAIL_API StartImportResult(); AWS_CLOUDTRAIL_API StartImportResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API StartImportResult& 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 StartImportResult& WithImportId(const Aws::String& value) { SetImportId(value); return *this;} /** *

The ID of the import.

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

The ID of the import.

*/ inline StartImportResult& 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 StartImportResult& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;} /** *

The ARN of the destination event data store.

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

The ARN of the destination event data store.

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

The ARN of the destination event data store.

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

The ARN of the destination event data store.

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

The source S3 bucket for the import.

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

The source S3 bucket for the import.

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

The source S3 bucket for the import.

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

The source S3 bucket for the import.

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

The source S3 bucket for the import.

*/ inline StartImportResult& 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 StartImportResult& 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 StartImportResult& 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 StartImportResult& 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 StartImportResult& WithEndEventTime(Aws::Utils::DateTime&& value) { SetEndEventTime(std::move(value)); return *this;} /** *

Shows the status of the import after a StartImport request. An * import finishes with a status of COMPLETED if there were no * failures, or FAILED if there were failures.

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

Shows the status of the import after a StartImport request. An * import finishes with a status of COMPLETED if there were no * failures, or FAILED if there were failures.

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

Shows the status of the import after a StartImport request. An * import finishes with a status of COMPLETED if there were no * failures, or FAILED if there were failures.

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

Shows the status of the import after a StartImport request. An * import finishes with a status of COMPLETED if there were no * failures, or FAILED if there were failures.

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

Shows the status of the import after a StartImport request. An * import finishes with a status of COMPLETED if there were no * failures, or FAILED if there were failures.

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

The timestamp for the import's creation.

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

The timestamp for the import's creation.

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

The timestamp for the import's creation.

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

The timestamp for the import's creation.

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

The timestamp for the import's creation.

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

The timestamp of the import's last update, if applicable.

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

The timestamp of the import's last update, if applicable.

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

The timestamp of the import's last update, if applicable.

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

The timestamp of the import's last update, if applicable.

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

The timestamp of the import's last update, if applicable.

*/ inline StartImportResult& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(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 StartImportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StartImportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StartImportResult& 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; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws