Class GetUserProfileResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetUserProfileResponse.Builder>
co.elastic.clients.elasticsearch.security.GetUserProfileResponse.Builder
- All Implemented Interfaces:
WithJson<GetUserProfileResponse.Builder>,ObjectBuilder<GetUserProfileResponse>
- Enclosing class:
- GetUserProfileResponse
public static class GetUserProfileResponse.Builder
extends WithJsonObjectBuilderBase<GetUserProfileResponse.Builder>
implements ObjectBuilder<GetUserProfileResponse>
Builder for
GetUserProfileResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetUserProfileResponse.errors(GetUserProfileErrors value) API name:errorsAPI name:errorsprofiles(UserProfileWithMetadata value, UserProfileWithMetadata... values) Required - A successful call returns the JSON representation of the user profile and its internal versioning numbers.Required - A successful call returns the JSON representation of the user profile and its internal versioning numbers.profiles(List<UserProfileWithMetadata> list) Required - A successful call returns the JSON representation of the user profile and its internal versioning numbers.protected GetUserProfileResponse.Builderself()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
-
profiles
Required - A successful call returns the JSON representation of the user profile and its internal versioning numbers. The API returns an empty object if no profile document is found for the provideduid. The content of the data field is not returned by default to avoid deserializing a potential large payload.API name:
profilesAdds all elements of
listtoprofiles. -
profiles
public final GetUserProfileResponse.Builder profiles(UserProfileWithMetadata value, UserProfileWithMetadata... values) Required - A successful call returns the JSON representation of the user profile and its internal versioning numbers. The API returns an empty object if no profile document is found for the provideduid. The content of the data field is not returned by default to avoid deserializing a potential large payload.API name:
profilesAdds one or more values to
profiles. -
profiles
public final GetUserProfileResponse.Builder profiles(Function<UserProfileWithMetadata.Builder, ObjectBuilder<UserProfileWithMetadata>> fn) Required - A successful call returns the JSON representation of the user profile and its internal versioning numbers. The API returns an empty object if no profile document is found for the provideduid. The content of the data field is not returned by default to avoid deserializing a potential large payload.API name:
profilesAdds a value to
profilesusing a builder lambda. -
errors
API name:errors -
errors
public final GetUserProfileResponse.Builder errors(Function<GetUserProfileErrors.Builder, ObjectBuilder<GetUserProfileErrors>> fn) API name:errors -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetUserProfileResponse.Builder>
-
build
Builds aGetUserProfileResponse.- Specified by:
buildin interfaceObjectBuilder<GetUserProfileResponse>- Throws:
NullPointerException- if some of the required fields are null.
-