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

Provides information about an import failure.

See Also:

AWS * API Reference

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

The location of the failure in the S3 bucket.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

The location of the failure in the S3 bucket.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The location of the failure in the S3 bucket.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The location of the failure in the S3 bucket.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The location of the failure in the S3 bucket.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

The location of the failure in the S3 bucket.

*/ inline ImportFailureListItem& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The location of the failure in the S3 bucket.

*/ inline ImportFailureListItem& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The location of the failure in the S3 bucket.

*/ inline ImportFailureListItem& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

The status of the import.

*/ inline const ImportFailureStatus& GetStatus() const{ return m_status; } /** *

The status of the import.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the import.

*/ inline void SetStatus(const ImportFailureStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the import.

*/ inline void SetStatus(ImportFailureStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the import.

*/ inline ImportFailureListItem& WithStatus(const ImportFailureStatus& value) { SetStatus(value); return *this;} /** *

The status of the import.

*/ inline ImportFailureListItem& WithStatus(ImportFailureStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The type of import error.

*/ inline const Aws::String& GetErrorType() const{ return m_errorType; } /** *

The type of import error.

*/ inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; } /** *

The type of import error.

*/ inline void SetErrorType(const Aws::String& value) { m_errorTypeHasBeenSet = true; m_errorType = value; } /** *

The type of import error.

*/ inline void SetErrorType(Aws::String&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); } /** *

The type of import error.

*/ inline void SetErrorType(const char* value) { m_errorTypeHasBeenSet = true; m_errorType.assign(value); } /** *

The type of import error.

*/ inline ImportFailureListItem& WithErrorType(const Aws::String& value) { SetErrorType(value); return *this;} /** *

The type of import error.

*/ inline ImportFailureListItem& WithErrorType(Aws::String&& value) { SetErrorType(std::move(value)); return *this;} /** *

The type of import error.

*/ inline ImportFailureListItem& WithErrorType(const char* value) { SetErrorType(value); return *this;} /** *

Provides the reason the import failed.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

Provides the reason the import failed.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

Provides the reason the import failed.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

Provides the reason the import failed.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

Provides the reason the import failed.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

Provides the reason the import failed.

*/ inline ImportFailureListItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

Provides the reason the import failed.

*/ inline ImportFailureListItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

Provides the reason the import failed.

*/ inline ImportFailureListItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

When the import was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

When the import was last updated.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

When the import was last updated.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

When the import was last updated.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

When the import was last updated.

*/ inline ImportFailureListItem& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

When the import was last updated.

*/ inline ImportFailureListItem& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} private: Aws::String m_location; bool m_locationHasBeenSet = false; ImportFailureStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_errorType; bool m_errorTypeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws