Class CfnAsset.AssetFileProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnAsset.AssetFileProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAsset.AssetFileProperty>
- Enclosing interface:
CfnAsset.AssetFileProperty
@Stability(Stable)
public static final class CfnAsset.AssetFileProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAsset.AssetFileProperty>
A builder for
CfnAsset.AssetFileProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contentBytes(String contentBytes) Sets the value ofCfnAsset.AssetFileProperty.getContentBytes()contentText(String contentText) Sets the value ofCfnAsset.AssetFileProperty.getContentText()Sets the value ofCfnAsset.AssetFileProperty.getMetadata()Sets the value ofCfnAsset.AssetFileProperty.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
Sets the value ofCfnAsset.AssetFileProperty.getPath()- Parameters:
path- Path of this file within the asset bundle. This parameter is required.- Returns:
this
-
contentBytes
Sets the value ofCfnAsset.AssetFileProperty.getContentBytes()- Parameters:
contentBytes- Base64-encoded binary contents of the file. Mutually exclusive with ContentText (max 6 MiB).- Returns:
this
-
contentText
Sets the value ofCfnAsset.AssetFileProperty.getContentText()- Parameters:
contentText- UTF-8 text contents of the file. Mutually exclusive with ContentBytes (max 1.5 MiB).- Returns:
this
-
metadata
Sets the value ofCfnAsset.AssetFileProperty.getMetadata()- Parameters:
metadata- Per-file metadata document. Values may be strings, numbers, booleans, or lists of any of those (validated server-side).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAsset.AssetFileProperty>- Returns:
- a new instance of
CfnAsset.AssetFileProperty - Throws:
NullPointerException- if any required attribute was not provided
-