Class CfnPackageVersionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.panorama.mixins.CfnPackageVersionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPackageVersionMixinProps>
- Enclosing interface:
CfnPackageVersionMixinProps
@Stability(Stable)
public static final class CfnPackageVersionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPackageVersionMixinProps>
A builder for
CfnPackageVersionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.markLatest(Boolean markLatest) Sets the value ofCfnPackageVersionMixinProps.getMarkLatest()markLatest(IResolvable markLatest) Sets the value ofCfnPackageVersionMixinProps.getMarkLatest()ownerAccount(String ownerAccount) Sets the value ofCfnPackageVersionMixinProps.getOwnerAccount()Sets the value ofCfnPackageVersionMixinProps.getPackageId()packageVersion(String packageVersion) Sets the value ofCfnPackageVersionMixinProps.getPackageVersion()patchVersion(String patchVersion) Sets the value ofCfnPackageVersionMixinProps.getPatchVersion()updatedLatestPatchVersion(String updatedLatestPatchVersion) Sets the value ofCfnPackageVersionMixinProps.getUpdatedLatestPatchVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
markLatest
Sets the value ofCfnPackageVersionMixinProps.getMarkLatest()- Parameters:
markLatest- Whether to mark the new version as the latest version.- Returns:
this
-
markLatest
Sets the value ofCfnPackageVersionMixinProps.getMarkLatest()- Parameters:
markLatest- Whether to mark the new version as the latest version.- Returns:
this
-
ownerAccount
Sets the value ofCfnPackageVersionMixinProps.getOwnerAccount()- Parameters:
ownerAccount- An owner account.- Returns:
this
-
packageId
Sets the value ofCfnPackageVersionMixinProps.getPackageId()- Parameters:
packageId- A package ID.- Returns:
this
-
packageVersion
Sets the value ofCfnPackageVersionMixinProps.getPackageVersion()- Parameters:
packageVersion- A package version.- Returns:
this
-
patchVersion
Sets the value ofCfnPackageVersionMixinProps.getPatchVersion()- Parameters:
patchVersion- A patch version.- Returns:
this
-
updatedLatestPatchVersion
@Stability(Stable) public CfnPackageVersionMixinProps.Builder updatedLatestPatchVersion(String updatedLatestPatchVersion) Sets the value ofCfnPackageVersionMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnPackageVersionMixinProps>- Returns:
- a new instance of
CfnPackageVersionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-