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

Specifies whether any one-time or recurring classification jobs are * configured to analyze data in an S3 bucket, and, if so, the details of the job * that ran most recently.

See Also:

AWS * API Reference

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

Specifies whether any one-time or recurring jobs are configured to analyze * data in the bucket. Possible values are:

  • TRUE - The bucket is * explicitly included in the bucket definition (S3BucketDefinitionForJob) for one * or more jobs and at least one of those jobs has a status other than CANCELLED. * Or the bucket matched the bucket criteria (S3BucketCriteriaForJob) for at least * one job that previously ran.

  • FALSE - The bucket isn't explicitly * included in the bucket definition (S3BucketDefinitionForJob) for any jobs, all * the jobs that explicitly include the bucket in their bucket definitions have a * status of CANCELLED, or the bucket didn't match the bucket criteria * (S3BucketCriteriaForJob) for any jobs that previously ran.

  • *
  • UNKNOWN - An exception occurred when Amazon Macie attempted to retrieve * job data for the bucket.

*/ inline const IsDefinedInJob& GetIsDefinedInJob() const{ return m_isDefinedInJob; } /** *

Specifies whether any one-time or recurring jobs are configured to analyze * data in the bucket. Possible values are:

  • TRUE - The bucket is * explicitly included in the bucket definition (S3BucketDefinitionForJob) for one * or more jobs and at least one of those jobs has a status other than CANCELLED. * Or the bucket matched the bucket criteria (S3BucketCriteriaForJob) for at least * one job that previously ran.

  • FALSE - The bucket isn't explicitly * included in the bucket definition (S3BucketDefinitionForJob) for any jobs, all * the jobs that explicitly include the bucket in their bucket definitions have a * status of CANCELLED, or the bucket didn't match the bucket criteria * (S3BucketCriteriaForJob) for any jobs that previously ran.

  • *
  • UNKNOWN - An exception occurred when Amazon Macie attempted to retrieve * job data for the bucket.

*/ inline bool IsDefinedInJobHasBeenSet() const { return m_isDefinedInJobHasBeenSet; } /** *

Specifies whether any one-time or recurring jobs are configured to analyze * data in the bucket. Possible values are:

  • TRUE - The bucket is * explicitly included in the bucket definition (S3BucketDefinitionForJob) for one * or more jobs and at least one of those jobs has a status other than CANCELLED. * Or the bucket matched the bucket criteria (S3BucketCriteriaForJob) for at least * one job that previously ran.

  • FALSE - The bucket isn't explicitly * included in the bucket definition (S3BucketDefinitionForJob) for any jobs, all * the jobs that explicitly include the bucket in their bucket definitions have a * status of CANCELLED, or the bucket didn't match the bucket criteria * (S3BucketCriteriaForJob) for any jobs that previously ran.

  • *
  • UNKNOWN - An exception occurred when Amazon Macie attempted to retrieve * job data for the bucket.

*/ inline void SetIsDefinedInJob(const IsDefinedInJob& value) { m_isDefinedInJobHasBeenSet = true; m_isDefinedInJob = value; } /** *

Specifies whether any one-time or recurring jobs are configured to analyze * data in the bucket. Possible values are:

  • TRUE - The bucket is * explicitly included in the bucket definition (S3BucketDefinitionForJob) for one * or more jobs and at least one of those jobs has a status other than CANCELLED. * Or the bucket matched the bucket criteria (S3BucketCriteriaForJob) for at least * one job that previously ran.

  • FALSE - The bucket isn't explicitly * included in the bucket definition (S3BucketDefinitionForJob) for any jobs, all * the jobs that explicitly include the bucket in their bucket definitions have a * status of CANCELLED, or the bucket didn't match the bucket criteria * (S3BucketCriteriaForJob) for any jobs that previously ran.

  • *
  • UNKNOWN - An exception occurred when Amazon Macie attempted to retrieve * job data for the bucket.

*/ inline void SetIsDefinedInJob(IsDefinedInJob&& value) { m_isDefinedInJobHasBeenSet = true; m_isDefinedInJob = std::move(value); } /** *

Specifies whether any one-time or recurring jobs are configured to analyze * data in the bucket. Possible values are:

  • TRUE - The bucket is * explicitly included in the bucket definition (S3BucketDefinitionForJob) for one * or more jobs and at least one of those jobs has a status other than CANCELLED. * Or the bucket matched the bucket criteria (S3BucketCriteriaForJob) for at least * one job that previously ran.

  • FALSE - The bucket isn't explicitly * included in the bucket definition (S3BucketDefinitionForJob) for any jobs, all * the jobs that explicitly include the bucket in their bucket definitions have a * status of CANCELLED, or the bucket didn't match the bucket criteria * (S3BucketCriteriaForJob) for any jobs that previously ran.

  • *
  • UNKNOWN - An exception occurred when Amazon Macie attempted to retrieve * job data for the bucket.

*/ inline JobDetails& WithIsDefinedInJob(const IsDefinedInJob& value) { SetIsDefinedInJob(value); return *this;} /** *

Specifies whether any one-time or recurring jobs are configured to analyze * data in the bucket. Possible values are:

  • TRUE - The bucket is * explicitly included in the bucket definition (S3BucketDefinitionForJob) for one * or more jobs and at least one of those jobs has a status other than CANCELLED. * Or the bucket matched the bucket criteria (S3BucketCriteriaForJob) for at least * one job that previously ran.

  • FALSE - The bucket isn't explicitly * included in the bucket definition (S3BucketDefinitionForJob) for any jobs, all * the jobs that explicitly include the bucket in their bucket definitions have a * status of CANCELLED, or the bucket didn't match the bucket criteria * (S3BucketCriteriaForJob) for any jobs that previously ran.

  • *
  • UNKNOWN - An exception occurred when Amazon Macie attempted to retrieve * job data for the bucket.

*/ inline JobDetails& WithIsDefinedInJob(IsDefinedInJob&& value) { SetIsDefinedInJob(std::move(value)); return *this;} /** *

Specifies whether any recurring jobs are configured to analyze data in the * bucket. Possible values are:

  • TRUE - The bucket is explicitly * included in the bucket definition (S3BucketDefinitionForJob) for one or more * recurring jobs or the bucket matches the bucket criteria * (S3BucketCriteriaForJob) for one or more recurring jobs. At least one of those * jobs has a status other than CANCELLED.

  • FALSE - The bucket isn't * explicitly included in the bucket definition (S3BucketDefinitionForJob) for any * recurring jobs, the bucket doesn't match the bucket criteria * (S3BucketCriteriaForJob) for any recurring jobs, or all the recurring jobs that * are configured to analyze data in the bucket have a status of * CANCELLED.

  • UNKNOWN - An exception occurred when Amazon Macie * attempted to retrieve job data for the bucket.

*/ inline const IsMonitoredByJob& GetIsMonitoredByJob() const{ return m_isMonitoredByJob; } /** *

Specifies whether any recurring jobs are configured to analyze data in the * bucket. Possible values are:

  • TRUE - The bucket is explicitly * included in the bucket definition (S3BucketDefinitionForJob) for one or more * recurring jobs or the bucket matches the bucket criteria * (S3BucketCriteriaForJob) for one or more recurring jobs. At least one of those * jobs has a status other than CANCELLED.

  • FALSE - The bucket isn't * explicitly included in the bucket definition (S3BucketDefinitionForJob) for any * recurring jobs, the bucket doesn't match the bucket criteria * (S3BucketCriteriaForJob) for any recurring jobs, or all the recurring jobs that * are configured to analyze data in the bucket have a status of * CANCELLED.

  • UNKNOWN - An exception occurred when Amazon Macie * attempted to retrieve job data for the bucket.

*/ inline bool IsMonitoredByJobHasBeenSet() const { return m_isMonitoredByJobHasBeenSet; } /** *

Specifies whether any recurring jobs are configured to analyze data in the * bucket. Possible values are:

  • TRUE - The bucket is explicitly * included in the bucket definition (S3BucketDefinitionForJob) for one or more * recurring jobs or the bucket matches the bucket criteria * (S3BucketCriteriaForJob) for one or more recurring jobs. At least one of those * jobs has a status other than CANCELLED.

  • FALSE - The bucket isn't * explicitly included in the bucket definition (S3BucketDefinitionForJob) for any * recurring jobs, the bucket doesn't match the bucket criteria * (S3BucketCriteriaForJob) for any recurring jobs, or all the recurring jobs that * are configured to analyze data in the bucket have a status of * CANCELLED.

  • UNKNOWN - An exception occurred when Amazon Macie * attempted to retrieve job data for the bucket.

*/ inline void SetIsMonitoredByJob(const IsMonitoredByJob& value) { m_isMonitoredByJobHasBeenSet = true; m_isMonitoredByJob = value; } /** *

Specifies whether any recurring jobs are configured to analyze data in the * bucket. Possible values are:

  • TRUE - The bucket is explicitly * included in the bucket definition (S3BucketDefinitionForJob) for one or more * recurring jobs or the bucket matches the bucket criteria * (S3BucketCriteriaForJob) for one or more recurring jobs. At least one of those * jobs has a status other than CANCELLED.

  • FALSE - The bucket isn't * explicitly included in the bucket definition (S3BucketDefinitionForJob) for any * recurring jobs, the bucket doesn't match the bucket criteria * (S3BucketCriteriaForJob) for any recurring jobs, or all the recurring jobs that * are configured to analyze data in the bucket have a status of * CANCELLED.

  • UNKNOWN - An exception occurred when Amazon Macie * attempted to retrieve job data for the bucket.

*/ inline void SetIsMonitoredByJob(IsMonitoredByJob&& value) { m_isMonitoredByJobHasBeenSet = true; m_isMonitoredByJob = std::move(value); } /** *

Specifies whether any recurring jobs are configured to analyze data in the * bucket. Possible values are:

  • TRUE - The bucket is explicitly * included in the bucket definition (S3BucketDefinitionForJob) for one or more * recurring jobs or the bucket matches the bucket criteria * (S3BucketCriteriaForJob) for one or more recurring jobs. At least one of those * jobs has a status other than CANCELLED.

  • FALSE - The bucket isn't * explicitly included in the bucket definition (S3BucketDefinitionForJob) for any * recurring jobs, the bucket doesn't match the bucket criteria * (S3BucketCriteriaForJob) for any recurring jobs, or all the recurring jobs that * are configured to analyze data in the bucket have a status of * CANCELLED.

  • UNKNOWN - An exception occurred when Amazon Macie * attempted to retrieve job data for the bucket.

*/ inline JobDetails& WithIsMonitoredByJob(const IsMonitoredByJob& value) { SetIsMonitoredByJob(value); return *this;} /** *

Specifies whether any recurring jobs are configured to analyze data in the * bucket. Possible values are:

  • TRUE - The bucket is explicitly * included in the bucket definition (S3BucketDefinitionForJob) for one or more * recurring jobs or the bucket matches the bucket criteria * (S3BucketCriteriaForJob) for one or more recurring jobs. At least one of those * jobs has a status other than CANCELLED.

  • FALSE - The bucket isn't * explicitly included in the bucket definition (S3BucketDefinitionForJob) for any * recurring jobs, the bucket doesn't match the bucket criteria * (S3BucketCriteriaForJob) for any recurring jobs, or all the recurring jobs that * are configured to analyze data in the bucket have a status of * CANCELLED.

  • UNKNOWN - An exception occurred when Amazon Macie * attempted to retrieve job data for the bucket.

*/ inline JobDetails& WithIsMonitoredByJob(IsMonitoredByJob&& value) { SetIsMonitoredByJob(std::move(value)); return *this;} /** *

The unique identifier for the job that ran most recently and is configured to * analyze data in the bucket, either the latest run of a recurring job or the only * run of a one-time job.

This value is typically null if the value for the * isDefinedInJob property is FALSE or UNKNOWN.

*/ inline const Aws::String& GetLastJobId() const{ return m_lastJobId; } /** *

The unique identifier for the job that ran most recently and is configured to * analyze data in the bucket, either the latest run of a recurring job or the only * run of a one-time job.

This value is typically null if the value for the * isDefinedInJob property is FALSE or UNKNOWN.

*/ inline bool LastJobIdHasBeenSet() const { return m_lastJobIdHasBeenSet; } /** *

The unique identifier for the job that ran most recently and is configured to * analyze data in the bucket, either the latest run of a recurring job or the only * run of a one-time job.

This value is typically null if the value for the * isDefinedInJob property is FALSE or UNKNOWN.

*/ inline void SetLastJobId(const Aws::String& value) { m_lastJobIdHasBeenSet = true; m_lastJobId = value; } /** *

The unique identifier for the job that ran most recently and is configured to * analyze data in the bucket, either the latest run of a recurring job or the only * run of a one-time job.

This value is typically null if the value for the * isDefinedInJob property is FALSE or UNKNOWN.

*/ inline void SetLastJobId(Aws::String&& value) { m_lastJobIdHasBeenSet = true; m_lastJobId = std::move(value); } /** *

The unique identifier for the job that ran most recently and is configured to * analyze data in the bucket, either the latest run of a recurring job or the only * run of a one-time job.

This value is typically null if the value for the * isDefinedInJob property is FALSE or UNKNOWN.

*/ inline void SetLastJobId(const char* value) { m_lastJobIdHasBeenSet = true; m_lastJobId.assign(value); } /** *

The unique identifier for the job that ran most recently and is configured to * analyze data in the bucket, either the latest run of a recurring job or the only * run of a one-time job.

This value is typically null if the value for the * isDefinedInJob property is FALSE or UNKNOWN.

*/ inline JobDetails& WithLastJobId(const Aws::String& value) { SetLastJobId(value); return *this;} /** *

The unique identifier for the job that ran most recently and is configured to * analyze data in the bucket, either the latest run of a recurring job or the only * run of a one-time job.

This value is typically null if the value for the * isDefinedInJob property is FALSE or UNKNOWN.

*/ inline JobDetails& WithLastJobId(Aws::String&& value) { SetLastJobId(std::move(value)); return *this;} /** *

The unique identifier for the job that ran most recently and is configured to * analyze data in the bucket, either the latest run of a recurring job or the only * run of a one-time job.

This value is typically null if the value for the * isDefinedInJob property is FALSE or UNKNOWN.

*/ inline JobDetails& WithLastJobId(const char* value) { SetLastJobId(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when the job * (lastJobId) started. If the job is a recurring job, this value indicates when * the most recent run started.

This value is typically null if the value * for the isDefinedInJob property is FALSE or UNKNOWN.

*/ inline const Aws::Utils::DateTime& GetLastJobRunTime() const{ return m_lastJobRunTime; } /** *

The date and time, in UTC and extended ISO 8601 format, when the job * (lastJobId) started. If the job is a recurring job, this value indicates when * the most recent run started.

This value is typically null if the value * for the isDefinedInJob property is FALSE or UNKNOWN.

*/ inline bool LastJobRunTimeHasBeenSet() const { return m_lastJobRunTimeHasBeenSet; } /** *

The date and time, in UTC and extended ISO 8601 format, when the job * (lastJobId) started. If the job is a recurring job, this value indicates when * the most recent run started.

This value is typically null if the value * for the isDefinedInJob property is FALSE or UNKNOWN.

*/ inline void SetLastJobRunTime(const Aws::Utils::DateTime& value) { m_lastJobRunTimeHasBeenSet = true; m_lastJobRunTime = value; } /** *

The date and time, in UTC and extended ISO 8601 format, when the job * (lastJobId) started. If the job is a recurring job, this value indicates when * the most recent run started.

This value is typically null if the value * for the isDefinedInJob property is FALSE or UNKNOWN.

*/ inline void SetLastJobRunTime(Aws::Utils::DateTime&& value) { m_lastJobRunTimeHasBeenSet = true; m_lastJobRunTime = std::move(value); } /** *

The date and time, in UTC and extended ISO 8601 format, when the job * (lastJobId) started. If the job is a recurring job, this value indicates when * the most recent run started.

This value is typically null if the value * for the isDefinedInJob property is FALSE or UNKNOWN.

*/ inline JobDetails& WithLastJobRunTime(const Aws::Utils::DateTime& value) { SetLastJobRunTime(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when the job * (lastJobId) started. If the job is a recurring job, this value indicates when * the most recent run started.

This value is typically null if the value * for the isDefinedInJob property is FALSE or UNKNOWN.

*/ inline JobDetails& WithLastJobRunTime(Aws::Utils::DateTime&& value) { SetLastJobRunTime(std::move(value)); return *this;} private: IsDefinedInJob m_isDefinedInJob; bool m_isDefinedInJobHasBeenSet = false; IsMonitoredByJob m_isMonitoredByJob; bool m_isMonitoredByJobHasBeenSet = false; Aws::String m_lastJobId; bool m_lastJobIdHasBeenSet = false; Aws::Utils::DateTime m_lastJobRunTime; bool m_lastJobRunTimeHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws