Interface AssetContent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AssetContent.Builder,,AssetContent> SdkBuilder<AssetContent.Builder,,AssetContent> SdkPojo
- Enclosing class:
AssetContent
@Mutable
@NotThreadSafe
public static interface AssetContent.Builder
extends SdkPojo, CopyableBuilder<AssetContent.Builder,AssetContent>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AssetContent.Builderfile(Consumer<AssetFileContent.Builder> file) A single file with path and contentfile(AssetFileContent file) A single file with path and contentdefault AssetContent.BuilderA zip file containing multiple fileszip(AssetZipContent zip) A zip file containing multiple filesMethods 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
-
file
A single file with path and content
- Parameters:
file- A single file with path and content- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
file
A single file with path and content
This is a convenience method that creates an instance of theAssetFileContent.Builderavoiding the need to create one manually viaAssetFileContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofile(AssetFileContent).- Parameters:
file- a consumer that will call methods onAssetFileContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
zip
A zip file containing multiple files
- Parameters:
zip- A zip file containing multiple files- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zip
A zip file containing multiple files
This is a convenience method that creates an instance of theAssetZipContent.Builderavoiding the need to create one manually viaAssetZipContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tozip(AssetZipContent).- Parameters:
zip- a consumer that will call methods onAssetZipContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-