Interface AppBlock.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AppBlock.Builder,AppBlock>,SdkBuilder<AppBlock.Builder,AppBlock>,SdkPojo
- Enclosing class:
- AppBlock
public static interface AppBlock.Builder extends SdkPojo, CopyableBuilder<AppBlock.Builder,AppBlock>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AppBlock.BuilderappBlockErrors(Collection<ErrorDetails> appBlockErrors)The errors of the app block.AppBlock.BuilderappBlockErrors(Consumer<ErrorDetails.Builder>... appBlockErrors)The errors of the app block.AppBlock.BuilderappBlockErrors(ErrorDetails... appBlockErrors)The errors of the app block.AppBlock.Builderarn(String arn)The ARN of the app block.AppBlock.BuildercreatedTime(Instant createdTime)The created time of the app block.AppBlock.Builderdescription(String description)The description of the app block.AppBlock.BuilderdisplayName(String displayName)The display name of the app block.AppBlock.Buildername(String name)The name of the app block.AppBlock.BuilderpackagingType(String packagingType)The packaging type of the app block.AppBlock.BuilderpackagingType(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.AppBlock.BuilderpostSetupScriptDetails(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.AppBlock.BuildersetupScriptDetails(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.AppBlock.BuildersourceS3Location(S3Location sourceS3Location)The source S3 location of the app block.AppBlock.Builderstate(String state)The state of the app block.AppBlock.Builderstate(AppBlockState state)The state of the app block.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
AppBlock.Builder name(String 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
AppBlock.Builder arn(String 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
AppBlock.Builder description(String 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
AppBlock.Builder displayName(String 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
AppBlock.Builder sourceS3Location(S3Location 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
default AppBlock.Builder sourceS3Location(Consumer<S3Location.Builder> 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:
sourceS3Location(S3Location)
-
setupScriptDetails
AppBlock.Builder setupScriptDetails(ScriptDetails 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
default AppBlock.Builder setupScriptDetails(Consumer<ScriptDetails.Builder> 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:
setupScriptDetails(ScriptDetails)
-
createdTime
AppBlock.Builder createdTime(Instant 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
AppBlock.Builder postSetupScriptDetails(ScriptDetails 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:
postSetupScriptDetails(ScriptDetails)
-
packagingType
AppBlock.Builder packagingType(String 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,PackagingType
-
packagingType
AppBlock.Builder packagingType(PackagingType 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,PackagingType
-
state
AppBlock.Builder state(String 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:
AppBlockState,AppBlockState
-
state
AppBlock.Builder state(AppBlockState 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:
AppBlockState,AppBlockState
-
appBlockErrors
AppBlock.Builder appBlockErrors(Collection<ErrorDetails> 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
AppBlock.Builder appBlockErrors(ErrorDetails... 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
AppBlock.Builder appBlockErrors(Consumer<ErrorDetails.Builder>... 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 to#appBlockErrors(List.) - 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:
#appBlockErrors(java.util.Collection)
-
-