/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Configuration information for profiling rules. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProfilerRuleConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The name of the rule configuration. It must be unique relative to other rule configuration names. *
*/ private String ruleConfigurationName; /** *
* Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/
.
*
* Path to Amazon S3 storage location for rules. *
*/ private String s3OutputPath; /** ** The Amazon Elastic Container Registry Image for the managed rule evaluation. *
*/ private String ruleEvaluatorImage; /** ** The instance type to deploy a custom rule for profiling a training job. *
*/ private String instanceType; /** ** The size, in GB, of the ML storage volume attached to the processing instance. *
*/ private Integer volumeSizeInGB; /** ** Runtime configuration for rule container. *
*/ private java.util.Map* The name of the rule configuration. It must be unique relative to other rule configuration names. *
* * @param ruleConfigurationName * The name of the rule configuration. It must be unique relative to other rule configuration names. */ public void setRuleConfigurationName(String ruleConfigurationName) { this.ruleConfigurationName = ruleConfigurationName; } /** ** The name of the rule configuration. It must be unique relative to other rule configuration names. *
* * @return The name of the rule configuration. It must be unique relative to other rule configuration names. */ public String getRuleConfigurationName() { return this.ruleConfigurationName; } /** ** The name of the rule configuration. It must be unique relative to other rule configuration names. *
* * @param ruleConfigurationName * The name of the rule configuration. It must be unique relative to other rule configuration names. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfilerRuleConfiguration withRuleConfigurationName(String ruleConfigurationName) { setRuleConfigurationName(ruleConfigurationName); return this; } /** *
* Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/
.
*
/opt/ml/processing/output/rule/
.
*/
public void setLocalPath(String localPath) {
this.localPath = localPath;
}
/**
*
* Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/
.
*
/opt/ml/processing/output/rule/
.
*/
public String getLocalPath() {
return this.localPath;
}
/**
*
* Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/
.
*
/opt/ml/processing/output/rule/
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ProfilerRuleConfiguration withLocalPath(String localPath) {
setLocalPath(localPath);
return this;
}
/**
* * Path to Amazon S3 storage location for rules. *
* * @param s3OutputPath * Path to Amazon S3 storage location for rules. */ public void setS3OutputPath(String s3OutputPath) { this.s3OutputPath = s3OutputPath; } /** ** Path to Amazon S3 storage location for rules. *
* * @return Path to Amazon S3 storage location for rules. */ public String getS3OutputPath() { return this.s3OutputPath; } /** ** Path to Amazon S3 storage location for rules. *
* * @param s3OutputPath * Path to Amazon S3 storage location for rules. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfilerRuleConfiguration withS3OutputPath(String s3OutputPath) { setS3OutputPath(s3OutputPath); return this; } /** ** The Amazon Elastic Container Registry Image for the managed rule evaluation. *
* * @param ruleEvaluatorImage * The Amazon Elastic Container Registry Image for the managed rule evaluation. */ public void setRuleEvaluatorImage(String ruleEvaluatorImage) { this.ruleEvaluatorImage = ruleEvaluatorImage; } /** ** The Amazon Elastic Container Registry Image for the managed rule evaluation. *
* * @return The Amazon Elastic Container Registry Image for the managed rule evaluation. */ public String getRuleEvaluatorImage() { return this.ruleEvaluatorImage; } /** ** The Amazon Elastic Container Registry Image for the managed rule evaluation. *
* * @param ruleEvaluatorImage * The Amazon Elastic Container Registry Image for the managed rule evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfilerRuleConfiguration withRuleEvaluatorImage(String ruleEvaluatorImage) { setRuleEvaluatorImage(ruleEvaluatorImage); return this; } /** ** The instance type to deploy a custom rule for profiling a training job. *
* * @param instanceType * The instance type to deploy a custom rule for profiling a training job. * @see ProcessingInstanceType */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** ** The instance type to deploy a custom rule for profiling a training job. *
* * @return The instance type to deploy a custom rule for profiling a training job. * @see ProcessingInstanceType */ public String getInstanceType() { return this.instanceType; } /** ** The instance type to deploy a custom rule for profiling a training job. *
* * @param instanceType * The instance type to deploy a custom rule for profiling a training job. * @return Returns a reference to this object so that method calls can be chained together. * @see ProcessingInstanceType */ public ProfilerRuleConfiguration withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** ** The instance type to deploy a custom rule for profiling a training job. *
* * @param instanceType * The instance type to deploy a custom rule for profiling a training job. * @return Returns a reference to this object so that method calls can be chained together. * @see ProcessingInstanceType */ public ProfilerRuleConfiguration withInstanceType(ProcessingInstanceType instanceType) { this.instanceType = instanceType.toString(); return this; } /** ** The size, in GB, of the ML storage volume attached to the processing instance. *
* * @param volumeSizeInGB * The size, in GB, of the ML storage volume attached to the processing instance. */ public void setVolumeSizeInGB(Integer volumeSizeInGB) { this.volumeSizeInGB = volumeSizeInGB; } /** ** The size, in GB, of the ML storage volume attached to the processing instance. *
* * @return The size, in GB, of the ML storage volume attached to the processing instance. */ public Integer getVolumeSizeInGB() { return this.volumeSizeInGB; } /** ** The size, in GB, of the ML storage volume attached to the processing instance. *
* * @param volumeSizeInGB * The size, in GB, of the ML storage volume attached to the processing instance. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfilerRuleConfiguration withVolumeSizeInGB(Integer volumeSizeInGB) { setVolumeSizeInGB(volumeSizeInGB); return this; } /** ** Runtime configuration for rule container. *
* * @return Runtime configuration for rule container. */ public java.util.Map* Runtime configuration for rule container. *
* * @param ruleParameters * Runtime configuration for rule container. */ public void setRuleParameters(java.util.Map* Runtime configuration for rule container. *
* * @param ruleParameters * Runtime configuration for rule container. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfilerRuleConfiguration withRuleParameters(java.util.Map