Module org.elasticsearch.security
Record Class ProfileDocument
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.security.profile.ProfileDocument
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public record ProfileDocument(String uid, boolean enabled, long lastSynchronized, ProfileDocument.ProfileDocumentUser user, Map<String,Object> labels, BytesReference applicationData)
extends Record
implements org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionProfileDocument(String uid, boolean enabled, long lastSynchronized, ProfileDocument.ProfileDocumentUser user, Map<String, Object> labels, BytesReference applicationData) Creates an instance of aProfileDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationDatarecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.static ProfileDocumentfromXContent(org.elasticsearch.xcontent.XContentParser parser) final inthashCode()Returns a hash code value for this object.labels()Returns the value of thelabelsrecord component.longReturns the value of thelastSynchronizedrecord component.final StringtoString()Returns a string representation of this record class.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) uid()Returns the value of theuidrecord component.user()Returns the value of theuserrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
ProfileDocument
public ProfileDocument(String uid, boolean enabled, long lastSynchronized, ProfileDocument.ProfileDocumentUser user, Map<String, Object> labels, BytesReference applicationData) Creates an instance of aProfileDocumentrecord class.- Parameters:
uid- the value for theuidrecord componentenabled- the value for theenabledrecord componentlastSynchronized- the value for thelastSynchronizedrecord componentuser- the value for theuserrecord componentlabels- the value for thelabelsrecord componentapplicationData- the value for theapplicationDatarecord component
-
-
Method Details
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
fromXContent
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uid
Returns the value of theuidrecord component.- Returns:
- the value of the
uidrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
lastSynchronized
public long lastSynchronized()Returns the value of thelastSynchronizedrecord component.- Returns:
- the value of the
lastSynchronizedrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-
applicationData
Returns the value of theapplicationDatarecord component.- Returns:
- the value of the
applicationDatarecord component
-