Class CfnComponent.LatestVersionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnComponent.LatestVersionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponent.LatestVersionProperty>
- Enclosing interface:
CfnComponent.LatestVersionProperty
@Stability(Stable)
public static final class CfnComponent.LatestVersionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponent.LatestVersionProperty>
A builder for
CfnComponent.LatestVersionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnComponent.LatestVersionProperty.getArn()build()Builds the configured instance.Sets the value ofCfnComponent.LatestVersionProperty.getMajor()Sets the value ofCfnComponent.LatestVersionProperty.getMinor()Sets the value ofCfnComponent.LatestVersionProperty.getPatch()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnComponent.LatestVersionProperty.getArn()- Parameters:
arn- The Amazon Resource Name (ARN) of the component.- Returns:
this
-
major
Sets the value ofCfnComponent.LatestVersionProperty.getMajor()- Parameters:
major- The latest version ARN of the created component, with the same major version.- Returns:
this
-
minor
Sets the value ofCfnComponent.LatestVersionProperty.getMinor()- Parameters:
minor- The latest version ARN of the created component, with the same minor version.- Returns:
this
-
patch
Sets the value ofCfnComponent.LatestVersionProperty.getPatch()- Parameters:
patch- The latest version ARN of the created component, with the same patch version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComponent.LatestVersionProperty>- Returns:
- a new instance of
CfnComponent.LatestVersionProperty - Throws:
NullPointerException- if any required attribute was not provided
-