Class CfnAIWorkloadConfig.WorkloadSpecProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnAIWorkloadConfig.WorkloadSpecProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAIWorkloadConfig.WorkloadSpecProperty>
- Enclosing interface:
CfnAIWorkloadConfig.WorkloadSpecProperty
@Stability(Stable)
public static final class CfnAIWorkloadConfig.WorkloadSpecProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAIWorkloadConfig.WorkloadSpecProperty>
A builder for
CfnAIWorkloadConfig.WorkloadSpecProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAIWorkloadConfig.WorkloadSpecProperty.getInline()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inline
Sets the value ofCfnAIWorkloadConfig.WorkloadSpecProperty.getInline()- Parameters:
inline- An inline YAML or JSON string that defines benchmark parameters. This parameter is required. The service validates the document against its own benchmark schema: it must declare a benchmark object whose type member matches the pattern ^(aiperf)$.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAIWorkloadConfig.WorkloadSpecProperty>- Returns:
- a new instance of
CfnAIWorkloadConfig.WorkloadSpecProperty - Throws:
NullPointerException- if any required attribute was not provided
-