Class StringCheckGrader.Builder
-
- All Implemented Interfaces:
public final class StringCheckGrader.Builder
A builder for StringCheckGrader.
-
-
Method Summary
-
-
Method Detail
-
input
final StringCheckGrader.Builder input(String input)
The input text. This may include template strings.
-
input
final StringCheckGrader.Builder input(JsonField<String> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final StringCheckGrader.Builder name(String name)
The name of the grader.
-
name
final StringCheckGrader.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
operation
final StringCheckGrader.Builder operation(StringCheckGrader.Operation operation)
The string check operation to perform. One of
eq
,ne
,like
, orilike
.
-
operation
final StringCheckGrader.Builder operation(JsonField<StringCheckGrader.Operation> operation)
Sets Builder.operation to an arbitrary JSON value.
You should usually call Builder.operation with a well-typed Operation value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
reference
final StringCheckGrader.Builder reference(String reference)
The reference text. This may include template strings.
-
reference
final StringCheckGrader.Builder reference(JsonField<String> reference)
Sets Builder.reference to an arbitrary JSON value.
You should usually call Builder.reference with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final StringCheckGrader.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("string_check")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final StringCheckGrader.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final StringCheckGrader.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final StringCheckGrader.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final StringCheckGrader.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final StringCheckGrader.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final StringCheckGrader build()
Returns an immutable instance of StringCheckGrader.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.input() .name() .operation() .reference()
-
-
-
-