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 Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CreateApiKeyResponse.Builder
apiKey(java.lang.String value)
Required - Generated API key.CreateApiKeyResponse
build()
Builds aCreateApiKeyResponse
.CreateApiKeyResponse.Builder
encoded(java.lang.String value)
Required - API key credentials which is the base64-encoding of the UTF-8 representation ofid
andapi_key
joined by a colon (:
).CreateApiKeyResponse.Builder
expiration(java.lang.Long value)
Expiration in milliseconds for the API key.CreateApiKeyResponse.Builder
id(java.lang.String value)
Required - Unique ID for this API key.CreateApiKeyResponse.Builder
name(java.lang.String value)
Required - Specifies the name for this API key.protected CreateApiKeyResponse.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
Required - Generated API key.API name:
api_key
-
expiration
Expiration in milliseconds for the API key.API name:
expiration
-
id
Required - Unique ID for this API key.API name:
id
-
name
Required - Specifies the name for this API key.API name:
name
-
encoded
Required - API key credentials which is the base64-encoding of the UTF-8 representation ofid
andapi_key
joined by a colon (:
).API name:
encoded
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CreateApiKeyResponse.Builder>
-
build
Builds aCreateApiKeyResponse
.- Specified by:
build
in interfaceObjectBuilder<CreateApiKeyResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-