Class ColumnRestriction.Builder
java.lang.Object
software.amazon.awscdk.services.logs.ColumnRestriction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ColumnRestriction>
- Enclosing interface:
ColumnRestriction
@Stability(Stable)
public static final class ColumnRestriction.Builder
extends Object
implements software.amazon.jsii.Builder<ColumnRestriction>
A builder for
ColumnRestriction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.comparison
(String comparison) Sets the value ofColumnRestriction.getComparison()
numberValue
(Number numberValue) Sets the value ofColumnRestriction.getNumberValue()
stringValue
(String stringValue) Sets the value ofColumnRestriction.getStringValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comparison
Sets the value ofColumnRestriction.getComparison()
- Parameters:
comparison
- Comparison operator to use. This parameter is required.- Returns:
this
-
numberValue
Sets the value ofColumnRestriction.getNumberValue()
- Parameters:
numberValue
- Number value to compare to. Exactly one of 'stringValue' and 'numberValue' must be set.- Returns:
this
-
stringValue
Sets the value ofColumnRestriction.getStringValue()
- Parameters:
stringValue
- String value to compare to. Exactly one of 'stringValue' and 'numberValue' must be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ColumnRestriction>
- Returns:
- a new instance of
ColumnRestriction
- Throws:
NullPointerException
- if any required attribute was not provided
-