Class CfnSoftwarePackageVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnSoftwarePackageVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSoftwarePackageVersionProps>
- Enclosing interface:
CfnSoftwarePackageVersionProps
@Stability(Stable)
public static final class CfnSoftwarePackageVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSoftwarePackageVersionProps>
A builder for
CfnSoftwarePackageVersionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifact(IResolvable artifact) Sets the value ofCfnSoftwarePackageVersionProps.getArtifact()Sets the value ofCfnSoftwarePackageVersionProps.getArtifact()attributes(Map<String, String> attributes) Sets the value ofCfnSoftwarePackageVersionProps.getAttributes()attributes(IResolvable attributes) Sets the value ofCfnSoftwarePackageVersionProps.getAttributes()build()Builds the configured instance.description(String description) Sets the value ofCfnSoftwarePackageVersionProps.getDescription()packageName(String packageName) Sets the value ofCfnSoftwarePackageVersionProps.getPackageName()Sets the value ofCfnSoftwarePackageVersionProps.getRecipe()sbom(IResolvable sbom) Sets the value ofCfnSoftwarePackageVersionProps.getSbom()Sets the value ofCfnSoftwarePackageVersionProps.getSbom()Sets the value ofCfnSoftwarePackageVersionProps.getTags()versionName(String versionName) Sets the value ofCfnSoftwarePackageVersionProps.getVersionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
packageName
Sets the value ofCfnSoftwarePackageVersionProps.getPackageName()- Parameters:
packageName- The name of the associated software package. This parameter is required.- Returns:
this
-
artifact
Sets the value ofCfnSoftwarePackageVersionProps.getArtifact()- Parameters:
artifact- The artifact location of the package version.- Returns:
this
-
artifact
@Stability(Stable) public CfnSoftwarePackageVersionProps.Builder artifact(CfnSoftwarePackageVersion.PackageVersionArtifactProperty artifact) Sets the value ofCfnSoftwarePackageVersionProps.getArtifact()- Parameters:
artifact- The artifact location of the package version.- Returns:
this
-
attributes
@Stability(Stable) public CfnSoftwarePackageVersionProps.Builder attributes(Map<String, String> attributes) Sets the value ofCfnSoftwarePackageVersionProps.getAttributes()- Parameters:
attributes- Metadata that can be used to define a package version’s configuration. For example, the S3 file location, configuration options that are being sent to the device or fleet.The combined size of all the attributes on a package version is limited to 3KB.
- Returns:
this
-
attributes
Sets the value ofCfnSoftwarePackageVersionProps.getAttributes()- Parameters:
attributes- Metadata that can be used to define a package version’s configuration. For example, the S3 file location, configuration options that are being sent to the device or fleet.The combined size of all the attributes on a package version is limited to 3KB.
- Returns:
this
-
description
Sets the value ofCfnSoftwarePackageVersionProps.getDescription()- Parameters:
description- A summary of the package version being created. This can be used to outline the package's contents or purpose.- Returns:
this
-
recipe
Sets the value ofCfnSoftwarePackageVersionProps.getRecipe()- Parameters:
recipe- The inline json job document associated with a software package version.- Returns:
this
-
sbom
Sets the value ofCfnSoftwarePackageVersionProps.getSbom()- Parameters:
sbom- The sbom zip archive location of the package version.- Returns:
this
-
sbom
@Stability(Stable) public CfnSoftwarePackageVersionProps.Builder sbom(CfnSoftwarePackageVersion.SbomProperty sbom) Sets the value ofCfnSoftwarePackageVersionProps.getSbom()- Parameters:
sbom- The sbom zip archive location of the package version.- Returns:
this
-
tags
Sets the value ofCfnSoftwarePackageVersionProps.getTags()- Parameters:
tags- Metadata that can be used to manage the package version.- Returns:
this
-
versionName
Sets the value ofCfnSoftwarePackageVersionProps.getVersionName()- Parameters:
versionName- The name of the new package version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSoftwarePackageVersionProps>- Returns:
- a new instance of
CfnSoftwarePackageVersionProps - Throws:
NullPointerException- if any required attribute was not provided
-