Class AiSecretReplaceParams.Body.Builder
-
- All Implemented Interfaces:
public final class AiSecretReplaceParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
name
final AiSecretReplaceParams.Body.Builder name(String name)
Name of the AI secret
-
name
final AiSecretReplaceParams.Body.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name 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 AiSecretReplaceParams.Body.Builder metadata(AiSecretReplaceParams.Metadata metadata)
-
metadata
final AiSecretReplaceParams.Body.Builder metadata(Optional<AiSecretReplaceParams.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final AiSecretReplaceParams.Body.Builder metadata(JsonField<AiSecretReplaceParams.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.
-
orgName
final AiSecretReplaceParams.Body.Builder orgName(String orgName)
For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the AI Secret belongs in.
-
orgName
final AiSecretReplaceParams.Body.Builder orgName(Optional<String> orgName)
Alias for calling Builder.orgName with
orgName.orElse(null).
-
orgName
final AiSecretReplaceParams.Body.Builder orgName(JsonField<String> orgName)
Sets Builder.orgName to an arbitrary JSON value.
You should usually call Builder.orgName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
secret
final AiSecretReplaceParams.Body.Builder secret(String secret)
Secret value. If omitted in a PUT request, the existing secret value will be left intact, not replaced with null.
-
secret
final AiSecretReplaceParams.Body.Builder secret(Optional<String> secret)
Alias for calling Builder.secret with
secret.orElse(null).
-
secret
final AiSecretReplaceParams.Body.Builder secret(JsonField<String> secret)
Sets Builder.secret to an arbitrary JSON value.
You should usually call Builder.secret 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 AiSecretReplaceParams.Body.Builder type(String type)
-
type
final AiSecretReplaceParams.Body.Builder type(Optional<String> type)
Alias for calling Builder.type with
type.orElse(null).
-
type
final AiSecretReplaceParams.Body.Builder type(JsonField<String> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type 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 AiSecretReplaceParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final AiSecretReplaceParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final AiSecretReplaceParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final AiSecretReplaceParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final AiSecretReplaceParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final AiSecretReplaceParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name()
-
-
-
-