/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace GlueDataBrew { namespace Model { class DescribeJobRunResult { public: AWS_GLUEDATABREW_API DescribeJobRunResult(); AWS_GLUEDATABREW_API DescribeJobRunResult(const Aws::AmazonWebServiceResult& result); AWS_GLUEDATABREW_API DescribeJobRunResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The number of times that DataBrew has attempted to run the job.

*/ inline int GetAttempt() const{ return m_attempt; } /** *

The number of times that DataBrew has attempted to run the job.

*/ inline void SetAttempt(int value) { m_attempt = value; } /** *

The number of times that DataBrew has attempted to run the job.

*/ inline DescribeJobRunResult& WithAttempt(int value) { SetAttempt(value); return *this;} /** *

The date and time when the job completed processing.

*/ inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; } /** *

The date and time when the job completed processing.

*/ inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOn = value; } /** *

The date and time when the job completed processing.

*/ inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOn = std::move(value); } /** *

The date and time when the job completed processing.

*/ inline DescribeJobRunResult& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;} /** *

The date and time when the job completed processing.

*/ inline DescribeJobRunResult& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;} /** *

The name of the dataset for the job to process.

*/ inline const Aws::String& GetDatasetName() const{ return m_datasetName; } /** *

The name of the dataset for the job to process.

*/ inline void SetDatasetName(const Aws::String& value) { m_datasetName = value; } /** *

The name of the dataset for the job to process.

*/ inline void SetDatasetName(Aws::String&& value) { m_datasetName = std::move(value); } /** *

The name of the dataset for the job to process.

*/ inline void SetDatasetName(const char* value) { m_datasetName.assign(value); } /** *

The name of the dataset for the job to process.

*/ inline DescribeJobRunResult& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;} /** *

The name of the dataset for the job to process.

*/ inline DescribeJobRunResult& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;} /** *

The name of the dataset for the job to process.

*/ inline DescribeJobRunResult& WithDatasetName(const char* value) { SetDatasetName(value); return *this;} /** *

A message indicating an error (if any) that was encountered when the job * ran.

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

A message indicating an error (if any) that was encountered when the job * ran.

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

A message indicating an error (if any) that was encountered when the job * ran.

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

A message indicating an error (if any) that was encountered when the job * ran.

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

A message indicating an error (if any) that was encountered when the job * ran.

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

A message indicating an error (if any) that was encountered when the job * ran.

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

A message indicating an error (if any) that was encountered when the job * ran.

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

The amount of time, in seconds, during which the job run consumed * resources.

*/ inline int GetExecutionTime() const{ return m_executionTime; } /** *

The amount of time, in seconds, during which the job run consumed * resources.

*/ inline void SetExecutionTime(int value) { m_executionTime = value; } /** *

The amount of time, in seconds, during which the job run consumed * resources.

*/ inline DescribeJobRunResult& WithExecutionTime(int value) { SetExecutionTime(value); return *this;} /** *

The name of the job being processed during this run.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The name of the job being processed during this run.

*/ inline void SetJobName(const Aws::String& value) { m_jobName = value; } /** *

The name of the job being processed during this run.

*/ inline void SetJobName(Aws::String&& value) { m_jobName = std::move(value); } /** *

The name of the job being processed during this run.

*/ inline void SetJobName(const char* value) { m_jobName.assign(value); } /** *

The name of the job being processed during this run.

*/ inline DescribeJobRunResult& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The name of the job being processed during this run.

*/ inline DescribeJobRunResult& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

The name of the job being processed during this run.

*/ inline DescribeJobRunResult& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

Configuration for profile jobs. Used to select columns, do evaluations, and * override default parameters of evaluations. When configuration is null, the * profile job will run with default settings.

