Class ModelAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.alpha.ModelAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ModelAttributes>
- Enclosing interface:
ModelAttributes
@Stability(Experimental)
public static final class ModelAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ModelAttributes>
A builder for
ModelAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofModelAttributes.getModelArn()
Sets the value ofModelAttributes.getRole()
securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofModelAttributes.getSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelArn
Sets the value ofModelAttributes.getModelArn()
- Parameters:
modelArn
- The ARN of this model. This parameter is required.- Returns:
this
-
role
Sets the value ofModelAttributes.getRole()
- Parameters:
role
- The IAM execution role associated with this model.- Returns:
this
-
securityGroups
@Stability(Experimental) public ModelAttributes.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofModelAttributes.getSecurityGroups()
- Parameters:
securityGroups
- The security groups for this model, if in a VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ModelAttributes>
- Returns:
- a new instance of
ModelAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-