Interface CreateAppRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAppRequest.Builder,CreateAppRequest>,SageMakerRequest.Builder,SdkBuilder<CreateAppRequest.Builder,CreateAppRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateAppRequest
public static interface CreateAppRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<CreateAppRequest.Builder,CreateAppRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateAppRequest.BuilderappName(String appName)The name of the app.CreateAppRequest.BuilderappType(String appType)The type of app.CreateAppRequest.BuilderappType(AppType appType)The type of app.CreateAppRequest.BuilderdomainId(String domainId)The domain ID.CreateAppRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateAppRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateAppRequest.BuilderresourceSpec(Consumer<ResourceSpec.Builder> resourceSpec)The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.CreateAppRequest.BuilderresourceSpec(ResourceSpec resourceSpec)The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.CreateAppRequest.BuilderspaceName(String spaceName)The name of the space.CreateAppRequest.Buildertags(Collection<Tag> tags)Each tag consists of a key and an optional value.CreateAppRequest.Buildertags(Consumer<Tag.Builder>... tags)Each tag consists of a key and an optional value.CreateAppRequest.Buildertags(Tag... tags)Each tag consists of a key and an optional value.CreateAppRequest.BuilderuserProfileName(String userProfileName)The user profile name.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
domainId
CreateAppRequest.Builder domainId(String domainId)
The domain ID.
- Parameters:
domainId- The domain ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userProfileName
CreateAppRequest.Builder userProfileName(String userProfileName)
The user profile name. If this value is not set, then
SpaceNamemust be set.- Parameters:
userProfileName- The user profile name. If this value is not set, thenSpaceNamemust be set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spaceName
CreateAppRequest.Builder spaceName(String spaceName)
The name of the space. If this value is not set, then
UserProfileNamemust be set.- Parameters:
spaceName- The name of the space. If this value is not set, thenUserProfileNamemust be set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appType
CreateAppRequest.Builder appType(String appType)
The type of app.
-
appType
CreateAppRequest.Builder appType(AppType appType)
The type of app.
-
appName
CreateAppRequest.Builder appName(String appName)
The name of the app.
- Parameters:
appName- The name of the app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateAppRequest.Builder tags(Collection<Tag> tags)
Each tag consists of a key and an optional value. Tag keys must be unique per resource.
- Parameters:
tags- Each tag consists of a key and an optional value. Tag keys must be unique per resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateAppRequest.Builder tags(Tag... tags)
Each tag consists of a key and an optional value. Tag keys must be unique per resource.
- Parameters:
tags- Each tag consists of a key and an optional value. Tag keys must be unique per resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateAppRequest.Builder tags(Consumer<Tag.Builder>... tags)
Each tag consists of a key and an optional value. Tag keys must be unique per resource.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
resourceSpec
CreateAppRequest.Builder resourceSpec(ResourceSpec resourceSpec)
The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.
The value of
InstanceTypepassed as part of theResourceSpecin theCreateAppcall overrides the value passed as part of theResourceSpecconfigured for the user profile or the domain. IfInstanceTypeis not specified in any of those threeResourceSpecvalues for aKernelGatewayapp, theCreateAppcall fails with a request validation error.- Parameters:
resourceSpec- The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.The value of
InstanceTypepassed as part of theResourceSpecin theCreateAppcall overrides the value passed as part of theResourceSpecconfigured for the user profile or the domain. IfInstanceTypeis not specified in any of those threeResourceSpecvalues for aKernelGatewayapp, theCreateAppcall fails with a request validation error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceSpec
default CreateAppRequest.Builder resourceSpec(Consumer<ResourceSpec.Builder> resourceSpec)
The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.
This is a convenience method that creates an instance of theThe value of
InstanceTypepassed as part of theResourceSpecin theCreateAppcall overrides the value passed as part of theResourceSpecconfigured for the user profile or the domain. IfInstanceTypeis not specified in any of those threeResourceSpecvalues for aKernelGatewayapp, theCreateAppcall fails with a request validation error.ResourceSpec.Builderavoiding the need to create one manually viaResourceSpec.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceSpec(ResourceSpec).- Parameters:
resourceSpec- a consumer that will call methods onResourceSpec.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resourceSpec(ResourceSpec)
-
overrideConfiguration
CreateAppRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAppRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-