/** * 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 namespace Aws { namespace SageMaker { namespace Model { /** */ class CreateModelExplainabilityJobDefinitionRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateModelExplainabilityJobDefinitionRequest(); // 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 "CreateModelExplainabilityJobDefinition"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the model explainability job definition. The name must be unique * within an Amazon Web Services Region in the Amazon Web Services account.

*/ inline const Aws::String& GetJobDefinitionName() const{ return m_jobDefinitionName; } /** *

The name of the model explainability job definition. The name must be unique * within an Amazon Web Services Region in the Amazon Web Services account.

*/ inline bool JobDefinitionNameHasBeenSet() const { return m_jobDefinitionNameHasBeenSet; } /** *

The name of the model explainability job definition. The name must be unique * within an Amazon Web Services Region in the Amazon Web Services account.

*/ inline void SetJobDefinitionName(const Aws::String& value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName = value; } /** *

The name of the model explainability job definition. The name must be unique * within an Amazon Web Services Region in the Amazon Web Services account.

*/ inline void SetJobDefinitionName(Aws::String&& value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName = std::move(value); } /** *

The name of the model explainability job definition. The name must be unique * within an Amazon Web Services Region in the Amazon Web Services account.

*/ inline void SetJobDefinitionName(const char* value) { m_jobDefinitionNameHasBeenSet = true; m_jobDefinitionName.assign(value); } /** *

The name of the model explainability job definition. The name must be unique * within an Amazon Web Services Region in the Amazon Web Services account.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithJobDefinitionName(const Aws::String& value) { SetJobDefinitionName(value); return *this;} /** *

The name of the model explainability job definition. The name must be unique * within an Amazon Web Services Region in the Amazon Web Services account.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithJobDefinitionName(Aws::String&& value) { SetJobDefinitionName(std::move(value)); return *this;} /** *

The name of the model explainability job definition. The name must be unique * within an Amazon Web Services Region in the Amazon Web Services account.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithJobDefinitionName(const char* value) { SetJobDefinitionName(value); return *this;} /** *

The baseline configuration for a model explainability job.

*/ inline const ModelExplainabilityBaselineConfig& GetModelExplainabilityBaselineConfig() const{ return m_modelExplainabilityBaselineConfig; } /** *

The baseline configuration for a model explainability job.

*/ inline bool ModelExplainabilityBaselineConfigHasBeenSet() const { return m_modelExplainabilityBaselineConfigHasBeenSet; } /** *

The baseline configuration for a model explainability job.

*/ inline void SetModelExplainabilityBaselineConfig(const ModelExplainabilityBaselineConfig& value) { m_modelExplainabilityBaselineConfigHasBeenSet = true; m_modelExplainabilityBaselineConfig = value; } /** *

The baseline configuration for a model explainability job.

*/ inline void SetModelExplainabilityBaselineConfig(ModelExplainabilityBaselineConfig&& value) { m_modelExplainabilityBaselineConfigHasBeenSet = true; m_modelExplainabilityBaselineConfig = std::move(value); } /** *

The baseline configuration for a model explainability job.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithModelExplainabilityBaselineConfig(const ModelExplainabilityBaselineConfig& value) { SetModelExplainabilityBaselineConfig(value); return *this;} /** *

The baseline configuration for a model explainability job.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithModelExplainabilityBaselineConfig(ModelExplainabilityBaselineConfig&& value) { SetModelExplainabilityBaselineConfig(std::move(value)); return *this;} /** *

Configures the model explainability job to run a specified Docker container * image.

*/ inline const ModelExplainabilityAppSpecification& GetModelExplainabilityAppSpecification() const{ return m_modelExplainabilityAppSpecification; } /** *

Configures the model explainability job to run a specified Docker container * image.

*/ inline bool ModelExplainabilityAppSpecificationHasBeenSet() const { return m_modelExplainabilityAppSpecificationHasBeenSet; } /** *

Configures the model explainability job to run a specified Docker container * image.

*/ inline void SetModelExplainabilityAppSpecification(const ModelExplainabilityAppSpecification& value) { m_modelExplainabilityAppSpecificationHasBeenSet = true; m_modelExplainabilityAppSpecification = value; } /** *

Configures the model explainability job to run a specified Docker container * image.

*/ inline void SetModelExplainabilityAppSpecification(ModelExplainabilityAppSpecification&& value) { m_modelExplainabilityAppSpecificationHasBeenSet = true; m_modelExplainabilityAppSpecification = std::move(value); } /** *

Configures the model explainability job to run a specified Docker container * image.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithModelExplainabilityAppSpecification(const ModelExplainabilityAppSpecification& value) { SetModelExplainabilityAppSpecification(value); return *this;} /** *

Configures the model explainability job to run a specified Docker container * image.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithModelExplainabilityAppSpecification(ModelExplainabilityAppSpecification&& value) { SetModelExplainabilityAppSpecification(std::move(value)); return *this;} /** *

Inputs for the model explainability job.

*/ inline const ModelExplainabilityJobInput& GetModelExplainabilityJobInput() const{ return m_modelExplainabilityJobInput; } /** *

Inputs for the model explainability job.

*/ inline bool ModelExplainabilityJobInputHasBeenSet() const { return m_modelExplainabilityJobInputHasBeenSet; } /** *

Inputs for the model explainability job.

*/ inline void SetModelExplainabilityJobInput(const ModelExplainabilityJobInput& value) { m_modelExplainabilityJobInputHasBeenSet = true; m_modelExplainabilityJobInput = value; } /** *

Inputs for the model explainability job.

*/ inline void SetModelExplainabilityJobInput(ModelExplainabilityJobInput&& value) { m_modelExplainabilityJobInputHasBeenSet = true; m_modelExplainabilityJobInput = std::move(value); } /** *

Inputs for the model explainability job.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithModelExplainabilityJobInput(const ModelExplainabilityJobInput& value) { SetModelExplainabilityJobInput(value); return *this;} /** *

Inputs for the model explainability job.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithModelExplainabilityJobInput(ModelExplainabilityJobInput&& value) { SetModelExplainabilityJobInput(std::move(value)); return *this;} inline const MonitoringOutputConfig& GetModelExplainabilityJobOutputConfig() const{ return m_modelExplainabilityJobOutputConfig; } inline bool ModelExplainabilityJobOutputConfigHasBeenSet() const { return m_modelExplainabilityJobOutputConfigHasBeenSet; } inline void SetModelExplainabilityJobOutputConfig(const MonitoringOutputConfig& value) { m_modelExplainabilityJobOutputConfigHasBeenSet = true; m_modelExplainabilityJobOutputConfig = value; } inline void SetModelExplainabilityJobOutputConfig(MonitoringOutputConfig&& value) { m_modelExplainabilityJobOutputConfigHasBeenSet = true; m_modelExplainabilityJobOutputConfig = std::move(value); } inline CreateModelExplainabilityJobDefinitionRequest& WithModelExplainabilityJobOutputConfig(const MonitoringOutputConfig& value) { SetModelExplainabilityJobOutputConfig(value); return *this;} inline CreateModelExplainabilityJobDefinitionRequest& WithModelExplainabilityJobOutputConfig(MonitoringOutputConfig&& value) { SetModelExplainabilityJobOutputConfig(std::move(value)); return *this;} inline const MonitoringResources& GetJobResources() const{ return m_jobResources; } inline bool JobResourcesHasBeenSet() const { return m_jobResourcesHasBeenSet; } inline void SetJobResources(const MonitoringResources& value) { m_jobResourcesHasBeenSet = true; m_jobResources = value; } inline void SetJobResources(MonitoringResources&& value) { m_jobResourcesHasBeenSet = true; m_jobResources = std::move(value); } inline CreateModelExplainabilityJobDefinitionRequest& WithJobResources(const MonitoringResources& value) { SetJobResources(value); return *this;} inline CreateModelExplainabilityJobDefinitionRequest& WithJobResources(MonitoringResources&& value) { SetJobResources(std::move(value)); return *this;} /** *

Networking options for a model explainability job.

*/ inline const MonitoringNetworkConfig& GetNetworkConfig() const{ return m_networkConfig; } /** *

Networking options for a model explainability job.

*/ inline bool NetworkConfigHasBeenSet() const { return m_networkConfigHasBeenSet; } /** *

Networking options for a model explainability job.

*/ inline void SetNetworkConfig(const MonitoringNetworkConfig& value) { m_networkConfigHasBeenSet = true; m_networkConfig = value; } /** *

Networking options for a model explainability job.

*/ inline void SetNetworkConfig(MonitoringNetworkConfig&& value) { m_networkConfigHasBeenSet = true; m_networkConfig = std::move(value); } /** *

Networking options for a model explainability job.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithNetworkConfig(const MonitoringNetworkConfig& value) { SetNetworkConfig(value); return *this;} /** *

Networking options for a model explainability job.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithNetworkConfig(MonitoringNetworkConfig&& value) { SetNetworkConfig(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can * assume to perform tasks on your behalf.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} inline const MonitoringStoppingCondition& GetStoppingCondition() const{ return m_stoppingCondition; } inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; } inline void SetStoppingCondition(const MonitoringStoppingCondition& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = value; } inline void SetStoppingCondition(MonitoringStoppingCondition&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::move(value); } inline CreateModelExplainabilityJobDefinitionRequest& WithStoppingCondition(const MonitoringStoppingCondition& value) { SetStoppingCondition(value); return *this;} inline CreateModelExplainabilityJobDefinitionRequest& WithStoppingCondition(MonitoringStoppingCondition&& value) { SetStoppingCondition(std::move(value)); return *this;} /** *

(Optional) An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

(Optional) An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

(Optional) An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

(Optional) An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

(Optional) An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

(Optional) An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide.

*/ inline CreateModelExplainabilityJobDefinitionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

(Optional) An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide.

*/ inline CreateModelExplainabilityJobDefinitionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

(Optional) An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide.

*/ inline CreateModelExplainabilityJobDefinitionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_jobDefinitionName; bool m_jobDefinitionNameHasBeenSet = false; ModelExplainabilityBaselineConfig m_modelExplainabilityBaselineConfig; bool m_modelExplainabilityBaselineConfigHasBeenSet = false; ModelExplainabilityAppSpecification m_modelExplainabilityAppSpecification; bool m_modelExplainabilityAppSpecificationHasBeenSet = false; ModelExplainabilityJobInput m_modelExplainabilityJobInput; bool m_modelExplainabilityJobInputHasBeenSet = false; MonitoringOutputConfig m_modelExplainabilityJobOutputConfig; bool m_modelExplainabilityJobOutputConfigHasBeenSet = false; MonitoringResources m_jobResources; bool m_jobResourcesHasBeenSet = false; MonitoringNetworkConfig m_networkConfig; bool m_networkConfigHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; MonitoringStoppingCondition m_stoppingCondition; bool m_stoppingConditionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws