Class Review
java.lang.Object
org.eclipse.microprofile.openapi.apps.airlines.model.Review
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Airlines of this ReviewReturns the comments of this ReviewgetId()Returns the id of this ReviewintReturns the rating of this ReviewgetUser()Returns the user of this ReviewvoidsetAirlinesID(Airline airlines) Sets the airlines for this ReviewvoidsetComment(String comment) Sets the comments for this ReviewvoidSets the id for this ReviewvoidsetRating(int rating) Sets the rating for this ReviewvoidSets the user for this ReviewtoString()
-
Constructor Details
-
Review
Creates an instance of the Review object with the given fields.- Parameters:
id- the unique id of this Reviewuser- the user associated with this Reviewairlines- the Airline associated with this Reviewrating- the rating for this Reviewcomment- the comments for this Review
-
-
Method Details
-
getId
Returns the id of this Review- Returns:
- id
-
setId
Sets the id for this Review- Parameters:
id- the unique id of this Review
-
getUser
Returns the user of this Review- Returns:
- user
-
setUser
Sets the user for this Review- Parameters:
user- the user associated with this Review
-
getAirlines
Returns the Airlines of this Review- Returns:
- airlines
-
setAirlinesID
Sets the airlines for this Review- Parameters:
airlines- the Airline associated with this Review
-
getRating
public int getRating()Returns the rating of this Review- Returns:
- rating
-
setRating
public void setRating(int rating) Sets the rating for this Review- Parameters:
rating- the rating for this Review
-
getComment
Returns the comments of this Review- Returns:
- comment
-
setComment
Sets the comments for this Review- Parameters:
comment- the comments for this Review
-
toString
-