Class BetaManagedAgentsCredential.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsCredential.BuilderA builder for BetaManagedAgentsCredential.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsCredential.Builder id(String id)
Unique identifier for the credential.
-
id
final BetaManagedAgentsCredential.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedAt
final BetaManagedAgentsCredential.Builder archivedAt(OffsetDateTime archivedAt)
A timestamp in RFC 3339 format
-
archivedAt
final BetaManagedAgentsCredential.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaManagedAgentsCredential.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
auth
final BetaManagedAgentsCredential.Builder auth(BetaManagedAgentsCredential.Auth auth)
Authentication details for a credential.
-
auth
final BetaManagedAgentsCredential.Builder auth(JsonField<BetaManagedAgentsCredential.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 BetaManagedAgentsCredential.Builder auth(BetaManagedAgentsMcpOAuthAuthResponse mcpOAuth)
Alias for calling auth with
Auth.ofMcpOAuth(mcpOAuth).
-
auth
final BetaManagedAgentsCredential.Builder auth(BetaManagedAgentsStaticBearerAuthResponse staticBearer)
Alias for calling auth with
Auth.ofStaticBearer(staticBearer).
-
auth
final BetaManagedAgentsCredential.Builder auth(BetaManagedAgentsEnvironmentVariableAuthResponse environmentVariable)
Alias for calling auth with
Auth.ofEnvironmentVariable(environmentVariable).
-
mcpOAuthAuth
final BetaManagedAgentsCredential.Builder mcpOAuthAuth(String mcpServerUrl)
Alias for calling auth with the following:
BetaManagedAgentsMcpOAuthAuthResponse.builder() .type(BetaManagedAgentsMcpOAuthAuthResponse.Type.MCP_OAUTH) .mcpServerUrl(mcpServerUrl) .build()
-
staticBearerAuth
final BetaManagedAgentsCredential.Builder staticBearerAuth(String mcpServerUrl)
Alias for calling auth with the following:
BetaManagedAgentsStaticBearerAuthResponse.builder() .type(BetaManagedAgentsStaticBearerAuthResponse.Type.STATIC_BEARER) .mcpServerUrl(mcpServerUrl) .build()
-
createdAt
final BetaManagedAgentsCredential.Builder createdAt(OffsetDateTime createdAt)
A timestamp in RFC 3339 format
-
createdAt
final BetaManagedAgentsCredential.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final BetaManagedAgentsCredential.Builder metadata(BetaManagedAgentsCredential.Metadata metadata)
Arbitrary key-value metadata attached to the credential.
-
metadata
final BetaManagedAgentsCredential.Builder metadata(JsonField<BetaManagedAgentsCredential.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.
-
type
final BetaManagedAgentsCredential.Builder type(BetaManagedAgentsCredential.Type type)
-
type
final BetaManagedAgentsCredential.Builder type(JsonField<BetaManagedAgentsCredential.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.
-
updatedAt
final BetaManagedAgentsCredential.Builder updatedAt(OffsetDateTime updatedAt)
A timestamp in RFC 3339 format
-
updatedAt
final BetaManagedAgentsCredential.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
vaultId
final BetaManagedAgentsCredential.Builder vaultId(String vaultId)
Identifier of the vault this credential belongs to.
-
vaultId
final BetaManagedAgentsCredential.Builder vaultId(JsonField<String> vaultId)
Sets Builder.vaultId to an arbitrary JSON value.
You should usually call Builder.vaultId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayName
final BetaManagedAgentsCredential.Builder displayName(String displayName)
Human-readable name for the credential.
-
displayName
final BetaManagedAgentsCredential.Builder displayName(Optional<String> displayName)
Alias for calling Builder.displayName with
displayName.orElse(null).
-
displayName
final BetaManagedAgentsCredential.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.
-
additionalProperties
final BetaManagedAgentsCredential.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsCredential.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsCredential.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsCredential.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsCredential.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsCredential build()
Returns an immutable instance of BetaManagedAgentsCredential.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .archivedAt() .auth() .createdAt() .metadata() .type() .updatedAt() .vaultId()
-
-
-
-