Record Class DashScopeVideoResponse.VideoUsage
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.video.model.DashScopeVideoResponse.VideoUsage
- Enclosing class:
- DashScopeVideoResponse
-
Constructor Summary
ConstructorsConstructorDescriptionVideoUsage(int duration, int inputVideoDuration, int outputVideoDuration, int video_count, int sr, String size, String videoRatio, String videoDuration, int imageCount) Creates an instance of aVideoUsagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theimageCountrecord component.intReturns the value of theinputVideoDurationrecord component.intReturns the value of theoutputVideoDurationrecord component.size()Returns the value of thesizerecord component.intsr()Returns the value of thesrrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevideo_countrecord component.Returns the value of thevideoDurationrecord component.Returns the value of thevideoRatiorecord component.
-
Constructor Details
-
VideoUsage
public VideoUsage(int duration, int inputVideoDuration, int outputVideoDuration, int video_count, int sr, String size, String videoRatio, String videoDuration, int imageCount) Creates an instance of aVideoUsagerecord class.- Parameters:
duration- the value for thedurationrecord componentinputVideoDuration- the value for theinputVideoDurationrecord componentoutputVideoDuration- the value for theoutputVideoDurationrecord componentvideo_count- the value for thevideo_countrecord componentsr- the value for thesrrecord componentsize- the value for thesizerecord componentvideoRatio- the value for thevideoRatiorecord componentvideoDuration- the value for thevideoDurationrecord componentimageCount- the value for theimageCountrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
duration
public int duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
inputVideoDuration
public int inputVideoDuration()Returns the value of theinputVideoDurationrecord component.- Returns:
- the value of the
inputVideoDurationrecord component
-
outputVideoDuration
public int outputVideoDuration()Returns the value of theoutputVideoDurationrecord component.- Returns:
- the value of the
outputVideoDurationrecord component
-
video_count
public int video_count()Returns the value of thevideo_countrecord component.- Returns:
- the value of the
video_countrecord component
-
sr
public int sr()Returns the value of thesrrecord component.- Returns:
- the value of the
srrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
videoRatio
Returns the value of thevideoRatiorecord component.- Returns:
- the value of the
videoRatiorecord component
-
videoDuration
Returns the value of thevideoDurationrecord component.- Returns:
- the value of the
videoDurationrecord component
-
imageCount
public int imageCount()Returns the value of theimageCountrecord component.- Returns:
- the value of the
imageCountrecord component
-