Class CdkGraphArtifact.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.cdkgraph.CdkGraphArtifact.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CdkGraphArtifact>
- Enclosing interface:
- CdkGraphArtifact
@Stability(Experimental) public static final class CdkGraphArtifact.Builder extends Object implements software.amazon.jsii.Builder<CdkGraphArtifact>
A builder forCdkGraphArtifact
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CdkGraphArtifactbuild()Builds the configured instance.CdkGraphArtifact.Builderdescription(String description)Sets the value ofCdkGraphArtifact.getDescription()CdkGraphArtifact.Builderfilename(String filename)Sets the value ofCdkGraphArtifact.getFilename()CdkGraphArtifact.Builderfilepath(String filepath)Sets the value ofCdkGraphArtifact.getFilepath()CdkGraphArtifact.Builderid(String id)Sets the value ofCdkGraphArtifact.getId()CdkGraphArtifact.Buildersource(String source)Sets the value ofCdkGraphArtifact.getSource()
-
-
-
Method Detail
-
filename
@Stability(Experimental) public CdkGraphArtifact.Builder filename(String filename)
Sets the value ofCdkGraphArtifact.getFilename()- Parameters:
filename- Filename of the artifact. This parameter is required.- Returns:
this
-
filepath
@Stability(Experimental) public CdkGraphArtifact.Builder filepath(String filepath)
Sets the value ofCdkGraphArtifact.getFilepath()- Parameters:
filepath- Full path where artifact is stored. This parameter is required.- Returns:
this
-
id
@Stability(Experimental) public CdkGraphArtifact.Builder id(String id)
Sets the value ofCdkGraphArtifact.getId()- Parameters:
id- The unique type of the artifact. This parameter is required.- Returns:
this
-
source
@Stability(Experimental) public CdkGraphArtifact.Builder source(String source)
Sets the value ofCdkGraphArtifact.getSource()- Parameters:
source- The source of the artifact (such as plugin, or core system, etc). This parameter is required.- Returns:
this
-
description
@Stability(Experimental) public CdkGraphArtifact.Builder description(String description)
Sets the value ofCdkGraphArtifact.getDescription()- Parameters:
description- Description of artifact.- Returns:
this
-
build
@Stability(Experimental) public CdkGraphArtifact build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CdkGraphArtifact>- Returns:
- a new instance of
CdkGraphArtifact - Throws:
NullPointerException- if any required attribute was not provided
-
-