Class CfnPackageVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.panorama.CfnPackageVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPackageVersionProps>
- Enclosing interface:
CfnPackageVersionProps
@Stability(Stable)
public static final class CfnPackageVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPackageVersionProps>
A builder for
CfnPackageVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.markLatest
(Boolean markLatest) Sets the value ofCfnPackageVersionProps.getMarkLatest()
markLatest
(IResolvable markLatest) Sets the value ofCfnPackageVersionProps.getMarkLatest()
ownerAccount
(String ownerAccount) Sets the value ofCfnPackageVersionProps.getOwnerAccount()
Sets the value ofCfnPackageVersionProps.getPackageId()
packageVersion
(String packageVersion) Sets the value ofCfnPackageVersionProps.getPackageVersion()
patchVersion
(String patchVersion) Sets the value ofCfnPackageVersionProps.getPatchVersion()
updatedLatestPatchVersion
(String updatedLatestPatchVersion) Sets the value ofCfnPackageVersionProps.getUpdatedLatestPatchVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
packageId
Sets the value ofCfnPackageVersionProps.getPackageId()
- Parameters:
packageId
- A package ID. This parameter is required.- Returns:
this
-
packageVersion
Sets the value ofCfnPackageVersionProps.getPackageVersion()
- Parameters:
packageVersion
- A package version. This parameter is required.- Returns:
this
-
patchVersion
Sets the value ofCfnPackageVersionProps.getPatchVersion()
- Parameters:
patchVersion
- A patch version. This parameter is required.- Returns:
this
-
markLatest
Sets the value ofCfnPackageVersionProps.getMarkLatest()
- Parameters:
markLatest
- Whether to mark the new version as the latest version.- Returns:
this
-
markLatest
Sets the value ofCfnPackageVersionProps.getMarkLatest()
- Parameters:
markLatest
- Whether to mark the new version as the latest version.- Returns:
this
-
ownerAccount
Sets the value ofCfnPackageVersionProps.getOwnerAccount()
- Parameters:
ownerAccount
- An owner account.- Returns:
this
-
updatedLatestPatchVersion
@Stability(Stable) public CfnPackageVersionProps.Builder updatedLatestPatchVersion(String updatedLatestPatchVersion) Sets the value ofCfnPackageVersionProps.getUpdatedLatestPatchVersion()
- Parameters:
updatedLatestPatchVersion
- If the version was marked latest, the new version to maker as latest.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPackageVersionProps>
- Returns:
- a new instance of
CfnPackageVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-