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