Interface AppBlock.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AppBlock.Builder,,AppBlock> SdkBuilder<AppBlock.Builder,,AppBlock> SdkPojo
- Enclosing class:
AppBlock
-
Method Summary
Modifier and TypeMethodDescriptionappBlockErrors(Collection<ErrorDetails> appBlockErrors) The errors of the app block.appBlockErrors(Consumer<ErrorDetails.Builder>... appBlockErrors) The errors of the app block.appBlockErrors(ErrorDetails... appBlockErrors) The errors of the app block.The ARN of the app block.createdTime(Instant createdTime) The created time of the app block.description(String description) The description of the app block.displayName(String displayName) The display name of the app block.The name of the app block.packagingType(String packagingType) The packaging type of the app block.packagingType(PackagingType packagingType) The packaging type of the app block.default AppBlock.BuilderpostSetupScriptDetails(Consumer<ScriptDetails.Builder> postSetupScriptDetails) The post setup script details of the app block.postSetupScriptDetails(ScriptDetails postSetupScriptDetails) The post setup script details of the app block.default AppBlock.BuildersetupScriptDetails(Consumer<ScriptDetails.Builder> setupScriptDetails) The setup script details of the app block.setupScriptDetails(ScriptDetails setupScriptDetails) The setup script details of the app block.default AppBlock.BuildersourceS3Location(Consumer<S3Location.Builder> sourceS3Location) The source S3 location of the app block.sourceS3Location(S3Location sourceS3Location) The source S3 location of the app block.The state of the app block.state(AppBlockState state) The state of the app block.Methods 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
The name of the app block.
- Parameters:
name- The name of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The ARN of the app block.
- Parameters:
arn- The ARN of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the app block.
- Parameters:
description- The description of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
The display name of the app block.
- Parameters:
displayName- The display name of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceS3Location
The source S3 location of the app block.
- Parameters:
sourceS3Location- The source S3 location of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceS3Location
The source S3 location of the app block.
This is a convenience method that creates an instance of theS3Location.Builderavoiding the need to create one manually viaS3Location.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceS3Location(S3Location).- Parameters:
sourceS3Location- a consumer that will call methods onS3Location.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setupScriptDetails
The setup script details of the app block.
This only applies to app blocks with PackagingType
CUSTOM.- Parameters:
setupScriptDetails- The setup script details of the app block.This only applies to app blocks with PackagingType
CUSTOM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setupScriptDetails
The setup script details of the app block.
This only applies to app blocks with PackagingType
This is a convenience method that creates an instance of theCUSTOM.ScriptDetails.Builderavoiding the need to create one manually viaScriptDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosetupScriptDetails(ScriptDetails).- Parameters:
setupScriptDetails- a consumer that will call methods onScriptDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdTime
The created time of the app block.
- Parameters:
createdTime- The created time of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postSetupScriptDetails
The post setup script details of the app block.
This only applies to app blocks with PackagingType
APPSTREAM2.- Parameters:
postSetupScriptDetails- The post setup script details of the app block.This only applies to app blocks with PackagingType
APPSTREAM2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postSetupScriptDetails
default AppBlock.Builder postSetupScriptDetails(Consumer<ScriptDetails.Builder> postSetupScriptDetails) The post setup script details of the app block.
This only applies to app blocks with PackagingType
This is a convenience method that creates an instance of theAPPSTREAM2.ScriptDetails.Builderavoiding the need to create one manually viaScriptDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topostSetupScriptDetails(ScriptDetails).- Parameters:
postSetupScriptDetails- a consumer that will call methods onScriptDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packagingType
The packaging type of the app block.
- Parameters:
packagingType- The packaging type of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
packagingType
The packaging type of the app block.
- Parameters:
packagingType- The packaging type of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the app block.
An app block with AppStream 2.0 packaging will be in the
INACTIVEstate if no application package (VHD) is assigned to it. After an application package (VHD) is created by an app block builder for an app block, it becomesACTIVE.Custom app blocks are always in the
ACTIVEstate and no action is required to use them.- Parameters:
state- The state of the app block.An app block with AppStream 2.0 packaging will be in the
INACTIVEstate if no application package (VHD) is assigned to it. After an application package (VHD) is created by an app block builder for an app block, it becomesACTIVE.Custom app blocks are always in the
ACTIVEstate and no action is required to use them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the app block.
An app block with AppStream 2.0 packaging will be in the
INACTIVEstate if no application package (VHD) is assigned to it. After an application package (VHD) is created by an app block builder for an app block, it becomesACTIVE.Custom app blocks are always in the
ACTIVEstate and no action is required to use them.- Parameters:
state- The state of the app block.An app block with AppStream 2.0 packaging will be in the
INACTIVEstate if no application package (VHD) is assigned to it. After an application package (VHD) is created by an app block builder for an app block, it becomesACTIVE.Custom app blocks are always in the
ACTIVEstate and no action is required to use them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
appBlockErrors
The errors of the app block.
- Parameters:
appBlockErrors- The errors of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appBlockErrors
The errors of the app block.
- Parameters:
appBlockErrors- The errors of the app block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appBlockErrors
The errors of the app block.
This is a convenience method that creates an instance of theErrorDetails.Builderavoiding the need to create one manually viaErrorDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toappBlockErrors(List<ErrorDetails>).- Parameters:
appBlockErrors- a consumer that will call methods onErrorDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-