Interface AssetFile.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AssetFile.Builder,,AssetFile> SdkBuilder<AssetFile.Builder,,AssetFile> SdkPojo
- Enclosing class:
AssetFile
@Mutable
@NotThreadSafe
public static interface AssetFile.Builder
extends SdkPojo, CopyableBuilder<AssetFile.Builder,AssetFile>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AssetFile.Buildercontent(Consumer<AssetFileBody.Builder> content) The content of this filecontent(AssetFileBody content) The content of this fileTimestamp when this file was createdThe metadata for this fileThe path of this file within the assetTimestamp when this file was last updatedThe asset version this file belongs toMethods 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 this file within the asset
- Parameters:
path- The path of this file within the asset- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of this file
- Parameters:
content- The content of this file- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of this file
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 tocontent(AssetFileBody).- Parameters:
content- 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
The metadata for this file
- Parameters:
metadata- The metadata for this file- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The asset version this file belongs to
- Parameters:
version- The asset version this file belongs to- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
Timestamp when this file was created
- Parameters:
createdAt- Timestamp when this file was created- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
Timestamp when this file was last updated
- Parameters:
updatedAt- Timestamp when this file was last updated- Returns:
- Returns a reference to this object so that method calls can be chained together.
-