Package dev.postproxy.sdk.model
Record Class Post
java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.Post
public record Post(String id, String body, PostStatus status, String scheduledAt, String createdAt, List<Media> media, List<PlatformResult> platforms, List<ThreadChild> thread, String queueId, String queuePriority)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPost(String id, String body, PostStatus status, String scheduledAt, String createdAt, List<Media> media, List<PlatformResult> platforms, List<ThreadChild> thread, String queueId, String queuePriority) Creates an instance of aPostrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.media()Returns the value of themediarecord component.Returns the value of theplatformsrecord component.queueId()Returns the value of thequeueIdrecord component.Returns the value of thequeuePriorityrecord component.Returns the value of thescheduledAtrecord component.status()Returns the value of thestatusrecord component.thread()Returns the value of thethreadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Post
public Post(String id, String body, PostStatus status, String scheduledAt, String createdAt, List<Media> media, List<PlatformResult> platforms, List<ThreadChild> thread, String queueId, String queuePriority) Creates an instance of aPostrecord class.- Parameters:
id- the value for theidrecord componentbody- the value for thebodyrecord componentstatus- the value for thestatusrecord componentscheduledAt- the value for thescheduledAtrecord componentcreatedAt- the value for thecreatedAtrecord componentmedia- the value for themediarecord componentplatforms- the value for theplatformsrecord componentthread- the value for thethreadrecord componentqueueId- the value for thequeueIdrecord componentqueuePriority- the value for thequeuePriorityrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
scheduledAt
Returns the value of thescheduledAtrecord component.- Returns:
- the value of the
scheduledAtrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
platforms
Returns the value of theplatformsrecord component.- Returns:
- the value of the
platformsrecord component
-
thread
Returns the value of thethreadrecord component.- Returns:
- the value of the
threadrecord component
-
queueId
Returns the value of thequeueIdrecord component.- Returns:
- the value of the
queueIdrecord component
-
queuePriority
Returns the value of thequeuePriorityrecord component.- Returns:
- the value of the
queuePriorityrecord component
-