Class ApiKey.Builder
-
- All Implemented Interfaces:
public final class ApiKey.BuilderA builder for ApiKey.
-
-
Method Summary
Modifier and Type Method Description final ApiKey.Builderid(String id)Unique identifier for the api key final ApiKey.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ApiKey.Buildername(String name)Name of the api key final ApiKey.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final ApiKey.BuilderpreviewName(String previewName)final ApiKey.BuilderpreviewName(JsonField<String> previewName)Sets Builder.previewName to an arbitrary JSON value. final ApiKey.Buildercreated(OffsetDateTime created)Date of api key creation final ApiKey.Buildercreated(Optional<OffsetDateTime> created)Alias for calling Builder.created with created.orElse(null).final ApiKey.Buildercreated(JsonField<OffsetDateTime> created)Sets Builder.created to an arbitrary JSON value. final ApiKey.BuilderorgId(String orgId)Unique identifier for the organization final ApiKey.BuilderorgId(Optional<String> orgId)Alias for calling Builder.orgId with orgId.orElse(null).final ApiKey.BuilderorgId(JsonField<String> orgId)Sets Builder.orgId to an arbitrary JSON value. final ApiKey.BuilderuserId(String userId)Unique identifier for the user final ApiKey.BuilderuserId(Optional<String> userId)Alias for calling Builder.userId with userId.orElse(null).final ApiKey.BuilderuserId(JsonField<String> userId)Sets Builder.userId to an arbitrary JSON value. final ApiKey.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ApiKey.BuilderputAdditionalProperty(String key, JsonValue value)final ApiKey.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ApiKey.BuilderremoveAdditionalProperty(String key)final ApiKey.BuilderremoveAllAdditionalProperties(Set<String> keys)final ApiKeybuild()Returns an immutable instance of ApiKey. -
-
Method Detail
-
id
final ApiKey.Builder id(String id)
Unique identifier for the api key
-
id
final ApiKey.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.
-
name
final ApiKey.Builder name(String name)
Name of the api key
-
name
final ApiKey.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.
-
previewName
final ApiKey.Builder previewName(String previewName)
-
previewName
final ApiKey.Builder previewName(JsonField<String> previewName)
Sets Builder.previewName to an arbitrary JSON value.
You should usually call Builder.previewName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
created
final ApiKey.Builder created(OffsetDateTime created)
Date of api key creation
-
created
final ApiKey.Builder created(Optional<OffsetDateTime> created)
Alias for calling Builder.created with
created.orElse(null).
-
created
final ApiKey.Builder created(JsonField<OffsetDateTime> created)
Sets Builder.created to an arbitrary JSON value.
You should usually call Builder.created with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orgId
final ApiKey.Builder orgId(String orgId)
Unique identifier for the organization
-
orgId
final ApiKey.Builder orgId(Optional<String> orgId)
Alias for calling Builder.orgId with
orgId.orElse(null).
-
orgId
final ApiKey.Builder orgId(JsonField<String> orgId)
Sets Builder.orgId to an arbitrary JSON value.
You should usually call Builder.orgId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userId
final ApiKey.Builder userId(String userId)
Unique identifier for the user
-
userId
final ApiKey.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final ApiKey.Builder userId(JsonField<String> userId)
Sets Builder.userId to an arbitrary JSON value.
You should usually call Builder.userId 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 ApiKey.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ApiKey.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ApiKey.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ApiKey.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ApiKey.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-