Class BetaTelemetryDestination.Builder
-
- All Implemented Interfaces:
public final class BetaTelemetryDestination.BuilderA builder for BetaTelemetryDestination.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaTelemetryDestination.Builder id(String id)
The unique ID of the destination (
tdst_...).
-
id
final BetaTelemetryDestination.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.
-
createdAt
final BetaTelemetryDestination.Builder createdAt(OffsetDateTime createdAt)
Time the destination was created.
-
createdAt
final BetaTelemetryDestination.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
deliveryHealth
final BetaTelemetryDestination.Builder deliveryHealth(BetaTelemetryDestinationDeliveryHealth deliveryHealth)
The most recent delivery results for this destination.
-
deliveryHealth
final BetaTelemetryDestination.Builder deliveryHealth(JsonField<BetaTelemetryDestinationDeliveryHealth> deliveryHealth)
Sets Builder.deliveryHealth to an arbitrary JSON value.
You should usually call Builder.deliveryHealth with a well-typed BetaTelemetryDestinationDeliveryHealth value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayName
final BetaTelemetryDestination.Builder displayName(String displayName)
Human-readable name for the destination. Null when none was set.
-
displayName
final BetaTelemetryDestination.Builder displayName(Optional<String> displayName)
Alias for calling Builder.displayName with
displayName.orElse(null).
-
displayName
final BetaTelemetryDestination.Builder displayName(JsonField<String> displayName)
Sets Builder.displayName to an arbitrary JSON value.
You should usually call Builder.displayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
endpointUrl
final BetaTelemetryDestination.Builder endpointUrl(String endpointUrl)
The base URL of the destination's OTLP/HTTP endpoint, exactly as registered.
The API appends the per-signal path, such as
/v1/traces, on delivery, unlesstraces.endpoint_urlis set.
-
endpointUrl
final BetaTelemetryDestination.Builder endpointUrl(JsonField<String> endpointUrl)
Sets Builder.endpointUrl to an arbitrary JSON value.
You should usually call Builder.endpointUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
headerNames
final BetaTelemetryDestination.Builder headerNames(List<String> headerNames)
Names of the registered request headers. Header values are write-only and are never returned.
-
headerNames
final BetaTelemetryDestination.Builder headerNames(JsonField<List<String>> headerNames)
Sets Builder.headerNames to an arbitrary JSON value.
You should usually call Builder.headerNames with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final BetaTelemetryDestination.Builder state(BetaTelemetryDestinationState state)
Whether the destination receives deliveries.
-
state
final BetaTelemetryDestination.Builder state(JsonField<BetaTelemetryDestinationState> state)
Sets Builder.state to an arbitrary JSON value.
You should usually call Builder.state with a well-typed BetaTelemetryDestinationState value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final BetaTelemetryDestination.Builder state(BetaTelemetryDestinationStateEnabled enabled)
Alias for calling state with
BetaTelemetryDestinationState.ofEnabled(enabled).
-
state
final BetaTelemetryDestination.Builder state(BetaTelemetryDestinationStateDisabled disabled)
Alias for calling state with
BetaTelemetryDestinationState.ofDisabled(disabled).
-
traces
final BetaTelemetryDestination.Builder traces(BetaTelemetryDestinationTraces traces)
The destination's settings for the traces it receives.
-
traces
final BetaTelemetryDestination.Builder traces(JsonField<BetaTelemetryDestinationTraces> traces)
Sets Builder.traces to an arbitrary JSON value.
You should usually call Builder.traces with a well-typed BetaTelemetryDestinationTraces value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaTelemetryDestination.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")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaTelemetryDestination.Builder updatedAt(OffsetDateTime updatedAt)
Time of the last change to the destination's configuration or state. Changes to
delivery_healthdon't change it.An update that sets a header value always changes it, even when the value is the same as before. Adding or removing a single workspace on the destination's list doesn't change it. An update that changes the list does.
-
updatedAt
final BetaTelemetryDestination.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaces
final BetaTelemetryDestination.Builder workspaces(BetaTelemetryDestinationWorkspaces workspaces)
Which of the organization's workspaces the destination covers.
-
workspaces
final BetaTelemetryDestination.Builder workspaces(JsonField<BetaTelemetryDestinationWorkspaces> workspaces)
Sets Builder.workspaces to an arbitrary JSON value.
You should usually call Builder.workspaces with a well-typed BetaTelemetryDestinationWorkspaces value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaces
final BetaTelemetryDestination.Builder workspaces(BetaTelemetryDestinationWorkspacesAll all)
Alias for calling workspaces with
BetaTelemetryDestinationWorkspaces.ofAll(all).
-
workspaces
final BetaTelemetryDestination.Builder workspaces(BetaTelemetryDestinationWorkspacesInclude include)
Alias for calling workspaces with
BetaTelemetryDestinationWorkspaces.ofInclude(include).
-
workspaces
final BetaTelemetryDestination.Builder workspaces(BetaTelemetryDestinationWorkspacesExclude exclude)
Alias for calling workspaces with
BetaTelemetryDestinationWorkspaces.ofExclude(exclude).
-
additionalProperties
final BetaTelemetryDestination.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addHeaderName
final BetaTelemetryDestination.Builder addHeaderName(String headerName)
Adds a single String to headerNames.
-
disabledState
final BetaTelemetryDestination.Builder disabledState(BetaTelemetryDestinationDisabledReason reason)
Alias for calling state with the following:
BetaTelemetryDestinationStateDisabled.builder() .reason(reason) .build()
-
disabledState
final BetaTelemetryDestination.Builder disabledState(BetaTelemetryDestinationDisabledReasonCaller caller)
Alias for calling disabledState with
BetaTelemetryDestinationDisabledReason.ofCaller(caller).
-
disabledState
final BetaTelemetryDestination.Builder disabledState(BetaTelemetryDestinationDisabledReasonSustainedFailure sustainedFailure)
Alias for calling disabledState with
BetaTelemetryDestinationDisabledReason.ofSustainedFailure(sustainedFailure).
-
disabledState
final BetaTelemetryDestination.Builder disabledState(BetaTelemetryDestinationDisabledReasonInvalidAddress invalidAddress)
Alias for calling disabledState with
BetaTelemetryDestinationDisabledReason.ofInvalidAddress(invalidAddress).
-
disabledState
final BetaTelemetryDestination.Builder disabledState(BetaTelemetryDestinationDisabledReasonRedirect redirect)
Alias for calling disabledState with
BetaTelemetryDestinationDisabledReason.ofRedirect(redirect).
-
putAdditionalProperty
final BetaTelemetryDestination.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTelemetryDestination.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTelemetryDestination.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTelemetryDestination.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaTelemetryDestination build()
Returns an immutable instance of BetaTelemetryDestination.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .deliveryHealth() .displayName() .endpointUrl() .headerNames() .state() .traces() .updatedAt() .workspaces()
-
-
-
-