Class DelegatePkiResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DelegatePkiResponse.Builder>
co.elastic.clients.elasticsearch.security.DelegatePkiResponse.Builder
- All Implemented Interfaces:
WithJson<DelegatePkiResponse.Builder>,ObjectBuilder<DelegatePkiResponse>
- Enclosing class:
- DelegatePkiResponse
public static class DelegatePkiResponse.Builder
extends WithJsonObjectBuilderBase<DelegatePkiResponse.Builder>
implements ObjectBuilder<DelegatePkiResponse>
Builder for
DelegatePkiResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String value) Required - An access token associated with the subject distinguished name of the client's certificate.authentication(Authentication value) API name:authenticationAPI name:authenticationbuild()Builds aDelegatePkiResponse.expiresIn(long value) Required - The amount of time (in seconds) before the token expires.protected DelegatePkiResponse.Builderself()Required - The type of token.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessToken
Required - An access token associated with the subject distinguished name of the client's certificate.API name:
access_token -
expiresIn
Required - The amount of time (in seconds) before the token expires.API name:
expires_in -
type
Required - The type of token.API name:
type -
authentication
API name:authentication -
authentication
public final DelegatePkiResponse.Builder authentication(Function<Authentication.Builder, ObjectBuilder<Authentication>> fn) API name:authentication -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DelegatePkiResponse.Builder>
-
build
Builds aDelegatePkiResponse.- Specified by:
buildin interfaceObjectBuilder<DelegatePkiResponse>- Throws:
NullPointerException- if some of the required fields are null.
-