Record Class SubscribedService
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.dto.subscription.SubscribedService
- Record Components:
id- Identifier of the subscribed service.injection- True if the service concerns production (injection) data.consumption- True if the service concerns consumption (withdrawal) data.serviceType- Code of the service (e.g.ServiceType.ACCES).start- Start date of the service.end- End date of the service.state- State of the service.stateLabel- Label associated with the state.pointId- Identifier of the point (the PRM).holderSiren- SIREN of the point holder.beneficiarySiren- SIREN of the service beneficiary.measureType- Type of measurement (CDC, IDX, PMAX, ENERGIE, ITC).measureStep- Measurement step (PT10M, PT15M, PT30M, P1D, NA).transmissionPeriodicity- Data publication frequency (P1D, P7D, P1M).correctedMeasures- Whether the measures are corrected or raw.dynamicSpace- True if the service is intended for the dynamic space.dataPublication- True if the service is an access service with a publication option.- Authorization details associated with the service.
public record SubscribedService(@Nullable String id, @Nullable Boolean injection, @Nullable Boolean consumption, @Nullable ServiceType serviceType, @Nullable LocalDate start, @Nullable LocalDate end, @Nullable ServiceState state, @Nullable String stateLabel, @Nullable String pointId, @Nullable String holderSiren, @Nullable String beneficiarySiren, @Nullable MeasureType measureType, @Nullable String measureStep, @Nullable String transmissionPeriodicity, @Nullable Boolean correctedMeasures, @Nullable Boolean dynamicSpace, @Nullable Boolean dataPublication, @Nullable ServiceAuthorization authorization)
extends Record
A single subscribed service as returned by the subscribed services API.
-
Constructor Summary
ConstructorsConstructorDescriptionSubscribedService(@Nullable String id, @Nullable Boolean injection, @Nullable Boolean consumption, @Nullable ServiceType serviceType, @Nullable LocalDate start, @Nullable LocalDate end, @Nullable ServiceState state, @Nullable String stateLabel, @Nullable String pointId, @Nullable String holderSiren, @Nullable String beneficiarySiren, @Nullable MeasureType measureType, @Nullable String measureStep, @Nullable String transmissionPeriodicity, @Nullable Boolean correctedMeasures, @Nullable Boolean dynamicSpace, @Nullable Boolean dataPublication, @Nullable ServiceAuthorization authorization) Creates an instance of aSubscribedServicerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ServiceAuthorizationReturns the value of theauthorizationrecord component.@Nullable StringReturns the value of thebeneficiarySirenrecord component.@Nullable BooleanReturns the value of theconsumptionrecord component.@Nullable BooleanReturns the value of thecorrectedMeasuresrecord component.@Nullable BooleanReturns the value of thedataPublicationrecord component.@Nullable BooleanReturns the value of thedynamicSpacerecord component.@Nullable LocalDateend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theholderSirenrecord component.@Nullable Stringid()Returns the value of theidrecord component.@Nullable BooleanReturns the value of theinjectionrecord component.@Nullable StringReturns the value of themeasureSteprecord component.@Nullable MeasureTypeReturns the value of themeasureTyperecord component.@Nullable StringpointId()Returns the value of thepointIdrecord component.@Nullable ServiceTypeReturns the value of theserviceTyperecord component.@Nullable LocalDatestart()Returns the value of thestartrecord component.@Nullable ServiceStatestate()Returns the value of thestaterecord component.@Nullable StringReturns the value of thestateLabelrecord component.final StringtoString()Returns a string representation of this record class.@Nullable StringReturns the value of thetransmissionPeriodicityrecord component.
-
Constructor Details
-
SubscribedService
public SubscribedService(@Nullable String id, @Nullable Boolean injection, @Nullable Boolean consumption, @Nullable ServiceType serviceType, @Nullable LocalDate start, @Nullable LocalDate end, @Nullable ServiceState state, @Nullable String stateLabel, @Nullable String pointId, @Nullable String holderSiren, @Nullable String beneficiarySiren, @Nullable MeasureType measureType, @Nullable String measureStep, @Nullable String transmissionPeriodicity, @Nullable Boolean correctedMeasures, @Nullable Boolean dynamicSpace, @Nullable Boolean dataPublication, @Nullable ServiceAuthorization authorization) Creates an instance of aSubscribedServicerecord class.- Parameters:
id- the value for theidrecord componentinjection- the value for theinjectionrecord componentconsumption- the value for theconsumptionrecord componentserviceType- the value for theserviceTyperecord componentstart- the value for thestartrecord componentend- the value for theendrecord componentstate- the value for thestaterecord componentstateLabel- the value for thestateLabelrecord componentpointId- the value for thepointIdrecord componentholderSiren- the value for theholderSirenrecord componentbeneficiarySiren- the value for thebeneficiarySirenrecord componentmeasureType- the value for themeasureTyperecord componentmeasureStep- the value for themeasureSteprecord componenttransmissionPeriodicity- the value for thetransmissionPeriodicityrecord componentcorrectedMeasures- the value for thecorrectedMeasuresrecord componentdynamicSpace- the value for thedynamicSpacerecord componentdataPublication- the value for thedataPublicationrecord componentauthorization- the value for theauthorizationrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
injection
Returns the value of theinjectionrecord component.- Returns:
- the value of the
injectionrecord component
-
consumption
Returns the value of theconsumptionrecord component.- Returns:
- the value of the
consumptionrecord component
-
serviceType
Returns the value of theserviceTyperecord component.- Returns:
- the value of the
serviceTyperecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
stateLabel
Returns the value of thestateLabelrecord component.- Returns:
- the value of the
stateLabelrecord component
-
pointId
Returns the value of thepointIdrecord component.- Returns:
- the value of the
pointIdrecord component
-
holderSiren
Returns the value of theholderSirenrecord component.- Returns:
- the value of the
holderSirenrecord component
-
beneficiarySiren
Returns the value of thebeneficiarySirenrecord component.- Returns:
- the value of the
beneficiarySirenrecord component
-
measureType
Returns the value of themeasureTyperecord component.- Returns:
- the value of the
measureTyperecord component
-
measureStep
Returns the value of themeasureSteprecord component.- Returns:
- the value of the
measureSteprecord component
-
transmissionPeriodicity
Returns the value of thetransmissionPeriodicityrecord component.- Returns:
- the value of the
transmissionPeriodicityrecord component
-
correctedMeasures
Returns the value of thecorrectedMeasuresrecord component.- Returns:
- the value of the
correctedMeasuresrecord component
-
dynamicSpace
Returns the value of thedynamicSpacerecord component.- Returns:
- the value of the
dynamicSpacerecord component
-
dataPublication
Returns the value of thedataPublicationrecord component.- Returns:
- the value of the
dataPublicationrecord component
-
authorization
Returns the value of theauthorizationrecord component.- Returns:
- the value of the
authorizationrecord component
-