Class CredentialCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class CredentialCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
auth
final CredentialCreateParams.Body.Builder auth(CredentialCreateParams.Auth auth)
Authentication details for creating a credential.
-
auth
final CredentialCreateParams.Body.Builder auth(JsonField<CredentialCreateParams.Auth> auth)
Sets Builder.auth to an arbitrary JSON value.
You should usually call Builder.auth with a well-typed Auth value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
auth
final CredentialCreateParams.Body.Builder auth(BetaManagedAgentsMcpOAuthCreateParams mcpOAuth)
Alias for calling auth with
Auth.ofMcpOAuth(mcpOAuth).
-
auth
final CredentialCreateParams.Body.Builder auth(BetaManagedAgentsStaticBearerCreateParams staticBearer)
Alias for calling auth with
Auth.ofStaticBearer(staticBearer).
-
auth
final CredentialCreateParams.Body.Builder auth(BetaManagedAgentsEnvironmentVariableCreateParams environmentVariable)
Alias for calling auth with
Auth.ofEnvironmentVariable(environmentVariable).
-
displayName
final CredentialCreateParams.Body.Builder displayName(String displayName)
Human-readable name for the credential. Up to 255 characters.
-
displayName
final CredentialCreateParams.Body.Builder displayName(Optional<String> displayName)
Alias for calling Builder.displayName with
displayName.orElse(null).
-
displayName
final CredentialCreateParams.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.
-
metadata
final CredentialCreateParams.Body.Builder metadata(CredentialCreateParams.Metadata metadata)
Arbitrary key-value metadata to attach to the credential. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
-
metadata
final CredentialCreateParams.Body.Builder metadata(JsonField<CredentialCreateParams.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final CredentialCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CredentialCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CredentialCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CredentialCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CredentialCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CredentialCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.auth()
-
-
-
-