/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Configuration information for profiling rules.

See Also:

AWS * API Reference

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

The name of the rule configuration. It must be unique relative to other rule * configuration names.

*/ inline const Aws::String& GetRuleConfigurationName() const{ return m_ruleConfigurationName; } /** *

The name of the rule configuration. It must be unique relative to other rule * configuration names.

*/ inline bool RuleConfigurationNameHasBeenSet() const { return m_ruleConfigurationNameHasBeenSet; } /** *

The name of the rule configuration. It must be unique relative to other rule * configuration names.

*/ inline void SetRuleConfigurationName(const Aws::String& value) { m_ruleConfigurationNameHasBeenSet = true; m_ruleConfigurationName = value; } /** *

The name of the rule configuration. It must be unique relative to other rule * configuration names.

*/ inline void SetRuleConfigurationName(Aws::String&& value) { m_ruleConfigurationNameHasBeenSet = true; m_ruleConfigurationName = std::move(value); } /** *

The name of the rule configuration. It must be unique relative to other rule * configuration names.

*/ inline void SetRuleConfigurationName(const char* value) { m_ruleConfigurationNameHasBeenSet = true; m_ruleConfigurationName.assign(value); } /** *

The name of the rule configuration. It must be unique relative to other rule * configuration names.

*/ inline ProfilerRuleConfiguration& WithRuleConfigurationName(const Aws::String& value) { SetRuleConfigurationName(value); return *this;} /** *

The name of the rule configuration. It must be unique relative to other rule * configuration names.

*/ inline ProfilerRuleConfiguration& WithRuleConfigurationName(Aws::String&& value) { SetRuleConfigurationName(std::move(value)); return *this;} /** *

The name of the rule configuration. It must be unique relative to other rule * configuration names.

*/ inline ProfilerRuleConfiguration& WithRuleConfigurationName(const char* value) { SetRuleConfigurationName(value); return *this;} /** *

Path to local storage location for output of rules. Defaults to * /opt/ml/processing/output/rule/.

*/ inline const Aws::String& GetLocalPath() const{ return m_localPath; } /** *

Path to local storage location for output of rules. Defaults to * /opt/ml/processing/output/rule/.

*/ inline bool LocalPathHasBeenSet() const { return m_localPathHasBeenSet; } /** *

Path to local storage location for output of rules. Defaults to * /opt/ml/processing/output/rule/.

*/ inline void SetLocalPath(const Aws::String& value) { m_localPathHasBeenSet = true; m_localPath = value; } /** *

Path to local storage location for output of rules. Defaults to * /opt/ml/processing/output/rule/.

*/ inline void SetLocalPath(Aws::String&& value) { m_localPathHasBeenSet = true; m_localPath = std::move(value); } /** *

Path to local storage location for output of rules. Defaults to * /opt/ml/processing/output/rule/.

*/ inline void SetLocalPath(const char* value) { m_localPathHasBeenSet = true; m_localPath.assign(value); } /** *

Path to local storage location for output of rules. Defaults to * /opt/ml/processing/output/rule/.

*/ inline ProfilerRuleConfiguration& WithLocalPath(const Aws::String& value) { SetLocalPath(value); return *this;} /** *

Path to local storage location for output of rules. Defaults to * /opt/ml/processing/output/rule/.

*/ inline ProfilerRuleConfiguration& WithLocalPath(Aws::String&& value) { SetLocalPath(std::move(value)); return *this;} /** *

Path to local storage location for output of rules. Defaults to * /opt/ml/processing/output/rule/.

*/ inline ProfilerRuleConfiguration& WithLocalPath(const char* value) { SetLocalPath(value); return *this;} /** *

Path to Amazon S3 storage location for rules.

*/ inline const Aws::String& GetS3OutputPath() const{ return m_s3OutputPath; } /** *

Path to Amazon S3 storage location for rules.

*/ inline bool S3OutputPathHasBeenSet() const { return m_s3OutputPathHasBeenSet; } /** *

Path to Amazon S3 storage location for rules.

*/ inline void SetS3OutputPath(const Aws::String& value) { m_s3OutputPathHasBeenSet = true; m_s3OutputPath = value; } /** *

Path to Amazon S3 storage location for rules.

*/ inline void SetS3OutputPath(Aws::String&& value) { m_s3OutputPathHasBeenSet = true; m_s3OutputPath = std::move(value); } /** *

Path to Amazon S3 storage location for rules.

*/ inline void SetS3OutputPath(const char* value) { m_s3OutputPathHasBeenSet = true; m_s3OutputPath.assign(value); } /** *

Path to Amazon S3 storage location for rules.

*/ inline ProfilerRuleConfiguration& WithS3OutputPath(const Aws::String& value) { SetS3OutputPath(value); return *this;} /** *

Path to Amazon S3 storage location for rules.

*/ inline ProfilerRuleConfiguration& WithS3OutputPath(Aws::String&& value) { SetS3OutputPath(std::move(value)); return *this;} /** *

Path to Amazon S3 storage location for rules.

*/ inline ProfilerRuleConfiguration& WithS3OutputPath(const char* value) { SetS3OutputPath(value); return *this;} /** *

The Amazon Elastic Container Registry Image for the managed rule * evaluation.

*/ inline const Aws::String& GetRuleEvaluatorImage() const{ return m_ruleEvaluatorImage; } /** *

The Amazon Elastic Container Registry Image for the managed rule * evaluation.

*/ inline bool RuleEvaluatorImageHasBeenSet() const { return m_ruleEvaluatorImageHasBeenSet; } /** *

The Amazon Elastic Container Registry Image for the managed rule * evaluation.

*/ inline void SetRuleEvaluatorImage(const Aws::String& value) { m_ruleEvaluatorImageHasBeenSet = true; m_ruleEvaluatorImage = value; } /** *

The Amazon Elastic Container Registry Image for the managed rule * evaluation.

*/ inline void SetRuleEvaluatorImage(Aws::String&& value) { m_ruleEvaluatorImageHasBeenSet = true; m_ruleEvaluatorImage = std::move(value); } /** *

The Amazon Elastic Container Registry Image for the managed rule * evaluation.

*/ inline void SetRuleEvaluatorImage(const char* value) { m_ruleEvaluatorImageHasBeenSet = true; m_ruleEvaluatorImage.assign(value); } /** *

The Amazon Elastic Container Registry Image for the managed rule * evaluation.

*/ inline ProfilerRuleConfiguration& WithRuleEvaluatorImage(const Aws::String& value) { SetRuleEvaluatorImage(value); return *this;} /** *

The Amazon Elastic Container Registry Image for the managed rule * evaluation.

*/ inline ProfilerRuleConfiguration& WithRuleEvaluatorImage(Aws::String&& value) { SetRuleEvaluatorImage(std::move(value)); return *this;} /** *

The Amazon Elastic Container Registry Image for the managed rule * evaluation.

*/ inline ProfilerRuleConfiguration& WithRuleEvaluatorImage(const char* value) { SetRuleEvaluatorImage(value); return *this;} /** *

The instance type to deploy a custom rule for profiling a training job.

*/ inline const ProcessingInstanceType& GetInstanceType() const{ return m_instanceType; } /** *

The instance type to deploy a custom rule for profiling a training job.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type to deploy a custom rule for profiling a training job.

*/ inline void SetInstanceType(const ProcessingInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type to deploy a custom rule for profiling a training job.

*/ inline void SetInstanceType(ProcessingInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type to deploy a custom rule for profiling a training job.

*/ inline ProfilerRuleConfiguration& WithInstanceType(const ProcessingInstanceType& value) { SetInstanceType(value); return *this;} /** *

The instance type to deploy a custom rule for profiling a training job.

*/ inline ProfilerRuleConfiguration& WithInstanceType(ProcessingInstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The size, in GB, of the ML storage volume attached to the processing * instance.

*/ inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; } /** *

The size, in GB, of the ML storage volume attached to the processing * instance.

*/ inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; } /** *

The size, in GB, of the ML storage volume attached to the processing * instance.

*/ inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; } /** *

The size, in GB, of the ML storage volume attached to the processing * instance.

*/ inline ProfilerRuleConfiguration& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;} /** *

Runtime configuration for rule container.

*/ inline const Aws::Map& GetRuleParameters() const{ return m_ruleParameters; } /** *

Runtime configuration for rule container.

*/ inline bool RuleParametersHasBeenSet() const { return m_ruleParametersHasBeenSet; } /** *

Runtime configuration for rule container.

*/ inline void SetRuleParameters(const Aws::Map& value) { m_ruleParametersHasBeenSet = true; m_ruleParameters = value; } /** *

Runtime configuration for rule container.

*/ inline void SetRuleParameters(Aws::Map&& value) { m_ruleParametersHasBeenSet = true; m_ruleParameters = std::move(value); } /** *

Runtime configuration for rule container.

*/ inline ProfilerRuleConfiguration& WithRuleParameters(const Aws::Map& value) { SetRuleParameters(value); return *this;} /** *

Runtime configuration for rule container.

*/ inline ProfilerRuleConfiguration& WithRuleParameters(Aws::Map&& value) { SetRuleParameters(std::move(value)); return *this;} /** *

Runtime configuration for rule container.

*/ inline ProfilerRuleConfiguration& AddRuleParameters(const Aws::String& key, const Aws::String& value) { m_ruleParametersHasBeenSet = true; m_ruleParameters.emplace(key, value); return *this; } /** *

Runtime configuration for rule container.

*/ inline ProfilerRuleConfiguration& AddRuleParameters(Aws::String&& key, const Aws::String& value) { m_ruleParametersHasBeenSet = true; m_ruleParameters.emplace(std::move(key), value); return *this; } /** *

Runtime configuration for rule container.

*/ inline ProfilerRuleConfiguration& AddRuleParameters(const Aws::String& key, Aws::String&& value) { m_ruleParametersHasBeenSet = true; m_ruleParameters.emplace(key, std::move(value)); return *this; } /** *

Runtime configuration for rule container.

*/ inline ProfilerRuleConfiguration& AddRuleParameters(Aws::String&& key, Aws::String&& value) { m_ruleParametersHasBeenSet = true; m_ruleParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

Runtime configuration for rule container.

*/ inline ProfilerRuleConfiguration& AddRuleParameters(const char* key, Aws::String&& value) { m_ruleParametersHasBeenSet = true; m_ruleParameters.emplace(key, std::move(value)); return *this; } /** *

Runtime configuration for rule container.

*/ inline ProfilerRuleConfiguration& AddRuleParameters(Aws::String&& key, const char* value) { m_ruleParametersHasBeenSet = true; m_ruleParameters.emplace(std::move(key), value); return *this; } /** *

Runtime configuration for rule container.

*/ inline ProfilerRuleConfiguration& AddRuleParameters(const char* key, const char* value) { m_ruleParametersHasBeenSet = true; m_ruleParameters.emplace(key, value); return *this; } private: Aws::String m_ruleConfigurationName; bool m_ruleConfigurationNameHasBeenSet = false; Aws::String m_localPath; bool m_localPathHasBeenSet = false; Aws::String m_s3OutputPath; bool m_s3OutputPathHasBeenSet = false; Aws::String m_ruleEvaluatorImage; bool m_ruleEvaluatorImageHasBeenSet = false; ProcessingInstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; int m_volumeSizeInGB; bool m_volumeSizeInGBHasBeenSet = false; Aws::Map m_ruleParameters; bool m_ruleParametersHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws