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