*/ inline const ProfileConfiguration& GetProfileConfiguration() const{ return m_profileConfiguration; } /** *

Configuration for profile jobs. Used to select columns, do evaluations, and * override default parameters of evaluations. When configuration is null, the * profile job will run with default settings.

*/ inline void SetProfileConfiguration(const ProfileConfiguration& value) { m_profileConfiguration = value; } /** *

Configuration for profile jobs. Used to select columns, do evaluations, and * override default parameters of evaluations. When configuration is null, the * profile job will run with default settings.

*/ inline void SetProfileConfiguration(ProfileConfiguration&& value) { m_profileConfiguration = std::move(value); } /** *

Configuration for profile jobs. Used to select columns, do evaluations, and * override default parameters of evaluations. When configuration is null, the * profile job will run with default settings.

*/ inline DescribeJobRunResult& WithProfileConfiguration(const ProfileConfiguration& value) { SetProfileConfiguration(value); return *this;} /** *

Configuration for profile jobs. Used to select columns, do evaluations, and * override default parameters of evaluations. When configuration is null, the * profile job will run with default settings.

*/ inline DescribeJobRunResult& WithProfileConfiguration(ProfileConfiguration&& value) { SetProfileConfiguration(std::move(value)); return *this;} /** *

List of validation configurations that are applied to the profile job.

*/ inline const Aws::Vector& GetValidationConfigurations() const{ return m_validationConfigurations; } /** *

List of validation configurations that are applied to the profile job.

*/ inline void SetValidationConfigurations(const Aws::Vector& value) { m_validationConfigurations = value; } /** *

List of validation configurations that are applied to the profile job.

*/ inline void SetValidationConfigurations(Aws::Vector&& value) { m_validationConfigurations = std::move(value); } /** *

List of validation configurations that are applied to the profile job.

*/ inline DescribeJobRunResult& WithValidationConfigurations(const Aws::Vector& value) { SetValidationConfigurations(value); return *this;} /** *

List of validation configurations that are applied to the profile job.

*/ inline DescribeJobRunResult& WithValidationConfigurations(Aws::Vector&& value) { SetValidationConfigurations(std::move(value)); return *this;} /** *

List of validation configurations that are applied to the profile job.

*/ inline DescribeJobRunResult& AddValidationConfigurations(const ValidationConfiguration& value) { m_validationConfigurations.push_back(value); return *this; } /** *

List of validation configurations that are applied to the profile job.

*/ inline DescribeJobRunResult& AddValidationConfigurations(ValidationConfiguration&& value) { m_validationConfigurations.push_back(std::move(value)); return *this; } /** *

The unique identifier of the job run.

*/ inline const Aws::String& GetRunId() const{ return m_runId; } /** *

The unique identifier of the job run.

*/ inline void SetRunId(const Aws::String& value) { m_runId = value; } /** *

The unique identifier of the job run.

*/ inline void SetRunId(Aws::String&& value) { m_runId = std::move(value); } /** *

The unique identifier of the job run.

*/ inline void SetRunId(const char* value) { m_runId.assign(value); } /** *

The unique identifier of the job run.

*/ inline DescribeJobRunResult& WithRunId(const Aws::String& value) { SetRunId(value); return *this;} /** *

The unique identifier of the job run.

*/ inline DescribeJobRunResult& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;} /** *

The unique identifier of the job run.

*/ inline DescribeJobRunResult& WithRunId(const char* value) { SetRunId(value); return *this;} /** *

The current state of the job run entity itself.

*/ inline const JobRunState& GetState() const{ return m_state; } /** *

The current state of the job run entity itself.

*/ inline void SetState(const JobRunState& value) { m_state = value; } /** *

The current state of the job run entity itself.

*/ inline void SetState(JobRunState&& value) { m_state = std::move(value); } /** *

The current state of the job run entity itself.

*/ inline DescribeJobRunResult& WithState(const JobRunState& value) { SetState(value); return *this;} /** *

The current state of the job run entity itself.

*/ inline DescribeJobRunResult& WithState(JobRunState&& value) { SetState(std::move(value)); return *this;} /** *

The current status of Amazon CloudWatch logging for the job run.

*/ inline const LogSubscription& GetLogSubscription() const{ return m_logSubscription; } /** *

The current status of Amazon CloudWatch logging for the job run.

*/ inline void SetLogSubscription(const LogSubscription& value) { m_logSubscription = value; } /** *

The current status of Amazon CloudWatch logging for the job run.

*/ inline void SetLogSubscription(LogSubscription&& value) { m_logSubscription = std::move(value); } /** *

The current status of Amazon CloudWatch logging for the job run.

*/ inline DescribeJobRunResult& WithLogSubscription(const LogSubscription& value) { SetLogSubscription(value); return *this;} /** *

The current status of Amazon CloudWatch logging for the job run.

*/ inline DescribeJobRunResult& WithLogSubscription(LogSubscription&& value) { SetLogSubscription(std::move(value)); return *this;} /** *

The name of an Amazon CloudWatch log group, where the job writes diagnostic * messages when it runs.

*/ inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; } /** *

The name of an Amazon CloudWatch log group, where the job writes diagnostic * messages when it runs.

*/ inline void SetLogGroupName(const Aws::String& value) { m_logGroupName = value; } /** *

The name of an Amazon CloudWatch log group, where the job writes diagnostic * messages when it runs.

*/ inline void SetLogGroupName(Aws::String&& value) { m_logGroupName = std::move(value); } /** *

The name of an Amazon CloudWatch log group, where the job writes diagnostic * messages when it runs.

*/ inline void SetLogGroupName(const char* value) { m_logGroupName.assign(value); } /** *

The name of an Amazon CloudWatch log group, where the job writes diagnostic * messages when it runs.

*/ inline DescribeJobRunResult& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;} /** *

The name of an Amazon CloudWatch log group, where the job writes diagnostic * messages when it runs.

*/ inline DescribeJobRunResult& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;} /** *

The name of an Amazon CloudWatch log group, where the job writes diagnostic * messages when it runs.

*/ inline DescribeJobRunResult& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} /** *

One or more output artifacts from a job run.

*/ inline const Aws::Vector& GetOutputs() const{ return m_outputs; } /** *

One or more output artifacts from a job run.

*/ inline void SetOutputs(const Aws::Vector& value) { m_outputs = value; } /** *

One or more output artifacts from a job run.

*/ inline void SetOutputs(Aws::Vector&& value) { m_outputs = std::move(value); } /** *

One or more output artifacts from a job run.

*/ inline DescribeJobRunResult& WithOutputs(const Aws::Vector& value) { SetOutputs(value); return *this;} /** *

One or more output artifacts from a job run.

*/ inline DescribeJobRunResult& WithOutputs(Aws::Vector&& value) { SetOutputs(std::move(value)); return *this;} /** *

One or more output artifacts from a job run.

*/ inline DescribeJobRunResult& AddOutputs(const Output& value) { m_outputs.push_back(value); return *this; } /** *

One or more output artifacts from a job run.

*/ inline DescribeJobRunResult& AddOutputs(Output&& value) { m_outputs.push_back(std::move(value)); return *this; } /** *

One or more artifacts that represent the Glue Data Catalog output from * running the job.

*/ inline const Aws::Vector& GetDataCatalogOutputs() const{ return m_dataCatalogOutputs; } /** *

One or more artifacts that represent the Glue Data Catalog output from * running the job.

*/ inline void SetDataCatalogOutputs(const Aws::Vector& value) { m_dataCatalogOutputs = value; } /** *

One or more artifacts that represent the Glue Data Catalog output from * running the job.

*/ inline void SetDataCatalogOutputs(Aws::Vector&& value) { m_dataCatalogOutputs = std::move(value); } /** *

One or more artifacts that represent the Glue Data Catalog output from * running the job.

*/ inline DescribeJobRunResult& WithDataCatalogOutputs(const Aws::Vector& value) { SetDataCatalogOutputs(value); return *this;} /** *

One or more artifacts that represent the Glue Data Catalog output from * running the job.

*/ inline DescribeJobRunResult& WithDataCatalogOutputs(Aws::Vector&& value) { SetDataCatalogOutputs(std::move(value)); return *this;} /** *

One or more artifacts that represent the Glue Data Catalog output from * running the job.

*/ inline DescribeJobRunResult& AddDataCatalogOutputs(const DataCatalogOutput& value) { m_dataCatalogOutputs.push_back(value); return *this; } /** *

One or more artifacts that represent the Glue Data Catalog output from * running the job.

*/ inline DescribeJobRunResult& AddDataCatalogOutputs(DataCatalogOutput&& value) { m_dataCatalogOutputs.push_back(std::move(value)); return *this; } /** *

Represents a list of JDBC database output objects which defines the output * destination for a DataBrew recipe job to write into.

*/ inline const Aws::Vector& GetDatabaseOutputs() const{ return m_databaseOutputs; } /** *

Represents a list of JDBC database output objects which defines the output * destination for a DataBrew recipe job to write into.

*/ inline void SetDatabaseOutputs(const Aws::Vector& value) { m_databaseOutputs = value; } /** *

Represents a list of JDBC database output objects which defines the output * destination for a DataBrew recipe job to write into.

*/ inline void SetDatabaseOutputs(Aws::Vector&& value) { m_databaseOutputs = std::move(value); } /** *

Represents a list of JDBC database output objects which defines the output * destination for a DataBrew recipe job to write into.

*/ inline DescribeJobRunResult& WithDatabaseOutputs(const Aws::Vector& value) { SetDatabaseOutputs(value); return *this;} /** *

Represents a list of JDBC database output objects which defines the output * destination for a DataBrew recipe job to write into.

*/ inline DescribeJobRunResult& WithDatabaseOutputs(Aws::Vector&& value) { SetDatabaseOutputs(std::move(value)); return *this;} /** *

Represents a list of JDBC database output objects which defines the output * destination for a DataBrew recipe job to write into.

*/ inline DescribeJobRunResult& AddDatabaseOutputs(const DatabaseOutput& value) { m_databaseOutputs.push_back(value); return *this; } /** *

Represents a list of JDBC database output objects which defines the output * destination for a DataBrew recipe job to write into.

*/ inline DescribeJobRunResult& AddDatabaseOutputs(DatabaseOutput&& value) { m_databaseOutputs.push_back(std::move(value)); return *this; } inline const RecipeReference& GetRecipeReference() const{ return m_recipeReference; } inline void SetRecipeReference(const RecipeReference& value) { m_recipeReference = value; } inline void SetRecipeReference(RecipeReference&& value) { m_recipeReference = std::move(value); } inline DescribeJobRunResult& WithRecipeReference(const RecipeReference& value) { SetRecipeReference(value); return *this;} inline DescribeJobRunResult& WithRecipeReference(RecipeReference&& value) { SetRecipeReference(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the user who started the job run.

*/ inline const Aws::String& GetStartedBy() const{ return m_startedBy; } /** *

The Amazon Resource Name (ARN) of the user who started the job run.

*/ inline void SetStartedBy(const Aws::String& value) { m_startedBy = value; } /** *

The Amazon Resource Name (ARN) of the user who started the job run.

*/ inline void SetStartedBy(Aws::String&& value) { m_startedBy = std::move(value); } /** *

The Amazon Resource Name (ARN) of the user who started the job run.

*/ inline void SetStartedBy(const char* value) { m_startedBy.assign(value); } /** *

The Amazon Resource Name (ARN) of the user who started the job run.

*/ inline DescribeJobRunResult& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;} /** *

The Amazon Resource Name (ARN) of the user who started the job run.

*/ inline DescribeJobRunResult& WithStartedBy(Aws::String&& value) { SetStartedBy(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the user who started the job run.

*/ inline DescribeJobRunResult& WithStartedBy(const char* value) { SetStartedBy(value); return *this;} /** *

The date and time when the job run began.

*/ inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; } /** *

The date and time when the job run began.

*/ inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOn = value; } /** *

The date and time when the job run began.

*/ inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOn = std::move(value); } /** *

The date and time when the job run began.

*/ inline DescribeJobRunResult& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;} /** *

The date and time when the job run began.

*/ inline DescribeJobRunResult& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;} /** *

Sample configuration for profile jobs only. Determines the number of rows on * which the profile job will be executed. If a JobSample value is not provided, * the default value will be used. The default value is CUSTOM_ROWS for the mode * parameter and 20000 for the size parameter.

*/ inline const JobSample& GetJobSample() const{ return m_jobSample; } /** *

Sample configuration for profile jobs only. Determines the number of rows on * which the profile job will be executed. If a JobSample value is not provided, * the default value will be used. The default value is CUSTOM_ROWS for the mode * parameter and 20000 for the size parameter.

*/ inline void SetJobSample(const JobSample& value) { m_jobSample = value; } /** *

Sample configuration for profile jobs only. Determines the number of rows on * which the profile job will be executed. If a JobSample value is not provided, * the default value will be used. The default value is CUSTOM_ROWS for the mode * parameter and 20000 for the size parameter.

*/ inline void SetJobSample(JobSample&& value) { m_jobSample = std::move(value); } /** *

Sample configuration for profile jobs only. Determines the number of rows on * which the profile job will be executed. If a JobSample value is not provided, * the default value will be used. The default value is CUSTOM_ROWS for the mode * parameter and 20000 for the size parameter.

*/ inline DescribeJobRunResult& WithJobSample(const JobSample& value) { SetJobSample(value); return *this;} /** *

Sample configuration for profile jobs only. Determines the number of rows on * which the profile job will be executed. If a JobSample value is not provided, * the default value will be used. The default value is CUSTOM_ROWS for the mode * parameter and 20000 for the size parameter.

*/ inline DescribeJobRunResult& WithJobSample(JobSample&& value) { SetJobSample(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeJobRunResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeJobRunResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeJobRunResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_attempt; Aws::Utils::DateTime m_completedOn; Aws::String m_datasetName; Aws::String m_errorMessage; int m_executionTime; Aws::String m_jobName; ProfileConfiguration m_profileConfiguration; Aws::Vector m_validationConfigurations; Aws::String m_runId; JobRunState m_state; LogSubscription m_logSubscription; Aws::String m_logGroupName; Aws::Vector m_outputs; Aws::Vector m_dataCatalogOutputs; Aws::Vector m_databaseOutputs; RecipeReference m_recipeReference; Aws::String m_startedBy; Aws::Utils::DateTime m_startedOn; JobSample m_jobSample; Aws::String m_requestId; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws