Record Class ChangeRequestSource
java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.vcmr.ChangeRequestSource
public record ChangeRequestSource(String system, String id, String url, ChangeRequestSource.Status status, ZonedDateTime plannedStartTime, ZonedDateTime plannedEndTime, String category)
extends Record
- Author:
- olaa
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionChangeRequestSource(String system, String id, String url, ChangeRequestSource.Status status, ZonedDateTime plannedStartTime, ZonedDateTime plannedEndTime, String category) Creates an instance of aChangeRequestSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord 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.booleanisClosed()Returns the value of theplannedEndTimerecord component.Returns the value of theplannedStartTimerecord component.status()Returns the value of thestatusrecord component.system()Returns the value of thesystemrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
ChangeRequestSource
public ChangeRequestSource(String system, String id, String url, ChangeRequestSource.Status status, ZonedDateTime plannedStartTime, ZonedDateTime plannedEndTime, String category) Creates an instance of aChangeRequestSourcerecord class.- Parameters:
system- the value for thesystemrecord componentid- the value for theidrecord componenturl- the value for theurlrecord componentstatus- the value for thestatusrecord componentplannedStartTime- the value for theplannedStartTimerecord componentplannedEndTime- the value for theplannedEndTimerecord componentcategory- the value for thecategoryrecord component
-
-
Method Details
-
isClosed
public boolean isClosed() -
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). -
system
Returns the value of thesystemrecord component.- Returns:
- the value of the
systemrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
plannedStartTime
Returns the value of theplannedStartTimerecord component.- Returns:
- the value of the
plannedStartTimerecord component
-
plannedEndTime
Returns the value of theplannedEndTimerecord component.- Returns:
- the value of the
plannedEndTimerecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-