Record Class Document
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.model.Document
- Record Components:
etag- the entity's ETag (@odata.etag), forIf-Matchid- The ID of the entry.. Deprecated in TM1 schema 11.5.0.name- The name of the entry.attributes- The attributes of the entry.containedBy- The folder that contains the entries. (when expanded)localizedAttributes- Translated string values for properties of the entry. (when expanded)size- The size of the document.lastUpdated- The date and time value of the last update of this document, with a time zone offset. (since 11.1.0)
- All Implemented Interfaces:
Entry
@Generated("io.skipcheck.tm1.codegen")
@Since("10.2.2.1")
public record Document(@Nullable String etag, @Nullable String id, @Nullable String name, @Nullable Attributes attributes, @Nullable Folder containedBy, @Nullable List<LocalizedAttributes> localizedAttributes, @Nullable Long size, @Since("11.1.0") @Nullable OffsetDateTime lastUpdated)
extends Record
implements Entry
An attached document.
A kind of Entry, read and sent with @odata.type #ibm.tm1.api.v1.Document.
Generated from $metadata. Every component is nullable: $select can leave any property out, and navigation properties are only there when expanded. Null components aren't sent.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Entry
Entry.PlainModifier and TypeInterfaceDescriptionstatic final recordAEntrythat's no subtype (@odata.type#ibm.tm1.api.v1.Entry, or none), or of a subtype this client doesn't know: then only theEntryproperties are read. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ODataPropertyLastUpdated, for queries: The date and time value of the last update of this document, with a time zone offset.static final ODataPropertySize, for queries: The size of the document.Fields inherited from interface Entry
ATTRIBUTES, CONTAINED_BY, ID, LOCALIZED_ATTRIBUTES, NAMEModifier and TypeFieldDescriptionstatic final ODataPropertyAttributes, for queries: The attributes of the entry.static final ODataPropertyContainedBy, for queries: The folder that contains the entries.static final ODataPropertyDeprecated.Deprecated in TM1 schema 11.5.0.static final ODataPropertyLocalizedAttributes, for queries: Translated string values for properties of the entry.static final ODataPropertyName, for queries: The name of the entry. -
Constructor Summary
ConstructorsConstructorDescriptionDocument(@Nullable String etag, @Nullable String id, @Nullable String name, @Nullable Attributes attributes, @Nullable Folder containedBy, @Nullable List<LocalizedAttributes> localizedAttributes, @Nullable Long size, @Nullable OffsetDateTime lastUpdated) Creates an instance of aDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable AttributesReturns the value of theattributesrecord component.@Nullable FolderReturns the value of thecontainedByrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Stringetag()Returns the value of theetagrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringid()Deprecated.@Nullable OffsetDateTimeReturns the value of thelastUpdatedrecord component.@Nullable List<LocalizedAttributes> Returns the value of thelocalizedAttributesrecord component.@Nullable Stringname()Returns the value of thenamerecord component.@Nullable Longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SIZE
Size, for queries: The size of the document. -
LAST_UPDATED
LastUpdated, for queries: The date and time value of the last update of this document, with a time zone offset.
-
-
Constructor Details
-
Document
public Document(@Nullable String etag, @Deprecated(since="11.5.0") @Nullable String id, @Nullable String name, @Nullable Attributes attributes, @Nullable Folder containedBy, @Nullable List<LocalizedAttributes> localizedAttributes, @Nullable Long size, @Nullable OffsetDateTime lastUpdated) Creates an instance of aDocumentrecord class.- Parameters:
etag- the value for theetagrecord componentid- the value for theidrecord componentname- the value for thenamerecord componentattributes- the value for theattributesrecord componentcontainedBy- the value for thecontainedByrecord componentlocalizedAttributes- the value for thelocalizedAttributesrecord componentsize- the value for thesizerecord componentlastUpdated- the value for thelastUpdatedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
etag
-
id
-
name
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfaceEntry- Returns:
- the value of the
attributesrecord component
-
containedBy
Returns the value of thecontainedByrecord component.- Specified by:
containedByin interfaceEntry- Returns:
- the value of the
containedByrecord component
-
localizedAttributes
Returns the value of thelocalizedAttributesrecord component.- Specified by:
localizedAttributesin interfaceEntry- Returns:
- the value of the
localizedAttributesrecord component
-
size
-
lastUpdated
Returns the value of thelastUpdatedrecord component.- Returns:
- the value of the
lastUpdatedrecord component
-