Interface CreateImportedImageRequest.Builder
- All Superinterfaces:
AppStreamRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateImportedImageRequest.Builder,,CreateImportedImageRequest> SdkBuilder<CreateImportedImageRequest.Builder,,CreateImportedImageRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateImportedImageRequest
-
Method Summary
Modifier and TypeMethodDescriptionagentSoftwareVersion(String agentSoftwareVersion) The version of the WorkSpaces Applications agent to use for the imported image.agentSoftwareVersion(AgentSoftwareVersion agentSoftwareVersion) The version of the WorkSpaces Applications agent to use for the imported image.appCatalogConfig(Collection<ApplicationConfig> appCatalogConfig) Configuration for the application catalog of the imported image.appCatalogConfig(Consumer<ApplicationConfig.Builder>... appCatalogConfig) Configuration for the application catalog of the imported image.appCatalogConfig(ApplicationConfig... appCatalogConfig) Configuration for the application catalog of the imported image.description(String description) An optional description for the imported image.displayName(String displayName) An optional display name for the imported image.When set to true, performs validation checks without actually creating the imported image.iamRoleArn(String iamRoleArn) The ARN of the IAM role that allows WorkSpaces Applications to access your AMI.A unique name for the imported image.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.runtimeValidationConfig(Consumer<RuntimeValidationConfig.Builder> runtimeValidationConfig) Configuration for runtime validation of the imported image.runtimeValidationConfig(RuntimeValidationConfig runtimeValidationConfig) Configuration for runtime validation of the imported image.sourceAmiId(String sourceAmiId) The ID of the EC2 AMI to import.The tags to apply to the imported image.Methods inherited from interface software.amazon.awssdk.services.appstream.model.AppStreamRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
A unique name for the imported image. The name must be between 1 and 100 characters and can contain letters, numbers, underscores, periods, and hyphens.
- Parameters:
name- A unique name for the imported image. The name must be between 1 and 100 characters and can contain letters, numbers, underscores, periods, and hyphens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceAmiId
The ID of the EC2 AMI to import. The AMI must meet specific requirements including Windows Server 2022 Full Base, UEFI boot mode, TPM 2.0 support, and proper drivers.
- Parameters:
sourceAmiId- The ID of the EC2 AMI to import. The AMI must meet specific requirements including Windows Server 2022 Full Base, UEFI boot mode, TPM 2.0 support, and proper drivers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamRoleArn
The ARN of the IAM role that allows WorkSpaces Applications to access your AMI. The role must have permissions to modify image attributes and describe images, with a trust relationship allowing appstream.amazonaws.com to assume the role.
- Parameters:
iamRoleArn- The ARN of the IAM role that allows WorkSpaces Applications to access your AMI. The role must have permissions to modify image attributes and describe images, with a trust relationship allowing appstream.amazonaws.com to assume the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
An optional description for the imported image. The description must match approved regex patterns and can be up to 256 characters.
- Parameters:
description- An optional description for the imported image. The description must match approved regex patterns and can be up to 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
An optional display name for the imported image. The display name must match approved regex patterns and can be up to 100 characters.
- Parameters:
displayName- An optional display name for the imported image. The display name must match approved regex patterns and can be up to 100 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to apply to the imported image. Tags help you organize and manage your WorkSpaces Applications resources.
- Parameters:
tags- The tags to apply to the imported image. Tags help you organize and manage your WorkSpaces Applications resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeValidationConfig
CreateImportedImageRequest.Builder runtimeValidationConfig(RuntimeValidationConfig runtimeValidationConfig) Configuration for runtime validation of the imported image. When specified, WorkSpaces Applications provisions an instance to test streaming functionality, which helps ensure the image is suitable for use.
- Parameters:
runtimeValidationConfig- Configuration for runtime validation of the imported image. When specified, WorkSpaces Applications provisions an instance to test streaming functionality, which helps ensure the image is suitable for use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeValidationConfig
default CreateImportedImageRequest.Builder runtimeValidationConfig(Consumer<RuntimeValidationConfig.Builder> runtimeValidationConfig) Configuration for runtime validation of the imported image. When specified, WorkSpaces Applications provisions an instance to test streaming functionality, which helps ensure the image is suitable for use.
This is a convenience method that creates an instance of theRuntimeValidationConfig.Builderavoiding the need to create one manually viaRuntimeValidationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toruntimeValidationConfig(RuntimeValidationConfig).- Parameters:
runtimeValidationConfig- a consumer that will call methods onRuntimeValidationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentSoftwareVersion
The version of the WorkSpaces Applications agent to use for the imported image. Choose CURRENT_LATEST to use the agent version available at the time of import, or ALWAYS_LATEST to automatically update to the latest agent version when new versions are released.
- Parameters:
agentSoftwareVersion- The version of the WorkSpaces Applications agent to use for the imported image. Choose CURRENT_LATEST to use the agent version available at the time of import, or ALWAYS_LATEST to automatically update to the latest agent version when new versions are released.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentSoftwareVersion
The version of the WorkSpaces Applications agent to use for the imported image. Choose CURRENT_LATEST to use the agent version available at the time of import, or ALWAYS_LATEST to automatically update to the latest agent version when new versions are released.
- Parameters:
agentSoftwareVersion- The version of the WorkSpaces Applications agent to use for the imported image. Choose CURRENT_LATEST to use the agent version available at the time of import, or ALWAYS_LATEST to automatically update to the latest agent version when new versions are released.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
appCatalogConfig
Configuration for the application catalog of the imported image. This allows you to specify applications available for streaming, including their paths, icons, and launch parameters. This field contains sensitive data.
- Parameters:
appCatalogConfig- Configuration for the application catalog of the imported image. This allows you to specify applications available for streaming, including their paths, icons, and launch parameters. This field contains sensitive data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appCatalogConfig
Configuration for the application catalog of the imported image. This allows you to specify applications available for streaming, including their paths, icons, and launch parameters. This field contains sensitive data.
- Parameters:
appCatalogConfig- Configuration for the application catalog of the imported image. This allows you to specify applications available for streaming, including their paths, icons, and launch parameters. This field contains sensitive data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appCatalogConfig
CreateImportedImageRequest.Builder appCatalogConfig(Consumer<ApplicationConfig.Builder>... appCatalogConfig) Configuration for the application catalog of the imported image. This allows you to specify applications available for streaming, including their paths, icons, and launch parameters. This field contains sensitive data.
This is a convenience method that creates an instance of theApplicationConfig.Builderavoiding the need to create one manually viaApplicationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toappCatalogConfig(List<ApplicationConfig>).- Parameters:
appCatalogConfig- a consumer that will call methods onApplicationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
When set to true, performs validation checks without actually creating the imported image. Use this to verify your configuration before executing the actual import operation.
- Parameters:
dryRun- When set to true, performs validation checks without actually creating the imported image. Use this to verify your configuration before executing the actual import operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateImportedImageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateImportedImageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-