Package fr.enedis.chutney.execution.api
Record Class CampaignExecutionReportSummaryDto
java.lang.Object
java.lang.Record
fr.enedis.chutney.execution.api.CampaignExecutionReportSummaryDto
public record CampaignExecutionReportSummaryDto(Long executionId, String campaignName, LocalDateTime startDate, ServerReportStatus status, String dataSetId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCampaignExecutionReportSummaryDto(Long executionId, String campaignName, LocalDateTime startDate, ServerReportStatus status, String dataSetId) Creates an instance of aCampaignExecutionReportSummaryDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecampaignNamerecord component.Returns the value of thedataSetIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thestartDaterecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CampaignExecutionReportSummaryDto
public CampaignExecutionReportSummaryDto(Long executionId, String campaignName, LocalDateTime startDate, ServerReportStatus status, String dataSetId) Creates an instance of aCampaignExecutionReportSummaryDtorecord class.- Parameters:
executionId- the value for theexecutionIdrecord componentcampaignName- the value for thecampaignNamerecord componentstartDate- the value for thestartDaterecord componentstatus- the value for thestatusrecord componentdataSetId- the value for thedataSetIdrecord 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). -
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
campaignName
Returns the value of thecampaignNamerecord component.- Returns:
- the value of the
campaignNamerecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
dataSetId
Returns the value of thedataSetIdrecord component.- Returns:
- the value of the
dataSetIdrecord component
-