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