Class TestResultListResponse.Item.Goal.Builder
-
- All Implemented Interfaces:
public final class TestResultListResponse.Item.Goal.BuilderA builder for Goal.
-
-
Method Summary
-
-
Method Detail
-
id
final TestResultListResponse.Item.Goal.Builder id(String id)
The test id.
-
id
final TestResultListResponse.Item.Goal.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
commentCount
final TestResultListResponse.Item.Goal.Builder commentCount(Long commentCount)
The number of comments on the test.
-
commentCount
final TestResultListResponse.Item.Goal.Builder commentCount(JsonField<Long> commentCount)
Sets Builder.commentCount to an arbitrary JSON value.
You should usually call Builder.commentCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
creatorId
final TestResultListResponse.Item.Goal.Builder creatorId(String creatorId)
The test creator id.
-
creatorId
final TestResultListResponse.Item.Goal.Builder creatorId(Optional<String> creatorId)
Alias for calling Builder.creatorId with
creatorId.orElse(null).
-
creatorId
final TestResultListResponse.Item.Goal.Builder creatorId(JsonField<String> creatorId)
Sets Builder.creatorId to an arbitrary JSON value.
You should usually call Builder.creatorId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
dateArchived
final TestResultListResponse.Item.Goal.Builder dateArchived(OffsetDateTime dateArchived)
The date the test was archived.
-
dateArchived
final TestResultListResponse.Item.Goal.Builder dateArchived(Optional<OffsetDateTime> dateArchived)
Alias for calling Builder.dateArchived with
dateArchived.orElse(null).
-
dateArchived
final TestResultListResponse.Item.Goal.Builder dateArchived(JsonField<OffsetDateTime> dateArchived)
Sets Builder.dateArchived to an arbitrary JSON value.
You should usually call Builder.dateArchived with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
dateCreated
final TestResultListResponse.Item.Goal.Builder dateCreated(OffsetDateTime dateCreated)
The creation date.
-
dateCreated
final TestResultListResponse.Item.Goal.Builder dateCreated(JsonField<OffsetDateTime> dateCreated)
Sets Builder.dateCreated to an arbitrary JSON value.
You should usually call Builder.dateCreated with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
dateUpdated
final TestResultListResponse.Item.Goal.Builder dateUpdated(OffsetDateTime dateUpdated)
The last updated date.
-
dateUpdated
final TestResultListResponse.Item.Goal.Builder dateUpdated(JsonField<OffsetDateTime> dateUpdated)
Sets Builder.dateUpdated to an arbitrary JSON value.
You should usually call Builder.dateUpdated with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final TestResultListResponse.Item.Goal.Builder description(JsonValue description)
The test description.
-
name
final TestResultListResponse.Item.Goal.Builder name(String name)
The test name.
-
name
final TestResultListResponse.Item.Goal.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.
-
number
final TestResultListResponse.Item.Goal.Builder number(Long number)
The test number.
-
number
final TestResultListResponse.Item.Goal.Builder number(JsonField<Long> number)
Sets Builder.number to an arbitrary JSON value.
You should usually call Builder.number with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
originProjectVersionId
final TestResultListResponse.Item.Goal.Builder originProjectVersionId(String originProjectVersionId)
The project version (commit) id where the test was created.
-
originProjectVersionId
final TestResultListResponse.Item.Goal.Builder originProjectVersionId(Optional<String> originProjectVersionId)
Alias for calling Builder.originProjectVersionId with
originProjectVersionId.orElse(null).
-
originProjectVersionId
final TestResultListResponse.Item.Goal.Builder originProjectVersionId(JsonField<String> originProjectVersionId)
Sets Builder.originProjectVersionId to an arbitrary JSON value.
You should usually call Builder.originProjectVersionId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
subtype
final TestResultListResponse.Item.Goal.Builder subtype(TestResultListResponse.Item.Goal.Subtype subtype)
The test subtype.
-
subtype
final TestResultListResponse.Item.Goal.Builder subtype(JsonField<TestResultListResponse.Item.Goal.Subtype> subtype)
Sets Builder.subtype to an arbitrary JSON value.
You should usually call Builder.subtype with a well-typed Subtype value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
suggested
final TestResultListResponse.Item.Goal.Builder suggested(Boolean suggested)
Whether the test is suggested or user-created.
-
suggested
final TestResultListResponse.Item.Goal.Builder suggested(JsonField<Boolean> suggested)
Sets Builder.suggested to an arbitrary JSON value.
You should usually call Builder.suggested with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
thresholds
final TestResultListResponse.Item.Goal.Builder thresholds(List<TestResultListResponse.Item.Goal.Threshold> thresholds)
-
thresholds
final TestResultListResponse.Item.Goal.Builder thresholds(JsonField<List<TestResultListResponse.Item.Goal.Threshold>> thresholds)
Sets Builder.thresholds to an arbitrary JSON value.
You should usually call Builder.thresholds with a well-typed
List<Threshold>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addThreshold
final TestResultListResponse.Item.Goal.Builder addThreshold(TestResultListResponse.Item.Goal.Threshold threshold)
Adds a single Threshold to thresholds.
-
type
final TestResultListResponse.Item.Goal.Builder type(TestResultListResponse.Item.Goal.Type type)
The test type.
-
type
final TestResultListResponse.Item.Goal.Builder type(JsonField<TestResultListResponse.Item.Goal.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archived
final TestResultListResponse.Item.Goal.Builder archived(Boolean archived)
Whether the test is archived.
-
archived
final TestResultListResponse.Item.Goal.Builder archived(JsonField<Boolean> archived)
Sets Builder.archived to an arbitrary JSON value.
You should usually call Builder.archived with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
delayWindow
final TestResultListResponse.Item.Goal.Builder delayWindow(Double delayWindow)
The delay window in seconds. Only applies to tests that use production data.
-
delayWindow
final TestResultListResponse.Item.Goal.Builder delayWindow(Double delayWindow)
Alias for Builder.delayWindow.
This unboxed primitive overload exists for backwards compatibility.
-
delayWindow
final TestResultListResponse.Item.Goal.Builder delayWindow(Optional<Double> delayWindow)
Alias for calling Builder.delayWindow with
delayWindow.orElse(null).
-
delayWindow
final TestResultListResponse.Item.Goal.Builder delayWindow(JsonField<Double> delayWindow)
Sets Builder.delayWindow to an arbitrary JSON value.
You should usually call Builder.delayWindow with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
evaluationWindow
final TestResultListResponse.Item.Goal.Builder evaluationWindow(Double evaluationWindow)
The evaluation window in seconds. Only applies to tests that use production data.
-
evaluationWindow
final TestResultListResponse.Item.Goal.Builder evaluationWindow(Double evaluationWindow)
Alias for Builder.evaluationWindow.
This unboxed primitive overload exists for backwards compatibility.
-
evaluationWindow
final TestResultListResponse.Item.Goal.Builder evaluationWindow(Optional<Double> evaluationWindow)
Alias for calling Builder.evaluationWindow with
evaluationWindow.orElse(null).
-
evaluationWindow
final TestResultListResponse.Item.Goal.Builder evaluationWindow(JsonField<Double> evaluationWindow)
Sets Builder.evaluationWindow to an arbitrary JSON value.
You should usually call Builder.evaluationWindow with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
usesMlModel
final TestResultListResponse.Item.Goal.Builder usesMlModel(Boolean usesMlModel)
Whether the test uses an ML model.
-
usesMlModel
final TestResultListResponse.Item.Goal.Builder usesMlModel(JsonField<Boolean> usesMlModel)
Sets Builder.usesMlModel to an arbitrary JSON value.
You should usually call Builder.usesMlModel with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
usesProductionData
final TestResultListResponse.Item.Goal.Builder usesProductionData(Boolean usesProductionData)
Whether the test uses production data (monitoring mode only).
-
usesProductionData
final TestResultListResponse.Item.Goal.Builder usesProductionData(JsonField<Boolean> usesProductionData)
Sets Builder.usesProductionData to an arbitrary JSON value.
You should usually call Builder.usesProductionData with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
usesReferenceDataset
final TestResultListResponse.Item.Goal.Builder usesReferenceDataset(Boolean usesReferenceDataset)
Whether the test uses a reference dataset (monitoring mode only).
-
usesReferenceDataset
final TestResultListResponse.Item.Goal.Builder usesReferenceDataset(JsonField<Boolean> usesReferenceDataset)
Sets Builder.usesReferenceDataset to an arbitrary JSON value.
You should usually call Builder.usesReferenceDataset with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
usesTrainingDataset
final TestResultListResponse.Item.Goal.Builder usesTrainingDataset(Boolean usesTrainingDataset)
Whether the test uses a training dataset.
-
usesTrainingDataset
final TestResultListResponse.Item.Goal.Builder usesTrainingDataset(JsonField<Boolean> usesTrainingDataset)
Sets Builder.usesTrainingDataset to an arbitrary JSON value.
You should usually call Builder.usesTrainingDataset with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
usesValidationDataset
final TestResultListResponse.Item.Goal.Builder usesValidationDataset(Boolean usesValidationDataset)
Whether the test uses a validation dataset.
-
usesValidationDataset
final TestResultListResponse.Item.Goal.Builder usesValidationDataset(JsonField<Boolean> usesValidationDataset)
Sets Builder.usesValidationDataset to an arbitrary JSON value.
You should usually call Builder.usesValidationDataset with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TestResultListResponse.Item.Goal.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TestResultListResponse.Item.Goal.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TestResultListResponse.Item.Goal.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TestResultListResponse.Item.Goal.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TestResultListResponse.Item.Goal.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TestResultListResponse.Item.Goal build()
Returns an immutable instance of Goal.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .commentCount() .creatorId() .dateArchived() .dateCreated() .dateUpdated() .description() .name() .number() .originProjectVersionId() .subtype() .suggested() .thresholds() .type()
-
-
-
-