Class CfnAssetPropsMixin.AssetFileProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.devopsagent.CfnAssetPropsMixin.AssetFileProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetPropsMixin.AssetFileProperty>
- Enclosing interface:
CfnAssetPropsMixin.AssetFileProperty
@Stability(Stable)
public static final class CfnAssetPropsMixin.AssetFileProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetPropsMixin.AssetFileProperty>
A builder for
CfnAssetPropsMixin.AssetFileProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contentBytes(String contentBytes) Sets the value ofCfnAssetPropsMixin.AssetFileProperty.getContentBytes()contentText(String contentText) Sets the value ofCfnAssetPropsMixin.AssetFileProperty.getContentText()Sets the value ofCfnAssetPropsMixin.AssetFileProperty.getMetadata()Sets the value ofCfnAssetPropsMixin.AssetFileProperty.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentBytes
@Stability(Stable) public CfnAssetPropsMixin.AssetFileProperty.Builder contentBytes(String contentBytes) Sets the value ofCfnAssetPropsMixin.AssetFileProperty.getContentBytes()- Parameters:
contentBytes- Base64-encoded binary contents of the file. Mutually exclusive with ContentText (max 6 MiB).- Returns:
this
-
contentText
@Stability(Stable) public CfnAssetPropsMixin.AssetFileProperty.Builder contentText(String contentText) Sets the value ofCfnAssetPropsMixin.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 ofCfnAssetPropsMixin.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
-
path
Sets the value ofCfnAssetPropsMixin.AssetFileProperty.getPath()- Parameters:
path- Path of this file within the asset bundle.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssetPropsMixin.AssetFileProperty>- Returns:
- a new instance of
CfnAssetPropsMixin.AssetFileProperty - Throws:
NullPointerException- if any required attribute was not provided
-