Package software.amazon.awscdk
Class PolicyViolatingResourceBeta1.Builder
java.lang.Object
software.amazon.awscdk.PolicyViolatingResourceBeta1.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PolicyViolatingResourceBeta1>
- Enclosing interface:
PolicyViolatingResourceBeta1
@Stability(Stable)
public static final class PolicyViolatingResourceBeta1.Builder
extends Object
implements software.amazon.jsii.Builder<PolicyViolatingResourceBeta1>
A builder for
PolicyViolatingResourceBeta1-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofPolicyViolatingResourceBeta1.getLocations()resourceLogicalId(String resourceLogicalId) Sets the value ofPolicyViolatingResourceBeta1.getResourceLogicalId()templatePath(String templatePath) Sets the value ofPolicyViolatingResourceBeta1.getTemplatePath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
locations
Sets the value ofPolicyViolatingResourceBeta1.getLocations()- Parameters:
locations- The locations in the CloudFormation template that pose the violations. This parameter is required.- Returns:
this
-
resourceLogicalId
@Stability(Stable) public PolicyViolatingResourceBeta1.Builder resourceLogicalId(String resourceLogicalId) Sets the value ofPolicyViolatingResourceBeta1.getResourceLogicalId()- Parameters:
resourceLogicalId- The logical ID of the resource in the CloudFormation template. This parameter is required.- Returns:
this
-
templatePath
Sets the value ofPolicyViolatingResourceBeta1.getTemplatePath()- Parameters:
templatePath- The path to the CloudFormation template that contains this resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PolicyViolatingResourceBeta1>- Returns:
- a new instance of
PolicyViolatingResourceBeta1 - Throws:
NullPointerException- if any required attribute was not provided
-