Class CloudFormationResourceJson.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.CloudFormationResourceJson.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFormationResourceJson>
- Enclosing interface:
- CloudFormationResourceJson
@Stability(Stable) public static final class CloudFormationResourceJson.Builder extends Object implements software.amazon.jsii.Builder<CloudFormationResourceJson>
A builder forCloudFormationResourceJson
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudFormationResourceJsonbuild()Builds the configured instance.CloudFormationResourceJson.BuilderlogicalId(String logicalId)Sets the value ofCloudFormationResourceJson.getLogicalId()CloudFormationResourceJson.BuilderpropertyPaths(List<String> propertyPaths)Sets the value ofCloudFormationResourceJson.getPropertyPaths()CloudFormationResourceJson.BuildertemplatePath(String templatePath)Sets the value ofCloudFormationResourceJson.getTemplatePath()
-
-
-
Method Detail
-
logicalId
@Stability(Stable) public CloudFormationResourceJson.Builder logicalId(String logicalId)
Sets the value ofCloudFormationResourceJson.getLogicalId()- Parameters:
logicalId- The logical ID of the resource in the CloudFormation template. This parameter is required.- Returns:
this
-
templatePath
@Stability(Stable) public CloudFormationResourceJson.Builder templatePath(String templatePath)
Sets the value ofCloudFormationResourceJson.getTemplatePath()- Parameters:
templatePath- The path to the CloudFormation template containing this resource. This parameter is required. This path is relative to the Cloud Assembly root directory.- Returns:
this
-
propertyPaths
@Stability(Stable) public CloudFormationResourceJson.Builder propertyPaths(List<String> propertyPaths)
Sets the value ofCloudFormationResourceJson.getPropertyPaths()- Parameters:
propertyPaths- Properties within the construct where the violation was detected. Either a single component, in which case it regards a top-level property name, or a JSON path (starting with$.) to indicate a deeper property.- Returns:
this
-
build
@Stability(Stable) public CloudFormationResourceJson build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudFormationResourceJson>- Returns:
- a new instance of
CloudFormationResourceJson - Throws:
NullPointerException- if any required attribute was not provided
-
-