Class CreateApiKeyResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CreateApiKeyResponse.Builder>
co.elastic.clients.elasticsearch.security.CreateApiKeyResponse.Builder
- All Implemented Interfaces:
- WithJson<CreateApiKeyResponse.Builder>,- ObjectBuilder<CreateApiKeyResponse>
- Enclosing class:
- CreateApiKeyResponse
public static class CreateApiKeyResponse.Builder
extends WithJsonObjectBuilderBase<CreateApiKeyResponse.Builder>
implements ObjectBuilder<CreateApiKeyResponse>
Builder for 
CreateApiKeyResponse.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionRequired - Generated API key.build()Builds aCreateApiKeyResponse.Required - API key credentials which is the base64-encoding of the UTF-8 representation ofidandapi_keyjoined by a colon (:).expiration(Long value) Expiration in milliseconds for the API key.Required - Unique ID for this API key.Required - Specifies the name for this API key.protected CreateApiKeyResponse.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
apiKeyRequired - Generated API key.API name: api_key
- 
expirationExpiration in milliseconds for the API key.API name: expiration
- 
idRequired - Unique ID for this API key.API name: id
- 
nameRequired - Specifies the name for this API key.API name: name
- 
encodedRequired - API key credentials which is the base64-encoding of the UTF-8 representation ofidandapi_keyjoined by a colon (:).API name: encoded
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<CreateApiKeyResponse.Builder>
 
- 
buildBuilds aCreateApiKeyResponse.- Specified by:
- buildin interface- ObjectBuilder<CreateApiKeyResponse>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-