Class AdminApiKeyCreateResponse.Builder
-
- All Implemented Interfaces:
public final class AdminApiKeyCreateResponse.BuilderA builder for AdminApiKeyCreateResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final AdminApiKeyCreateResponse.Builder id(String id)
The identifier, which can be referenced in API endpoints
-
id
final AdminApiKeyCreateResponse.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.
-
createdAt
final AdminApiKeyCreateResponse.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) of when the API key was created
-
createdAt
final AdminApiKeyCreateResponse.Builder createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final AdminApiKeyCreateResponse.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("organization.admin_api_key")This method is primarily for setting the field to an undocumented or not yet supported value.
-
owner
final AdminApiKeyCreateResponse.Builder owner(AdminApiKey.Owner owner)
-
owner
final AdminApiKeyCreateResponse.Builder owner(JsonField<AdminApiKey.Owner> owner)
Sets Builder.owner to an arbitrary JSON value.
You should usually call Builder.owner with a well-typed AdminApiKey.Owner value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
redactedValue
final AdminApiKeyCreateResponse.Builder redactedValue(String redactedValue)
The redacted value of the API key
-
redactedValue
final AdminApiKeyCreateResponse.Builder redactedValue(JsonField<String> redactedValue)
Sets Builder.redactedValue to an arbitrary JSON value.
You should usually call Builder.redactedValue with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastUsedAt
final AdminApiKeyCreateResponse.Builder lastUsedAt(Long lastUsedAt)
The Unix timestamp (in seconds) of when the API key was last used
-
lastUsedAt
final AdminApiKeyCreateResponse.Builder lastUsedAt(Long lastUsedAt)
Alias for Builder.lastUsedAt.
This unboxed primitive overload exists for backwards compatibility.
-
lastUsedAt
final AdminApiKeyCreateResponse.Builder lastUsedAt(Optional<Long> lastUsedAt)
Alias for calling Builder.lastUsedAt with
lastUsedAt.orElse(null).
-
lastUsedAt
final AdminApiKeyCreateResponse.Builder lastUsedAt(JsonField<Long> lastUsedAt)
Sets Builder.lastUsedAt to an arbitrary JSON value.
You should usually call Builder.lastUsedAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final AdminApiKeyCreateResponse.Builder name(String name)
The name of the API key
-
name
final AdminApiKeyCreateResponse.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final AdminApiKeyCreateResponse.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.
-
value
final AdminApiKeyCreateResponse.Builder value(String value)
The value of the API key. Only shown on create.
-
value
final AdminApiKeyCreateResponse.Builder value(JsonField<String> value)
Sets Builder.value to an arbitrary JSON value.
You should usually call Builder.value 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 AdminApiKeyCreateResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final AdminApiKeyCreateResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final AdminApiKeyCreateResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final AdminApiKeyCreateResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final AdminApiKeyCreateResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final AdminApiKeyCreateResponse build()
Returns an immutable instance of AdminApiKeyCreateResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .owner() .redactedValue() .value()
-
-
-
-