Class TelemetryDestinationUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class TelemetryDestinationUpdateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
displayName
final TelemetryDestinationUpdateParams.Body.Builder displayName(String displayName)
New human-readable name, 1 to 255 characters. Null clears it.
-
displayName
final TelemetryDestinationUpdateParams.Body.Builder displayName(Optional<String> displayName)
Alias for calling Builder.displayName with
displayName.orElse(null).
-
displayName
final TelemetryDestinationUpdateParams.Body.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 TelemetryDestinationUpdateParams.Body.Builder endpointUrl(String endpointUrl)
The new base URL of the destination's OTLP/HTTP endpoint. The same rules as on create apply.
A change of hostname or port first removes every registered header, so send the headers for the new endpoint in the same request. When the destination has a
traces.endpoint_url, such a change must also settraces.endpoint_urlto a URL with the new hostname and port, or tonull. A change of the path alone keeps the headers.
-
endpointUrl
final TelemetryDestinationUpdateParams.Body.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.
-
headers
final TelemetryDestinationUpdateParams.Body.Builder headers(TelemetryDestinationUpdateParams.DestinationHeaders headers)
Headers to set or remove. The API merges them into the destination's headers by name.
Names compare case-insensitively. A string value sets or replaces that header. A
nullvalue removes it. Headers that you omit don't change. The field itself can't benull.A request that sets a header value must also include
endpoint_url. The current URL is accepted.The resulting set must stay within the same limits as on create. When the request sets a value, each stored value that it doesn't set counts as 4,096 bytes toward the 16,384-byte limit, because you can't read its real length. So to change one header of a destination that has four or more other headers, send the values of the others again in the same request.
-
headers
final TelemetryDestinationUpdateParams.Body.Builder headers(Optional<TelemetryDestinationUpdateParams.DestinationHeaders> headers)
Alias for calling Builder.headers with
headers.orElse(null).
-
headers
final TelemetryDestinationUpdateParams.Body.Builder headers(JsonField<TelemetryDestinationUpdateParams.DestinationHeaders> headers)
Sets Builder.headers to an arbitrary JSON value.
You should usually call Builder.headers with a well-typed DestinationHeaders value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final TelemetryDestinationUpdateParams.Body.Builder state(BetaTelemetryDestinationStateParams state)
Whether the destination receives deliveries after the update. The field can't be
null.
-
state
final TelemetryDestinationUpdateParams.Body.Builder state(JsonField<BetaTelemetryDestinationStateParams> state)
Sets Builder.state to an arbitrary JSON value.
You should usually call Builder.state with a well-typed BetaTelemetryDestinationStateParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final TelemetryDestinationUpdateParams.Body.Builder state(BetaTelemetryDestinationStateEnabledParams enabled)
Alias for calling state with
BetaTelemetryDestinationStateParams.ofEnabled(enabled).
-
state
final TelemetryDestinationUpdateParams.Body.Builder state(BetaTelemetryDestinationStateDisabledParams disabled)
Alias for calling state with
BetaTelemetryDestinationStateParams.ofDisabled(disabled).
-
traces
final TelemetryDestinationUpdateParams.Body.Builder traces(BetaTelemetryDestinationTracesParams traces)
The traces settings to change. Omitted settings keep their stored values.
nullsets every traces setting to its create default.
-
traces
final TelemetryDestinationUpdateParams.Body.Builder traces(Optional<BetaTelemetryDestinationTracesParams> traces)
Alias for calling Builder.traces with
traces.orElse(null).
-
traces
final TelemetryDestinationUpdateParams.Body.Builder traces(JsonField<BetaTelemetryDestinationTracesParams> traces)
Sets Builder.traces to an arbitrary JSON value.
You should usually call Builder.traces with a well-typed BetaTelemetryDestinationTracesParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaces
final TelemetryDestinationUpdateParams.Body.Builder workspaces(BetaTelemetryDestinationWorkspacesParams workspaces)
The new workspace scope, in the same form as on create. The field can't be
null.The API refuses an update that changes the type or sends
workspace_idswhile the destination's list has more than 750 workspaces. Remove workspaces one at a time until 750 or fewer remain, then send the update again.
-
workspaces
final TelemetryDestinationUpdateParams.Body.Builder workspaces(JsonField<BetaTelemetryDestinationWorkspacesParams> workspaces)
Sets Builder.workspaces to an arbitrary JSON value.
You should usually call Builder.workspaces with a well-typed BetaTelemetryDestinationWorkspacesParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaces
final TelemetryDestinationUpdateParams.Body.Builder workspaces(BetaTelemetryDestinationWorkspacesAllParams all)
Alias for calling workspaces with
BetaTelemetryDestinationWorkspacesParams.ofAll(all).
-
workspaces
final TelemetryDestinationUpdateParams.Body.Builder workspaces(BetaTelemetryDestinationWorkspacesIncludeParams include)
Alias for calling workspaces with
BetaTelemetryDestinationWorkspacesParams.ofInclude(include).
-
workspaces
final TelemetryDestinationUpdateParams.Body.Builder workspaces(BetaTelemetryDestinationWorkspacesExcludeParams exclude)
Alias for calling workspaces with
BetaTelemetryDestinationWorkspacesParams.ofExclude(exclude).
-
additionalProperties
final TelemetryDestinationUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TelemetryDestinationUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TelemetryDestinationUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TelemetryDestinationUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TelemetryDestinationUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TelemetryDestinationUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-