Interface AssetFileContent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AssetFileContent.Builder,,AssetFileContent> SdkBuilder<AssetFileContent.Builder,,AssetFileContent> SdkPojo
- Enclosing class:
AssetFileContent
@Mutable
@NotThreadSafe
public static interface AssetFileContent.Builder
extends SdkPojo, CopyableBuilder<AssetFileContent.Builder,AssetFileContent>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AssetFileContent.Builderbody(Consumer<AssetFileBody.Builder> body) The file contentbody(AssetFileBody body) The file contentOptional metadata for this fileThe path of the file within the assetMethods 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
-
path
The path of the file within the asset
- Parameters:
path- The path of the file within the asset- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
The file content
- Parameters:
body- The file content- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
The file content
This is a convenience method that creates an instance of theAssetFileBody.Builderavoiding the need to create one manually viaAssetFileBody.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobody(AssetFileBody).- Parameters:
body- a consumer that will call methods onAssetFileBody.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Optional metadata for this file
- Parameters:
metadata- Optional metadata for this file- Returns:
- Returns a reference to this object so that method calls can be chained together.
-