Record Class Attachment
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.model.Attachment
- Record Components:
etag- the entity's ETag (@odata.etag), forIf-Matchname- The name of the attachment.description- A description of the attachment.contentType- The type of content in the attachment.size- The size of the attachment.
@Generated("io.skipcheck.tm1.codegen")
public record Attachment(@Nullable String etag, @Nullable String name, @Nullable String description, @Nullable String contentType, @Nullable Long size)
extends Record
An attached document that provides details and background.
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ODataPropertyContentType, for queries: The type of content in the attachment.static final ODataPropertyDescription, for queries: A description of the attachment.static final ODataPropertyName, for queries: The name of the attachment.static final ODataPropertySize, for queries: The size of the attachment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thecontentTyperecord component.@Nullable StringReturns the value of thedescriptionrecord 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 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
-
NAME
Name, for queries: The name of the attachment. -
DESCRIPTION
Description, for queries: A description of the attachment. -
CONTENT_TYPE
ContentType, for queries: The type of content in the attachment. -
SIZE
Size, for queries: The size of the attachment.
-
-
Constructor Details
-
Attachment
public Attachment(@Nullable String etag, @Nullable String name, @Nullable String description, @Nullable String contentType, @Nullable Long size) Creates an instance of aAttachmentrecord class.- Parameters:
etag- the value for theetagrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentcontentType- the value for thecontentTyperecord componentsize- the value for thesizerecord 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
-
name
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
size
-