Package dev.postproxy.sdk.param
Record Class CreatePostParams
java.lang.Object
java.lang.Record
dev.postproxy.sdk.param.CreatePostParams
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.static CreatePostParams.Builderbuilder()draft()Returns the value of thedraftrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.media()Returns the value of themediarecord component.Returns the value of themediaFilesrecord component.Returns the value of theplatformsrecord component.Returns the value of theprofileGroupIdrecord component.profiles()Returns the value of theprofilesrecord component.Returns the value of thescheduledAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreatePostParams
public CreatePostParams(String body, List<String> profiles, List<String> media, List<Path> mediaFiles, PlatformParams platforms, String scheduledAt, Boolean draft, String profileGroupId) Creates an instance of aCreatePostParamsrecord class.- Parameters:
body- the value for thebodyrecord componentprofiles- the value for theprofilesrecord componentmedia- the value for themediarecord componentmediaFiles- the value for themediaFilesrecord componentplatforms- the value for theplatformsrecord componentscheduledAt- the value for thescheduledAtrecord componentdraft- the value for thedraftrecord componentprofileGroupId- the value for theprofileGroupIdrecord component
-
-
Method Details
-
builder
-
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). -
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
profiles
Returns the value of theprofilesrecord component.- Returns:
- the value of the
profilesrecord component
-
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
mediaFiles
Returns the value of themediaFilesrecord component.- Returns:
- the value of the
mediaFilesrecord component
-
platforms
Returns the value of theplatformsrecord component.- Returns:
- the value of the
platformsrecord component
-
scheduledAt
Returns the value of thescheduledAtrecord component.- Returns:
- the value of the
scheduledAtrecord component
-
draft
Returns the value of thedraftrecord component.- Returns:
- the value of the
draftrecord component
-
profileGroupId
Returns the value of theprofileGroupIdrecord component.- Returns:
- the value of the
profileGroupIdrecord component
-