Package software.amazon.awscdk
Class ValidationRuleSource.Builder
java.lang.Object
software.amazon.awscdk.ValidationRuleSource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ValidationRuleSource>
- Enclosing interface:
ValidationRuleSource
@Stability(Stable)
public static final class ValidationRuleSource.Builder
extends Object
implements software.amazon.jsii.Builder<ValidationRuleSource>
A builder for
ValidationRuleSource-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofValidationRuleSource.getContent()Sets the value ofValidationRuleSource.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofValidationRuleSource.getContent()- Parameters:
content- The rule content (e.g., Rego policy source code). This parameter is required.- Returns:
this
-
name
Sets the value ofValidationRuleSource.getName()- Parameters:
name- The name of the rule source. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ValidationRuleSource>- Returns:
- a new instance of
ValidationRuleSource - Throws:
NullPointerException- if any required attribute was not provided
-