Class CfnImage.LatestVersionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImage.LatestVersionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImage.LatestVersionProperty>
- Enclosing interface:
CfnImage.LatestVersionProperty
@Stability(Stable)
public static final class CfnImage.LatestVersionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImage.LatestVersionProperty>
A builder for
CfnImage.LatestVersionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnImage.LatestVersionProperty.getArn()build()Builds the configured instance.Sets the value ofCfnImage.LatestVersionProperty.getMajor()Sets the value ofCfnImage.LatestVersionProperty.getMinor()Sets the value ofCfnImage.LatestVersionProperty.getPatch()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnImage.LatestVersionProperty.getArn()- Parameters:
arn- The Amazon Resource Name (ARN) of the image.Semantic versioning is included in each object's Amazon Resource Name (ARN), at the level that applies to that object as follows:
- Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are either left off entirely, or they are specified as wildcards, for example: x.x.x.
- Version ARNs have only the first three nodes:
. . - Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.
- Returns:
this
-
major
Sets the value ofCfnImage.LatestVersionProperty.getMajor()- Parameters:
major- The latest version ARN of the created image, with the same major version.- Returns:
this
-
minor
Sets the value ofCfnImage.LatestVersionProperty.getMinor()- Parameters:
minor- The latest version ARN of the created image, with the same minor version.- Returns:
this
-
patch
Sets the value ofCfnImage.LatestVersionProperty.getPatch()- Parameters:
patch- The latest version ARN of the created image, with the same patch version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImage.LatestVersionProperty>- Returns:
- a new instance of
CfnImage.LatestVersionProperty - Throws:
NullPointerException- if any required attribute was not provided
-