Class CfnStack.ChefConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnStack.ChefConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStack.ChefConfigurationProperty>
- Enclosing interface:
CfnStack.ChefConfigurationProperty
@Stability(Stable)
public static final class CfnStack.ChefConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStack.ChefConfigurationProperty>
A builder for
CfnStack.ChefConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionberkshelfVersion
(String berkshelfVersion) Sets the value ofCfnStack.ChefConfigurationProperty.getBerkshelfVersion()
build()
Builds the configured instance.manageBerkshelf
(Boolean manageBerkshelf) Sets the value ofCfnStack.ChefConfigurationProperty.getManageBerkshelf()
manageBerkshelf
(IResolvable manageBerkshelf) Sets the value ofCfnStack.ChefConfigurationProperty.getManageBerkshelf()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
berkshelfVersion
@Stability(Stable) public CfnStack.ChefConfigurationProperty.Builder berkshelfVersion(String berkshelfVersion) Sets the value ofCfnStack.ChefConfigurationProperty.getBerkshelfVersion()
- Parameters:
berkshelfVersion
- The Berkshelf version.- Returns:
this
-
manageBerkshelf
@Stability(Stable) public CfnStack.ChefConfigurationProperty.Builder manageBerkshelf(Boolean manageBerkshelf) Sets the value ofCfnStack.ChefConfigurationProperty.getManageBerkshelf()
- Parameters:
manageBerkshelf
- Whether to enable Berkshelf.- Returns:
this
-
manageBerkshelf
@Stability(Stable) public CfnStack.ChefConfigurationProperty.Builder manageBerkshelf(IResolvable manageBerkshelf) Sets the value ofCfnStack.ChefConfigurationProperty.getManageBerkshelf()
- Parameters:
manageBerkshelf
- Whether to enable Berkshelf.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStack.ChefConfigurationProperty>
- Returns:
- a new instance of
CfnStack.ChefConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-