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 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

      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 the S3Location.Builder avoiding the need to create one manually via S3Location.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sourceS3Location(S3Location).

      Parameters:
      sourceS3Location - a consumer that will call methods on S3Location.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 CUSTOM.

      This is a convenience method that creates an instance of the ScriptDetails.Builder avoiding the need to create one manually via ScriptDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to setupScriptDetails(ScriptDetails).

      Parameters:
      setupScriptDetails - a consumer that will call methods on ScriptDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 APPSTREAM2.

      This is a convenience method that creates an instance of the ScriptDetails.Builder avoiding the need to create one manually via ScriptDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to postSetupScriptDetails(ScriptDetails).

      Parameters:
      postSetupScriptDetails - a consumer that will call methods on ScriptDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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:
    • state

      AppBlock.Builder state(String state)

      The state of the app block.

      An app block with AppStream 2.0 packaging will be in the INACTIVE state 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 becomes ACTIVE.

      Custom app blocks are always in the ACTIVE state 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 INACTIVE state 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 becomes ACTIVE.

      Custom app blocks are always in the ACTIVE state 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 INACTIVE state 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 becomes ACTIVE.

      Custom app blocks are always in the ACTIVE state 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 INACTIVE state 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 becomes ACTIVE.

      Custom app blocks are always in the ACTIVE state 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

      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 the ErrorDetails.Builder avoiding the need to create one manually via ErrorDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to appBlockErrors(List<ErrorDetails>).

      Parameters:
      appBlockErrors - a consumer that will call methods on ErrorDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: