Class CloudFormationResourceJson.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_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 for
CloudFormationResourceJson-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCloudFormationResourceJson.getLogicalId()propertyPaths(List<String> propertyPaths) Sets the value ofCloudFormationResourceJson.getPropertyPaths()templatePath(String templatePath) Sets the value ofCloudFormationResourceJson.getTemplatePath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
Sets the value ofCloudFormationResourceJson.getTemplatePath()- Parameters:
templatePath- The path to the CloudFormation template containing this resource. This parameter is required.- 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
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
-