Class ViolatingConstructJson.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_schema.ViolatingConstructJson.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ViolatingConstructJson>
- Enclosing interface:
ViolatingConstructJson
@Stability(Stable)
public static final class ViolatingConstructJson.Builder
extends Object
implements software.amazon.jsii.Builder<ViolatingConstructJson>
A builder for
ViolatingConstructJson-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudFormationResource(CloudFormationResourceJson cloudFormationResource) Sets the value ofViolatingConstructJson.getCloudFormationResource()constructFqn(String constructFqn) Sets the value ofViolatingConstructJson.getConstructFqn()constructPath(String constructPath) Sets the value ofViolatingConstructJson.getConstructPath()libraryVersion(String libraryVersion) Sets the value ofViolatingConstructJson.getLibraryVersion()stackTraces(List<String> stackTraces) Sets the value ofViolatingConstructJson.getStackTraces()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
constructPath
Sets the value ofViolatingConstructJson.getConstructPath()- Parameters:
constructPath- The construct path as defined in the application. This parameter is required.- Returns:
this
-
cloudFormationResource
@Stability(Stable) public ViolatingConstructJson.Builder cloudFormationResource(CloudFormationResourceJson cloudFormationResource) Sets the value ofViolatingConstructJson.getCloudFormationResource()- Parameters:
cloudFormationResource- If this construct violation regards a CloudFormation resource, a reference to the resource details.- Returns:
this
-
constructFqn
Sets the value ofViolatingConstructJson.getConstructFqn()- Parameters:
constructFqn- The fully qualified name of the construct class (includes the library name).- Returns:
this
-
libraryVersion
Sets the value ofViolatingConstructJson.getLibraryVersion()- Parameters:
libraryVersion- The version of the library that contains this construct. The library name is the first component of the construct FQN.- Returns:
this
-
stackTraces
Sets the value ofViolatingConstructJson.getStackTraces()- Parameters:
stackTraces- Stack traces associated with this violation. This can be all the stack traces where a violating property got its value, or just the construct creation stack trace.Every element of the array is a stack trace, where each stack trace is a
\n-delimited string.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ViolatingConstructJson>- Returns:
- a new instance of
ViolatingConstructJson - Throws:
NullPointerException- if any required attribute was not provided
-