Class ViolatingConstructJson.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.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 forViolatingConstructJson
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViolatingConstructJsonbuild()Builds the configured instance.ViolatingConstructJson.BuildercloudFormationResource(CloudFormationResourceJson cloudFormationResource)Sets the value ofViolatingConstructJson.getCloudFormationResource()ViolatingConstructJson.BuilderconstructFqn(String constructFqn)Sets the value ofViolatingConstructJson.getConstructFqn()ViolatingConstructJson.BuilderconstructPath(String constructPath)Sets the value ofViolatingConstructJson.getConstructPath()ViolatingConstructJson.BuilderlibraryVersion(String libraryVersion)Sets the value ofViolatingConstructJson.getLibraryVersion()ViolatingConstructJson.BuilderstackTraces(List<String> stackTraces)Sets the value ofViolatingConstructJson.getStackTraces()
-
-
-
Method Detail
-
constructPath
@Stability(Stable) public ViolatingConstructJson.Builder constructPath(String 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
@Stability(Stable) public ViolatingConstructJson.Builder constructFqn(String constructFqn)
Sets the value ofViolatingConstructJson.getConstructFqn()- Parameters:
constructFqn- The fully qualified name of the construct class (includes the library name).- Returns:
this
-
libraryVersion
@Stability(Stable) public ViolatingConstructJson.Builder libraryVersion(String 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
@Stability(Stable) public ViolatingConstructJson.Builder stackTraces(List<String> 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
@Stability(Stable) public ViolatingConstructJson 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
-
-