Class CfnComponentVersion.ComponentDependencyRequirementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.ComponentDependencyRequirementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentVersion.ComponentDependencyRequirementProperty>
- Enclosing interface:
CfnComponentVersion.ComponentDependencyRequirementProperty
@Stability(Stable)
public static final class CfnComponentVersion.ComponentDependencyRequirementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentVersion.ComponentDependencyRequirementProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dependencyType
(String dependencyType) versionRequirement
(String versionRequirement)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dependencyType
@Stability(Stable) public CfnComponentVersion.ComponentDependencyRequirementProperty.Builder dependencyType(String dependencyType) - Parameters:
dependencyType
- The type of this dependency. Choose from the following options:.SOFT
– The component doesn't restart if the dependency changes state.HARD
– The component restarts if the dependency changes state.
Default:
HARD
- Returns:
this
-
versionRequirement
@Stability(Stable) public CfnComponentVersion.ComponentDependencyRequirementProperty.Builder versionRequirement(String versionRequirement) Sets the value ofCfnComponentVersion.ComponentDependencyRequirementProperty.getVersionRequirement()
- Parameters:
versionRequirement
- The component version requirement for the component dependency. AWS IoT Greengrass uses semantic version constraints. For more information, see Semantic Versioning .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponentVersion.ComponentDependencyRequirementProperty>
- Returns:
- a new instance of
CfnComponentVersion.ComponentDependencyRequirementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-