Class ApiKeyCreateResponse.Builder
-
- All Implemented Interfaces:
public final class ApiKeyCreateResponse.BuilderA builder for ApiKeyCreateResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final ApiKeyCreateResponse.Builder id(String id)
The API key id.
-
id
final ApiKeyCreateResponse.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.
-
dateCreated
final ApiKeyCreateResponse.Builder dateCreated(OffsetDateTime dateCreated)
The API key creation date.
-
dateCreated
final ApiKeyCreateResponse.Builder dateCreated(JsonField<OffsetDateTime> dateCreated)
Sets Builder.dateCreated to an arbitrary JSON value.
You should usually call Builder.dateCreated with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
dateLastUsed
final ApiKeyCreateResponse.Builder dateLastUsed(OffsetDateTime dateLastUsed)
The API key last use date.
-
dateLastUsed
final ApiKeyCreateResponse.Builder dateLastUsed(Optional<OffsetDateTime> dateLastUsed)
Alias for calling Builder.dateLastUsed with
dateLastUsed.orElse(null).
-
dateLastUsed
final ApiKeyCreateResponse.Builder dateLastUsed(JsonField<OffsetDateTime> dateLastUsed)
Sets Builder.dateLastUsed to an arbitrary JSON value.
You should usually call Builder.dateLastUsed with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
dateUpdated
final ApiKeyCreateResponse.Builder dateUpdated(OffsetDateTime dateUpdated)
The API key last update date.
-
dateUpdated
final ApiKeyCreateResponse.Builder dateUpdated(JsonField<OffsetDateTime> dateUpdated)
Sets Builder.dateUpdated to an arbitrary JSON value.
You should usually call Builder.dateUpdated with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
secureKey
final ApiKeyCreateResponse.Builder secureKey(String secureKey)
The API key value.
-
secureKey
final ApiKeyCreateResponse.Builder secureKey(JsonField<String> secureKey)
Sets Builder.secureKey to an arbitrary JSON value.
You should usually call Builder.secureKey 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 ApiKeyCreateResponse.Builder name(String name)
The API key name.
-
name
final ApiKeyCreateResponse.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final ApiKeyCreateResponse.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 ApiKeyCreateResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ApiKeyCreateResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ApiKeyCreateResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ApiKeyCreateResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ApiKeyCreateResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ApiKeyCreateResponse build()
Returns an immutable instance of ApiKeyCreateResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .dateCreated() .dateLastUsed() .dateUpdated() .secureKey()
-
-
-
-