com.geotab.model.entity.flashcode.FlashCode Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.entity.flashcode;
import com.geotab.model.entity.NameEntity;
import com.geotab.model.entity.diagnostic.Diagnostic;
import com.geotab.model.entity.failuremode.FailureMode;
import com.geotab.model.entity.faultdata.FaultData;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
* The optional summary code references for specific {@link Diagnostic} items referencing {@link
* FaultData} records.
*/
@NoArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class FlashCode extends NameEntity {
/**
* The circuit index reference to the flash code.
*/
private String circuitIndex;
/**
* The associated {@link Diagnostic} to the flash code.
*/
private Diagnostic diagnostic;
/**
* The associated {@link FailureMode} to the flash code.
*/
private FailureMode failureMode;
/**
* The flash code index.
*/
private String flashCodeIndex;
/**
* An optional URL which points to the associated documentation for the flash code.
*/
private String helpUrl;
/**
* The page reference, if applicable.
*/
private String pageReference;
/**
* The priority level of the fault flash code.
*/
private Integer priorityLevel;
@Builder
public FlashCode(String id, String name, String circuitIndex,
Diagnostic diagnostic, FailureMode failureMode, String flashCodeIndex, String helpUrl,
String pageReference, Integer priorityLevel) {
super(id, name);
this.circuitIndex = circuitIndex;
this.diagnostic = diagnostic;
this.failureMode = failureMode;
this.flashCodeIndex = flashCodeIndex;
this.helpUrl = helpUrl;
this.pageReference = pageReference;
this.priorityLevel = priorityLevel;
}
}