Class BetaManagedAgentsMcpOAuthUpdateParams.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpOAuthUpdateParams.BuilderA builder for BetaManagedAgentsMcpOAuthUpdateParams.
-
-
Method Summary
-
-
Method Detail
-
type
final BetaManagedAgentsMcpOAuthUpdateParams.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("mcp_oauth")This method is primarily for setting the field to an undocumented or not yet supported value.
-
accessToken
final BetaManagedAgentsMcpOAuthUpdateParams.Builder accessToken(String accessToken)
The new OAuth access token to replace the stored one.
-
accessToken
final BetaManagedAgentsMcpOAuthUpdateParams.Builder accessToken(Optional<String> accessToken)
Alias for calling Builder.accessToken with
accessToken.orElse(null).
-
accessToken
final BetaManagedAgentsMcpOAuthUpdateParams.Builder accessToken(JsonField<String> accessToken)
Sets Builder.accessToken to an arbitrary JSON value.
You should usually call Builder.accessToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiresAt
final BetaManagedAgentsMcpOAuthUpdateParams.Builder expiresAt(OffsetDateTime expiresAt)
When the credential's access token expires, in RFC 3339. Leave it out to keep the stored expiry.
If you send a new
access_token, send itsexpires_attoo, or the new token keeps the old expiry.Must be in the future.
-
expiresAt
final BetaManagedAgentsMcpOAuthUpdateParams.Builder expiresAt(Optional<OffsetDateTime> expiresAt)
Alias for calling Builder.expiresAt with
expiresAt.orElse(null).
-
expiresAt
final BetaManagedAgentsMcpOAuthUpdateParams.Builder expiresAt(JsonField<OffsetDateTime> expiresAt)
Sets Builder.expiresAt to an arbitrary JSON value.
You should usually call Builder.expiresAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
refresh
final BetaManagedAgentsMcpOAuthUpdateParams.Builder refresh(BetaManagedAgentsMcpOAuthRefreshUpdateParams refresh)
Updated refresh token configuration.
-
refresh
final BetaManagedAgentsMcpOAuthUpdateParams.Builder refresh(Optional<BetaManagedAgentsMcpOAuthRefreshUpdateParams> refresh)
Alias for calling Builder.refresh with
refresh.orElse(null).
-
refresh
final BetaManagedAgentsMcpOAuthUpdateParams.Builder refresh(JsonField<BetaManagedAgentsMcpOAuthRefreshUpdateParams> refresh)
Sets Builder.refresh to an arbitrary JSON value.
You should usually call Builder.refresh with a well-typed BetaManagedAgentsMcpOAuthRefreshUpdateParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsMcpOAuthUpdateParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsMcpOAuthUpdateParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsMcpOAuthUpdateParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsMcpOAuthUpdateParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsMcpOAuthUpdateParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsMcpOAuthUpdateParams build()
Returns an immutable instance of BetaManagedAgentsMcpOAuthUpdateParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-