Class CfnArtifactProps.Builder
java.lang.Object
software.amazon.awscdk.services.securityagent.CfnArtifactProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnArtifactProps>
- Enclosing interface:
CfnArtifactProps
@Stability(Stable)
public static final class CfnArtifactProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnArtifactProps>
A builder for
CfnArtifactProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) Sets the value ofCfnArtifactProps.getAgentSpaceId()artifactContent(String artifactContent) Sets the value ofCfnArtifactProps.getArtifactContent()artifactType(String artifactType) Sets the value ofCfnArtifactProps.getArtifactType()build()Builds the configured instance.Sets the value ofCfnArtifactProps.getFileName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentSpaceId
Sets the value ofCfnArtifactProps.getAgentSpaceId()- Parameters:
agentSpaceId- The unique identifier of the agent space to add the artifact to. This parameter is required.- Returns:
this
-
artifactType
Sets the value ofCfnArtifactProps.getArtifactType()- Parameters:
artifactType- The file type of the artifact. This parameter is required.- Returns:
this
-
fileName
Sets the value ofCfnArtifactProps.getFileName()- Parameters:
fileName- The file name of the artifact. This parameter is required.- Returns:
this
-
artifactContent
Sets the value ofCfnArtifactProps.getArtifactContent()- Parameters:
artifactContent- The binary content of the artifact to upload, encoded as a Base64 string.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnArtifactProps>- Returns:
- a new instance of
CfnArtifactProps - Throws:
NullPointerException- if any required attribute was not provided
-