Class CreateApiKeyOutput.Builder
-
- All Implemented Interfaces:
public final class CreateApiKeyOutput.BuilderA builder for CreateApiKeyOutput.
-
-
Method Summary
-
-
Method Detail
-
id
final CreateApiKeyOutput.Builder id(String id)
Unique identifier for the api key
-
id
final CreateApiKeyOutput.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.
-
key
final CreateApiKeyOutput.Builder key(String key)
The raw API key. It will only be exposed this one time
-
key
final CreateApiKeyOutput.Builder key(JsonField<String> key)
Sets Builder.key to an arbitrary JSON value.
You should usually call Builder.key 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 CreateApiKeyOutput.Builder name(String name)
Name of the api key
-
name
final CreateApiKeyOutput.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 CreateApiKeyOutput.Builder previewName(String previewName)
-
previewName
final CreateApiKeyOutput.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 CreateApiKeyOutput.Builder created(OffsetDateTime created)
Date of api key creation
-
created
final CreateApiKeyOutput.Builder created(Optional<OffsetDateTime> created)
Alias for calling Builder.created with
created.orElse(null).
-
created
final CreateApiKeyOutput.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 CreateApiKeyOutput.Builder orgId(String orgId)
Unique identifier for the organization
-
orgId
final CreateApiKeyOutput.Builder orgId(Optional<String> orgId)
Alias for calling Builder.orgId with
orgId.orElse(null).
-
orgId
final CreateApiKeyOutput.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 CreateApiKeyOutput.Builder userId(String userId)
Unique identifier for the user
-
userId
final CreateApiKeyOutput.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final CreateApiKeyOutput.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 CreateApiKeyOutput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CreateApiKeyOutput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CreateApiKeyOutput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CreateApiKeyOutput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CreateApiKeyOutput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CreateApiKeyOutput build()
Returns an immutable instance of CreateApiKeyOutput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .key() .name() .previewName()
-
-
-
-