/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Glue { namespace Model { /** */ class StartDataQualityRuleRecommendationRunRequest : public GlueRequest { public: AWS_GLUE_API StartDataQualityRuleRecommendationRunRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartDataQualityRuleRecommendationRun"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The data source (Glue table) associated with this run.

*/ inline const DataSource& GetDataSource() const{ return m_dataSource; } /** *

The data source (Glue table) associated with this run.

*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *

The data source (Glue table) associated with this run.

*/ inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *

The data source (Glue table) associated with this run.

*/ inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *

The data source (Glue table) associated with this run.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;} /** *

The data source (Glue table) associated with this run.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;} /** *

An IAM role supplied to encrypt the results of the run.

*/ inline const Aws::String& GetRole() const{ return m_role; } /** *

An IAM role supplied to encrypt the results of the run.

*/ inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; } /** *

An IAM role supplied to encrypt the results of the run.

*/ inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; } /** *

An IAM role supplied to encrypt the results of the run.

*/ inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); } /** *

An IAM role supplied to encrypt the results of the run.

*/ inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); } /** *

An IAM role supplied to encrypt the results of the run.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;} /** *

An IAM role supplied to encrypt the results of the run.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;} /** *

An IAM role supplied to encrypt the results of the run.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithRole(const char* value) { SetRole(value); return *this;} /** *

The number of G.1X workers to be used in the run. The default is * 5.

*/ inline int GetNumberOfWorkers() const{ return m_numberOfWorkers; } /** *

The number of G.1X workers to be used in the run. The default is * 5.

*/ inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; } /** *

The number of G.1X workers to be used in the run. The default is * 5.

*/ inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; } /** *

The number of G.1X workers to be used in the run. The default is * 5.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;} /** *

The timeout for a run in minutes. This is the maximum time that a run can * consume resources before it is terminated and enters TIMEOUT * status. The default is 2,880 minutes (48 hours).

*/ inline int GetTimeout() const{ return m_timeout; } /** *

The timeout for a run in minutes. This is the maximum time that a run can * consume resources before it is terminated and enters TIMEOUT * status. The default is 2,880 minutes (48 hours).

*/ inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; } /** *

The timeout for a run in minutes. This is the maximum time that a run can * consume resources before it is terminated and enters TIMEOUT * status. The default is 2,880 minutes (48 hours).

*/ inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; } /** *

The timeout for a run in minutes. This is the maximum time that a run can * consume resources before it is terminated and enters TIMEOUT * status. The default is 2,880 minutes (48 hours).

*/ inline StartDataQualityRuleRecommendationRunRequest& WithTimeout(int value) { SetTimeout(value); return *this;} /** *

A name for the ruleset.

*/ inline const Aws::String& GetCreatedRulesetName() const{ return m_createdRulesetName; } /** *

A name for the ruleset.

*/ inline bool CreatedRulesetNameHasBeenSet() const { return m_createdRulesetNameHasBeenSet; } /** *

A name for the ruleset.

*/ inline void SetCreatedRulesetName(const Aws::String& value) { m_createdRulesetNameHasBeenSet = true; m_createdRulesetName = value; } /** *

A name for the ruleset.

*/ inline void SetCreatedRulesetName(Aws::String&& value) { m_createdRulesetNameHasBeenSet = true; m_createdRulesetName = std::move(value); } /** *

A name for the ruleset.

*/ inline void SetCreatedRulesetName(const char* value) { m_createdRulesetNameHasBeenSet = true; m_createdRulesetName.assign(value); } /** *

A name for the ruleset.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithCreatedRulesetName(const Aws::String& value) { SetCreatedRulesetName(value); return *this;} /** *

A name for the ruleset.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithCreatedRulesetName(Aws::String&& value) { SetCreatedRulesetName(std::move(value)); return *this;} /** *

A name for the ruleset.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithCreatedRulesetName(const char* value) { SetCreatedRulesetName(value); return *this;} /** *

Used for idempotency and is recommended to be set to a random ID (such as a * UUID) to avoid creating or starting multiple instances of the same resource.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Used for idempotency and is recommended to be set to a random ID (such as a * UUID) to avoid creating or starting multiple instances of the same resource.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Used for idempotency and is recommended to be set to a random ID (such as a * UUID) to avoid creating or starting multiple instances of the same resource.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Used for idempotency and is recommended to be set to a random ID (such as a * UUID) to avoid creating or starting multiple instances of the same resource.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Used for idempotency and is recommended to be set to a random ID (such as a * UUID) to avoid creating or starting multiple instances of the same resource.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Used for idempotency and is recommended to be set to a random ID (such as a * UUID) to avoid creating or starting multiple instances of the same resource.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Used for idempotency and is recommended to be set to a random ID (such as a * UUID) to avoid creating or starting multiple instances of the same resource.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Used for idempotency and is recommended to be set to a random ID (such as a * UUID) to avoid creating or starting multiple instances of the same resource.

*/ inline StartDataQualityRuleRecommendationRunRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: DataSource m_dataSource; bool m_dataSourceHasBeenSet = false; Aws::String m_role; bool m_roleHasBeenSet = false; int m_numberOfWorkers; bool m_numberOfWorkersHasBeenSet = false; int m_timeout; bool m_timeoutHasBeenSet = false; Aws::String m_createdRulesetName; bool m_createdRulesetNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws