Record Class ScenarioGenerationRequest
java.lang.Object
java.lang.Record
it.uniupo.simnova.service.ai_api.model.ScenarioGenerationRequest
- Record Components:
- description- descrizione dello scenario
- scenarioType- tipologia di scenario
- target- target dello scenario
- difficulty- difficoltà dello scenario
public record ScenarioGenerationRequest(String description, String scenarioType, String target, String difficulty)
extends Record
DTO per la richiesta di generazione di uno scenario.
- Version:
- 1.0
- Author:
- Alessandro Zappatore
- 
Constructor SummaryConstructorsConstructorDescriptionScenarioGenerationRequest(String description, String scenarioType, String target) Costruttore per la richiesta di generazione di uno scenario con difficoltà predefinita "Medio".ScenarioGenerationRequest(String description, String scenarioType, String target, String difficulty) Creates an instance of aScenarioGenerationRequestrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.Returns the value of thedifficultyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thescenarioTyperecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
ScenarioGenerationRequestCostruttore per la richiesta di generazione di uno scenario con difficoltà predefinita "Medio".- Parameters:
- description- descrizione dello scenario
- scenarioType- tipologia di scenario
- target- target dello scenario
 
- 
ScenarioGenerationRequestpublic ScenarioGenerationRequest(String description, String scenarioType, String target, String difficulty) Creates an instance of aScenarioGenerationRequestrecord class.- Parameters:
- description- the value for the- descriptionrecord component
- scenarioType- the value for the- scenarioTyperecord component
- target- the value for the- targetrecord component
- difficulty- the value for the- difficultyrecord component
 
 
- 
- 
Method Details- 
toString
- 
hashCode
- 
equalsIndicates 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).
- 
descriptionReturns the value of thedescriptionrecord component.- Returns:
- the value of the descriptionrecord component
 
- 
scenarioTypeReturns the value of thescenarioTyperecord component.- Returns:
- the value of the scenarioTyperecord component
 
- 
target
- 
difficultyReturns the value of thedifficultyrecord component.- Returns:
- the value of the difficultyrecord component
 
 
-