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

Provides information about when a classification job was paused. For a * one-time job, this object also specifies when the job will expire and be * cancelled if it isn't resumed. For a recurring job, this object also specifies * when the paused job run will expire and be cancelled if it isn't resumed. This * object is present only if a job's current status (jobStatus) is USER_PAUSED. The * information in this object applies only to a job that was paused while it had a * status of RUNNING.

See Also:

AWS * API Reference

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

The date and time, in UTC and extended ISO 8601 format, when the job or job * run will expire and be cancelled if you don't resume it first.

*/ inline const Aws::Utils::DateTime& GetJobExpiresAt() const{ return m_jobExpiresAt; } /** *

The date and time, in UTC and extended ISO 8601 format, when the job or job * run will expire and be cancelled if you don't resume it first.

*/ inline bool JobExpiresAtHasBeenSet() const { return m_jobExpiresAtHasBeenSet; } /** *

The date and time, in UTC and extended ISO 8601 format, when the job or job * run will expire and be cancelled if you don't resume it first.

*/ inline void SetJobExpiresAt(const Aws::Utils::DateTime& value) { m_jobExpiresAtHasBeenSet = true; m_jobExpiresAt = value; } /** *

The date and time, in UTC and extended ISO 8601 format, when the job or job * run will expire and be cancelled if you don't resume it first.

*/ inline void SetJobExpiresAt(Aws::Utils::DateTime&& value) { m_jobExpiresAtHasBeenSet = true; m_jobExpiresAt = std::move(value); } /** *

The date and time, in UTC and extended ISO 8601 format, when the job or job * run will expire and be cancelled if you don't resume it first.

*/ inline UserPausedDetails& WithJobExpiresAt(const Aws::Utils::DateTime& value) { SetJobExpiresAt(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when the job or job * run will expire and be cancelled if you don't resume it first.

*/ inline UserPausedDetails& WithJobExpiresAt(Aws::Utils::DateTime&& value) { SetJobExpiresAt(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Health event that Amazon Macie sent to * notify you of the job or job run's pending expiration and cancellation. This * value is null if a job has been paused for less than 23 days.

*/ inline const Aws::String& GetJobImminentExpirationHealthEventArn() const{ return m_jobImminentExpirationHealthEventArn; } /** *

The Amazon Resource Name (ARN) of the Health event that Amazon Macie sent to * notify you of the job or job run's pending expiration and cancellation. This * value is null if a job has been paused for less than 23 days.

*/ inline bool JobImminentExpirationHealthEventArnHasBeenSet() const { return m_jobImminentExpirationHealthEventArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Health event that Amazon Macie sent to * notify you of the job or job run's pending expiration and cancellation. This * value is null if a job has been paused for less than 23 days.

*/ inline void SetJobImminentExpirationHealthEventArn(const Aws::String& value) { m_jobImminentExpirationHealthEventArnHasBeenSet = true; m_jobImminentExpirationHealthEventArn = value; } /** *

The Amazon Resource Name (ARN) of the Health event that Amazon Macie sent to * notify you of the job or job run's pending expiration and cancellation. This * value is null if a job has been paused for less than 23 days.

*/ inline void SetJobImminentExpirationHealthEventArn(Aws::String&& value) { m_jobImminentExpirationHealthEventArnHasBeenSet = true; m_jobImminentExpirationHealthEventArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Health event that Amazon Macie sent to * notify you of the job or job run's pending expiration and cancellation. This * value is null if a job has been paused for less than 23 days.

*/ inline void SetJobImminentExpirationHealthEventArn(const char* value) { m_jobImminentExpirationHealthEventArnHasBeenSet = true; m_jobImminentExpirationHealthEventArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Health event that Amazon Macie sent to * notify you of the job or job run's pending expiration and cancellation. This * value is null if a job has been paused for less than 23 days.

*/ inline UserPausedDetails& WithJobImminentExpirationHealthEventArn(const Aws::String& value) { SetJobImminentExpirationHealthEventArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Health event that Amazon Macie sent to * notify you of the job or job run's pending expiration and cancellation. This * value is null if a job has been paused for less than 23 days.

*/ inline UserPausedDetails& WithJobImminentExpirationHealthEventArn(Aws::String&& value) { SetJobImminentExpirationHealthEventArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Health event that Amazon Macie sent to * notify you of the job or job run's pending expiration and cancellation. This * value is null if a job has been paused for less than 23 days.

*/ inline UserPausedDetails& WithJobImminentExpirationHealthEventArn(const char* value) { SetJobImminentExpirationHealthEventArn(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when you paused the * job.

*/ inline const Aws::Utils::DateTime& GetJobPausedAt() const{ return m_jobPausedAt; } /** *

The date and time, in UTC and extended ISO 8601 format, when you paused the * job.

*/ inline bool JobPausedAtHasBeenSet() const { return m_jobPausedAtHasBeenSet; } /** *

The date and time, in UTC and extended ISO 8601 format, when you paused the * job.

*/ inline void SetJobPausedAt(const Aws::Utils::DateTime& value) { m_jobPausedAtHasBeenSet = true; m_jobPausedAt = value; } /** *

The date and time, in UTC and extended ISO 8601 format, when you paused the * job.

*/ inline void SetJobPausedAt(Aws::Utils::DateTime&& value) { m_jobPausedAtHasBeenSet = true; m_jobPausedAt = std::move(value); } /** *

The date and time, in UTC and extended ISO 8601 format, when you paused the * job.

*/ inline UserPausedDetails& WithJobPausedAt(const Aws::Utils::DateTime& value) { SetJobPausedAt(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when you paused the * job.

*/ inline UserPausedDetails& WithJobPausedAt(Aws::Utils::DateTime&& value) { SetJobPausedAt(std::move(value)); return *this;} private: Aws::Utils::DateTime m_jobExpiresAt; bool m_jobExpiresAtHasBeenSet = false; Aws::String m_jobImminentExpirationHealthEventArn; bool m_jobImminentExpirationHealthEventArnHasBeenSet = false; Aws::Utils::DateTime m_jobPausedAt; bool m_jobPausedAtHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws