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

Specifies whether any account- or bucket-level access errors occurred when a * classification job ran. For information about using logging data to investigate * these errors, see Monitoring * sensitive data discovery jobs in the Amazon Macie User * Guide.

See Also:

AWS * API Reference

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

Specifies whether any account- or bucket-level access errors occurred when * the job ran. For a recurring job, this value indicates the error status of the * job's most recent run. Possible values are:

  • ERROR - One or more * errors occurred. Amazon Macie didn't process all the data specified for the * job.

  • NONE - No errors occurred. Macie processed all the data * specified for the job.

*/ inline const LastRunErrorStatusCode& GetCode() const{ return m_code; } /** *

Specifies whether any account- or bucket-level access errors occurred when * the job ran. For a recurring job, this value indicates the error status of the * job's most recent run. Possible values are:

  • ERROR - One or more * errors occurred. Amazon Macie didn't process all the data specified for the * job.

  • NONE - No errors occurred. Macie processed all the data * specified for the job.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

Specifies whether any account- or bucket-level access errors occurred when * the job ran. For a recurring job, this value indicates the error status of the * job's most recent run. Possible values are:

  • ERROR - One or more * errors occurred. Amazon Macie didn't process all the data specified for the * job.

  • NONE - No errors occurred. Macie processed all the data * specified for the job.

*/ inline void SetCode(const LastRunErrorStatusCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

Specifies whether any account- or bucket-level access errors occurred when * the job ran. For a recurring job, this value indicates the error status of the * job's most recent run. Possible values are:

  • ERROR - One or more * errors occurred. Amazon Macie didn't process all the data specified for the * job.

  • NONE - No errors occurred. Macie processed all the data * specified for the job.

*/ inline void SetCode(LastRunErrorStatusCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

Specifies whether any account- or bucket-level access errors occurred when * the job ran. For a recurring job, this value indicates the error status of the * job's most recent run. Possible values are:

  • ERROR - One or more * errors occurred. Amazon Macie didn't process all the data specified for the * job.

  • NONE - No errors occurred. Macie processed all the data * specified for the job.

*/ inline LastRunErrorStatus& WithCode(const LastRunErrorStatusCode& value) { SetCode(value); return *this;} /** *

Specifies whether any account- or bucket-level access errors occurred when * the job ran. For a recurring job, this value indicates the error status of the * job's most recent run. Possible values are:

  • ERROR - One or more * errors occurred. Amazon Macie didn't process all the data specified for the * job.

  • NONE - No errors occurred. Macie processed all the data * specified for the job.

*/ inline LastRunErrorStatus& WithCode(LastRunErrorStatusCode&& value) { SetCode(std::move(value)); return *this;} private: LastRunErrorStatusCode m_code; bool m_codeHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws