/** * 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 SecurityLake { namespace Model { /** *

The details for an Amazon Security Lake exception.

See Also:

* AWS * API Reference

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

The underlying exception of a Security Lake exception.

*/ inline const Aws::String& GetException() const{ return m_exception; } /** *

The underlying exception of a Security Lake exception.

*/ inline bool ExceptionHasBeenSet() const { return m_exceptionHasBeenSet; } /** *

The underlying exception of a Security Lake exception.

*/ inline void SetException(const Aws::String& value) { m_exceptionHasBeenSet = true; m_exception = value; } /** *

The underlying exception of a Security Lake exception.

*/ inline void SetException(Aws::String&& value) { m_exceptionHasBeenSet = true; m_exception = std::move(value); } /** *

The underlying exception of a Security Lake exception.

*/ inline void SetException(const char* value) { m_exceptionHasBeenSet = true; m_exception.assign(value); } /** *

The underlying exception of a Security Lake exception.

*/ inline DataLakeException& WithException(const Aws::String& value) { SetException(value); return *this;} /** *

The underlying exception of a Security Lake exception.

*/ inline DataLakeException& WithException(Aws::String&& value) { SetException(std::move(value)); return *this;} /** *

The underlying exception of a Security Lake exception.

*/ inline DataLakeException& WithException(const char* value) { SetException(value); return *this;} /** *

The Amazon Web Services Regions where the exception occurred.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The Amazon Web Services Regions where the exception occurred.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The Amazon Web Services Regions where the exception occurred.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The Amazon Web Services Regions where the exception occurred.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The Amazon Web Services Regions where the exception occurred.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The Amazon Web Services Regions where the exception occurred.

*/ inline DataLakeException& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The Amazon Web Services Regions where the exception occurred.

*/ inline DataLakeException& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Regions where the exception occurred.

*/ inline DataLakeException& WithRegion(const char* value) { SetRegion(value); return *this;} /** *

List of all remediation steps for a Security Lake exception.

*/ inline const Aws::String& GetRemediation() const{ return m_remediation; } /** *

List of all remediation steps for a Security Lake exception.

*/ inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; } /** *

List of all remediation steps for a Security Lake exception.

*/ inline void SetRemediation(const Aws::String& value) { m_remediationHasBeenSet = true; m_remediation = value; } /** *

List of all remediation steps for a Security Lake exception.

*/ inline void SetRemediation(Aws::String&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); } /** *

List of all remediation steps for a Security Lake exception.

*/ inline void SetRemediation(const char* value) { m_remediationHasBeenSet = true; m_remediation.assign(value); } /** *

List of all remediation steps for a Security Lake exception.

*/ inline DataLakeException& WithRemediation(const Aws::String& value) { SetRemediation(value); return *this;} /** *

List of all remediation steps for a Security Lake exception.

*/ inline DataLakeException& WithRemediation(Aws::String&& value) { SetRemediation(std::move(value)); return *this;} /** *

List of all remediation steps for a Security Lake exception.

*/ inline DataLakeException& WithRemediation(const char* value) { SetRemediation(value); return *this;} /** *

This error can occur if you configure the wrong timestamp format, or if the * subset of entries used for validation had errors or missing values.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

This error can occur if you configure the wrong timestamp format, or if the * subset of entries used for validation had errors or missing values.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

This error can occur if you configure the wrong timestamp format, or if the * subset of entries used for validation had errors or missing values.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

This error can occur if you configure the wrong timestamp format, or if the * subset of entries used for validation had errors or missing values.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

This error can occur if you configure the wrong timestamp format, or if the * subset of entries used for validation had errors or missing values.

*/ inline DataLakeException& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

This error can occur if you configure the wrong timestamp format, or if the * subset of entries used for validation had errors or missing values.

*/ inline DataLakeException& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} private: Aws::String m_exception; bool m_exceptionHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_remediation; bool m_remediationHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; }; } // namespace Model } // namespace SecurityLake } // namespace Aws