Class TestCreateParams.Builder
-
- All Implemented Interfaces:
public final class TestCreateParams.BuilderA builder for TestCreateParams.
-
-
Method Summary
-
-
Method Detail
-
projectId
final TestCreateParams.Builder projectId(String projectId)
-
projectId
final TestCreateParams.Builder projectId(Optional<String> projectId)
Alias for calling Builder.projectId with
projectId.orElse(null).
-
body
final TestCreateParams.Builder body(TestCreateParams.Body body)
Sets the entire request body.
This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead:
-
id
final TestCreateParams.Builder id(String id)
The test id.
-
id
final TestCreateParams.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 TestCreateParams.Builder commentCount(Long commentCount)
The number of comments on the test.
-
commentCount
final TestCreateParams.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 TestCreateParams.Builder creatorId(String creatorId)
The test creator id.
-
creatorId
final TestCreateParams.Builder creatorId(Optional<String> creatorId)
Alias for calling Builder.creatorId with
creatorId.orElse(null).
-
creatorId
final TestCreateParams.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 TestCreateParams.Builder dateArchived(OffsetDateTime dateArchived)
The date the test was archived.
-
dateArchived
final TestCreateParams.Builder dateArchived(Optional<OffsetDateTime> dateArchived)
Alias for calling Builder.dateArchived with
dateArchived.orElse(null).
-
dateArchived
final TestCreateParams.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 TestCreateParams.Builder dateCreated(OffsetDateTime dateCreated)
The creation date.
-
dateCreated
final TestCreateParams.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 TestCreateParams.Builder dateUpdated(OffsetDateTime dateUpdated)
The last updated date.
-
dateUpdated
final TestCreateParams.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 TestCreateParams.Builder description(JsonValue description)
The test description.
-
name
final TestCreateParams.Builder name(String name)
The test name.
-
name
final TestCreateParams.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 TestCreateParams.Builder number(Long number)
The test number.
-
number
final TestCreateParams.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 TestCreateParams.Builder originProjectVersionId(String originProjectVersionId)
The project version (commit) id where the test was created.
-
originProjectVersionId
final TestCreateParams.Builder originProjectVersionId(Optional<String> originProjectVersionId)
Alias for calling Builder.originProjectVersionId with
originProjectVersionId.orElse(null).
-
originProjectVersionId
final TestCreateParams.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 TestCreateParams.Builder subtype(TestCreateParams.Subtype subtype)
The test subtype.
-
subtype
final TestCreateParams.Builder subtype(JsonField<TestCreateParams.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 TestCreateParams.Builder suggested(Boolean suggested)
Whether the test is suggested or user-created.
-
suggested
final TestCreateParams.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 TestCreateParams.Builder thresholds(List<TestCreateParams.Threshold> thresholds)
-
thresholds
final TestCreateParams.Builder thresholds(JsonField<List<TestCreateParams.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 TestCreateParams.Builder addThreshold(TestCreateParams.Threshold threshold)
Adds a single Threshold to thresholds.
-
type
final TestCreateParams.Builder type(TestCreateParams.Type type)
The test type.
-
type
final TestCreateParams.Builder type(JsonField<TestCreateParams.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 TestCreateParams.Builder archived(Boolean archived)
Whether the test is archived.
-
archived
final TestCreateParams.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.
-
defaultToAllPipelines
final TestCreateParams.Builder defaultToAllPipelines(Boolean defaultToAllPipelines)
Whether to apply the test to all pipelines (data sources) or to a specific set of pipelines. Only applies to tests that use production data.
-
defaultToAllPipelines
final TestCreateParams.Builder defaultToAllPipelines(Boolean defaultToAllPipelines)
Alias for Builder.defaultToAllPipelines.
This unboxed primitive overload exists for backwards compatibility.
-
defaultToAllPipelines
final TestCreateParams.Builder defaultToAllPipelines(Optional<Boolean> defaultToAllPipelines)
Alias for calling Builder.defaultToAllPipelines with
defaultToAllPipelines.orElse(null).
-
defaultToAllPipelines
final TestCreateParams.Builder defaultToAllPipelines(JsonField<Boolean> defaultToAllPipelines)
Sets Builder.defaultToAllPipelines to an arbitrary JSON value.
You should usually call Builder.defaultToAllPipelines 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 TestCreateParams.Builder delayWindow(Double delayWindow)
The delay window in seconds. Only applies to tests that use production data.
-
delayWindow
final TestCreateParams.Builder delayWindow(Double delayWindow)
Alias for Builder.delayWindow.
This unboxed primitive overload exists for backwards compatibility.
-
delayWindow
final TestCreateParams.Builder delayWindow(Optional<Double> delayWindow)
Alias for calling Builder.delayWindow with
delayWindow.orElse(null).
-
delayWindow
final TestCreateParams.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 TestCreateParams.Builder evaluationWindow(Double evaluationWindow)
The evaluation window in seconds. Only applies to tests that use production data.
-
evaluationWindow
final TestCreateParams.Builder evaluationWindow(Double evaluationWindow)
Alias for Builder.evaluationWindow.
This unboxed primitive overload exists for backwards compatibility.
-
evaluationWindow
final TestCreateParams.Builder evaluationWindow(Optional<Double> evaluationWindow)
Alias for calling Builder.evaluationWindow with
evaluationWindow.orElse(null).
-
evaluationWindow
final TestCreateParams.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.
-
excludePipelines
final TestCreateParams.Builder excludePipelines(List<String> excludePipelines)
Array of pipelines (data sources) to which the test should not be applied. Only applies to tests that use production data.
-
excludePipelines
final TestCreateParams.Builder excludePipelines(Optional<List<String>> excludePipelines)
Alias for calling Builder.excludePipelines with
excludePipelines.orElse(null).
-
excludePipelines
final TestCreateParams.Builder excludePipelines(JsonField<List<String>> excludePipelines)
Sets Builder.excludePipelines to an arbitrary JSON value.
You should usually call Builder.excludePipelines with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addExcludePipeline
final TestCreateParams.Builder addExcludePipeline(String excludePipeline)
Adds a single String to excludePipelines.
-
includeHistoricalData
final TestCreateParams.Builder includeHistoricalData(Boolean includeHistoricalData)
Whether to include historical data in the test result. Only applies to tests that use production data.
-
includeHistoricalData
final TestCreateParams.Builder includeHistoricalData(Boolean includeHistoricalData)
Alias for Builder.includeHistoricalData.
This unboxed primitive overload exists for backwards compatibility.
-
includeHistoricalData
final TestCreateParams.Builder includeHistoricalData(Optional<Boolean> includeHistoricalData)
Alias for calling Builder.includeHistoricalData with
includeHistoricalData.orElse(null).
-
includeHistoricalData
final TestCreateParams.Builder includeHistoricalData(JsonField<Boolean> includeHistoricalData)
Sets Builder.includeHistoricalData to an arbitrary JSON value.
You should usually call Builder.includeHistoricalData with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
includePipelines
final TestCreateParams.Builder includePipelines(List<String> includePipelines)
Array of pipelines (data sources) to which the test should be applied. Only applies to tests that use production data.
-
includePipelines
final TestCreateParams.Builder includePipelines(Optional<List<String>> includePipelines)
Alias for calling Builder.includePipelines with
includePipelines.orElse(null).
-
includePipelines
final TestCreateParams.Builder includePipelines(JsonField<List<String>> includePipelines)
Sets Builder.includePipelines to an arbitrary JSON value.
You should usually call Builder.includePipelines with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addIncludePipeline
final TestCreateParams.Builder addIncludePipeline(String includePipeline)
Adds a single String to includePipelines.
-
usesMlModel
final TestCreateParams.Builder usesMlModel(Boolean usesMlModel)
Whether the test uses an ML model.
-
usesMlModel
final TestCreateParams.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 TestCreateParams.Builder usesProductionData(Boolean usesProductionData)
Whether the test uses production data (monitoring mode only).
-
usesProductionData
final TestCreateParams.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 TestCreateParams.Builder usesReferenceDataset(Boolean usesReferenceDataset)
Whether the test uses a reference dataset (monitoring mode only).
-
usesReferenceDataset
final TestCreateParams.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 TestCreateParams.Builder usesTrainingDataset(Boolean usesTrainingDataset)
Whether the test uses a training dataset.
-
usesTrainingDataset
final TestCreateParams.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 TestCreateParams.Builder usesValidationDataset(Boolean usesValidationDataset)
Whether the test uses a validation dataset.
-
usesValidationDataset
final TestCreateParams.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.
-
additionalBodyProperties
final TestCreateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final TestCreateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final TestCreateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final TestCreateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final TestCreateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
additionalHeaders
final TestCreateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final TestCreateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final TestCreateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final TestCreateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final TestCreateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final TestCreateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final TestCreateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final TestCreateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final TestCreateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final TestCreateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final TestCreateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final TestCreateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final TestCreateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final TestCreateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final TestCreateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final TestCreateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final TestCreateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final TestCreateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final TestCreateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final TestCreateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final TestCreateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final TestCreateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final TestCreateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final TestCreateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final TestCreateParams build()
Returns an immutable instance of TestCreateParams.
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()
-
-
-
-