Class BetaManagedAgentsMcpOAuthCreateParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpOAuthCreateParamsParameters for creating an MCP OAuth credential.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMcpOAuthCreateParams.BuilderA builder for BetaManagedAgentsMcpOAuthCreateParams.
public final classBetaManagedAgentsMcpOAuthCreateParams.Type
-
Method Summary
Modifier and Type Method Description final StringaccessToken()OAuth access token. final StringmcpServerUrl()URL of the MCP server this credential authenticates against. final BetaManagedAgentsMcpOAuthCreateParams.Typetype()final Optional<OffsetDateTime>expiresAt()A timestamp in RFC 3339 format final Optional<BetaManagedAgentsMcpOAuthRefreshParams>refresh()OAuth refresh token parameters for creating a credential with refresh support. final JsonField<String>_accessToken()Returns the raw JSON value of accessToken. final JsonField<String>_mcpServerUrl()Returns the raw JSON value of mcpServerUrl. final JsonField<BetaManagedAgentsMcpOAuthCreateParams.Type>_type()Returns the raw JSON value of type. final JsonField<OffsetDateTime>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<BetaManagedAgentsMcpOAuthRefreshParams>_refresh()Returns the raw JSON value of refresh. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMcpOAuthCreateParams.BuildertoBuilder()final BetaManagedAgentsMcpOAuthCreateParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMcpOAuthCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpOAuthCreateParams. -
-
Method Detail
-
accessToken
final String accessToken()
OAuth access token.
-
mcpServerUrl
final String mcpServerUrl()
URL of the MCP server this credential authenticates against.
-
type
final BetaManagedAgentsMcpOAuthCreateParams.Type type()
-
expiresAt
final Optional<OffsetDateTime> expiresAt()
A timestamp in RFC 3339 format
-
refresh
final Optional<BetaManagedAgentsMcpOAuthRefreshParams> refresh()
OAuth refresh token parameters for creating a credential with refresh support.
-
_accessToken
final JsonField<String> _accessToken()
Returns the raw JSON value of accessToken.
Unlike accessToken, this method doesn't throw if the JSON field has an unexpected type.
-
_mcpServerUrl
final JsonField<String> _mcpServerUrl()
Returns the raw JSON value of mcpServerUrl.
Unlike mcpServerUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsMcpOAuthCreateParams.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_expiresAt
final JsonField<OffsetDateTime> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_refresh
final JsonField<BetaManagedAgentsMcpOAuthRefreshParams> _refresh()
Returns the raw JSON value of refresh.
Unlike refresh, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsMcpOAuthCreateParams.Builder toBuilder()
-
validate
final BetaManagedAgentsMcpOAuthCreateParams validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsMcpOAuthCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpOAuthCreateParams.
The following fields are required:
.accessToken() .mcpServerUrl() .type()
-
-
-
-