Class UserProfile
java.lang.Object
co.elastic.clients.elasticsearch.security.UserProfile
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
UserProfileWithMetadata
@JsonpDeserializable public class UserProfile extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classUserProfile.AbstractBuilder<BuilderT extends UserProfile.AbstractBuilder<BuilderT>>static classUserProfile.BuilderBuilder forUserProfile. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<UserProfile>_DESERIALIZERJson deserializer forUserProfile -
Constructor Summary
Constructors Modifier Constructor Description protectedUserProfile(UserProfile.AbstractBuilder<?> builder) -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,JsonData>data()Required - API name:datajava.lang.Booleanenabled()API name:enabledjava.util.Map<java.lang.String,JsonData>labels()Required - API name:labelsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <BuilderT extends UserProfile.AbstractBuilder<BuilderT>>
voidsetupUserProfileDeserializer(ObjectDeserializer<BuilderT> op)java.lang.StringtoString()java.lang.Stringuid()Required - API name:uidUserProfileUseruser()Required - API name:userstatic UserProfileuserProfileOf(java.util.function.Function<UserProfile.Builder,ObjectBuilder<UserProfile>> fn)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forUserProfile
-
-
Constructor Details
-
UserProfile
-
-
Method Details
-
userProfileOf
public static UserProfile userProfileOf(java.util.function.Function<UserProfile.Builder,ObjectBuilder<UserProfile>> fn) -
uid
public final java.lang.String uid()Required - API name:uid -
user
Required - API name:user -
data
Required - API name:data -
labels
Required - API name:labels -
enabled
@Nullable public final java.lang.Boolean enabled()API name:enabled -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupUserProfileDeserializer
protected static <BuilderT extends UserProfile.AbstractBuilder<BuilderT>> void setupUserProfileDeserializer(ObjectDeserializer<BuilderT> op)
-