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