Class AiSecretCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class AiSecretCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
name
final AiSecretCreateParams.Body.Builder name(String name)
Name of the AI secret
-
name
final AiSecretCreateParams.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 AiSecretCreateParams.Body.Builder metadata(AiSecretCreateParams.Metadata metadata)
-
metadata
final AiSecretCreateParams.Body.Builder metadata(Optional<AiSecretCreateParams.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final AiSecretCreateParams.Body.Builder metadata(JsonField<AiSecretCreateParams.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 AiSecretCreateParams.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 AiSecretCreateParams.Body.Builder orgName(Optional<String> orgName)
Alias for calling Builder.orgName with
orgName.orElse(null).
-
orgName
final AiSecretCreateParams.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 AiSecretCreateParams.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 AiSecretCreateParams.Body.Builder secret(Optional<String> secret)
Alias for calling Builder.secret with
secret.orElse(null).
-
secret
final AiSecretCreateParams.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 AiSecretCreateParams.Body.Builder type(String type)
-
type
final AiSecretCreateParams.Body.Builder type(Optional<String> type)
Alias for calling Builder.type with
type.orElse(null).
-
type
final AiSecretCreateParams.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 AiSecretCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final AiSecretCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final AiSecretCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final AiSecretCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final AiSecretCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final AiSecretCreateParams.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()
-
-
-
-