Package dev.postproxy.sdk.param
Record Class YouTubeParams
java.lang.Object
java.lang.Record
dev.postproxy.sdk.param.YouTubeParams
public record YouTubeParams(YouTubeFormat format, String title, YouTubePrivacy privacyStatus, String coverUrl, Boolean madeForKids)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionYouTubeParams(YouTubeFormat format, String title, YouTubePrivacy privacyStatus, String coverUrl, Boolean madeForKids) Creates an instance of aYouTubeParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic YouTubeParams.Builderbuilder()coverUrl()Returns the value of thecoverUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themadeForKidsrecord component.Returns the value of theprivacyStatusrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
YouTubeParams
public YouTubeParams(YouTubeFormat format, String title, YouTubePrivacy privacyStatus, String coverUrl, Boolean madeForKids) Creates an instance of aYouTubeParamsrecord class.- Parameters:
format- the value for theformatrecord componenttitle- the value for thetitlerecord componentprivacyStatus- the value for theprivacyStatusrecord componentcoverUrl- the value for thecoverUrlrecord componentmadeForKids- the value for themadeForKidsrecord 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). -
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
privacyStatus
Returns the value of theprivacyStatusrecord component.- Returns:
- the value of the
privacyStatusrecord component
-
coverUrl
Returns the value of thecoverUrlrecord component.- Returns:
- the value of the
coverUrlrecord component
-
madeForKids
Returns the value of themadeForKidsrecord component.- Returns:
- the value of the
madeForKidsrecord component
-