Class BetaManagedAgentsMcpOAuthAuthResponse.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpOAuthAuthResponse.BuilderA builder for BetaManagedAgentsMcpOAuthAuthResponse.
-
-
Method Summary
-
-
Method Detail
-
mcpServerUrl
final BetaManagedAgentsMcpOAuthAuthResponse.Builder mcpServerUrl(String mcpServerUrl)
URL of the MCP server this credential authenticates against.
-
mcpServerUrl
final BetaManagedAgentsMcpOAuthAuthResponse.Builder mcpServerUrl(JsonField<String> mcpServerUrl)
Sets Builder.mcpServerUrl to an arbitrary JSON value.
You should usually call Builder.mcpServerUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsMcpOAuthAuthResponse.Builder type(BetaManagedAgentsMcpOAuthAuthResponse.Type type)
-
type
final BetaManagedAgentsMcpOAuthAuthResponse.Builder type(JsonField<BetaManagedAgentsMcpOAuthAuthResponse.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.
-
expiresAt
final BetaManagedAgentsMcpOAuthAuthResponse.Builder expiresAt(OffsetDateTime expiresAt)
A timestamp in RFC 3339 format
-
expiresAt
final BetaManagedAgentsMcpOAuthAuthResponse.Builder expiresAt(Optional<OffsetDateTime> expiresAt)
Alias for calling Builder.expiresAt with
expiresAt.orElse(null).
-
expiresAt
final BetaManagedAgentsMcpOAuthAuthResponse.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 BetaManagedAgentsMcpOAuthAuthResponse.Builder refresh(BetaManagedAgentsMcpOAuthRefreshResponse refresh)
OAuth refresh token configuration returned in credential responses.
-
refresh
final BetaManagedAgentsMcpOAuthAuthResponse.Builder refresh(Optional<BetaManagedAgentsMcpOAuthRefreshResponse> refresh)
Alias for calling Builder.refresh with
refresh.orElse(null).
-
refresh
final BetaManagedAgentsMcpOAuthAuthResponse.Builder refresh(JsonField<BetaManagedAgentsMcpOAuthRefreshResponse> refresh)
Sets Builder.refresh to an arbitrary JSON value.
You should usually call Builder.refresh with a well-typed BetaManagedAgentsMcpOAuthRefreshResponse value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsMcpOAuthAuthResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsMcpOAuthAuthResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsMcpOAuthAuthResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsMcpOAuthAuthResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsMcpOAuthAuthResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsMcpOAuthAuthResponse build()
Returns an immutable instance of BetaManagedAgentsMcpOAuthAuthResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.mcpServerUrl() .type()
-
-
-
-