Class BetaTelemetryDestinationTestResponse.Builder
-
- All Implemented Interfaces:
public final class BetaTelemetryDestinationTestResponse.BuilderA builder for BetaTelemetryDestinationTestResponse.
-
-
Method Summary
-
-
Method Detail
-
result
final BetaTelemetryDestinationTestResponse.Builder result(BetaTelemetryDestinationTestResult result)
How the test went:
successwhen the destination answered with a 2xx status, elsefailurewith the reason.
-
result
final BetaTelemetryDestinationTestResponse.Builder result(JsonField<BetaTelemetryDestinationTestResult> result)
Sets Builder.result to an arbitrary JSON value.
You should usually call Builder.result with a well-typed BetaTelemetryDestinationTestResult value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
result
final BetaTelemetryDestinationTestResponse.Builder result(BetaTelemetryDestinationTestSuccess success)
Alias for calling result with
BetaTelemetryDestinationTestResult.ofSuccess(success).
-
result
final BetaTelemetryDestinationTestResponse.Builder result(BetaTelemetryDestinationTestFailure failure)
Alias for calling result with
BetaTelemetryDestinationTestResult.ofFailure(failure).
-
type
final BetaTelemetryDestinationTestResponse.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("telemetry_destination_test")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaTelemetryDestinationTestResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
failureResult
final BetaTelemetryDestinationTestResponse.Builder failureResult(String error)
Alias for calling result with the following:
BetaTelemetryDestinationTestFailure.builder() .error(error) .build()
-
putAdditionalProperty
final BetaTelemetryDestinationTestResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTelemetryDestinationTestResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTelemetryDestinationTestResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTelemetryDestinationTestResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaTelemetryDestinationTestResponse build()
Returns an immutable instance of BetaTelemetryDestinationTestResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.result()
-
-
-
-