Class Review
- java.lang.Object
-
- org.eclipse.microprofile.openapi.apps.airlines.model.Review
-
public class Review extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Airline
getAirlines()
Returns the Airlines of this ReviewString
getComment()
Returns the comments of this ReviewString
getId()
Returns the id of this Reviewint
getRating()
Returns the rating of this ReviewUser
getUser()
Returns the user of this Reviewvoid
setAirlinesID(Airline airlines)
Sets the airlines for this Reviewvoid
setComment(String comment)
Sets the comments for this Reviewvoid
setId(String id)
Sets the id for this Reviewvoid
setRating(int rating)
Sets the rating for this Reviewvoid
setUser(User user)
Sets the user for this ReviewString
toString()
-
-
-
Constructor Detail
-
Review
public Review(String id, User user, Airline airlines, int rating, String comment)
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 Detail
-
getId
public String getId()
Returns the id of this Review- Returns:
- id
-
setId
public void setId(String id)
Sets the id for this Review- Parameters:
id
- the unique id of this Review
-
getUser
public User getUser()
Returns the user of this Review- Returns:
- user
-
setUser
public void setUser(User user)
Sets the user for this Review- Parameters:
user
- the user associated with this Review
-
getAirlines
public Airline getAirlines()
Returns the Airlines of this Review- Returns:
- airlines
-
setAirlinesID
public void setAirlinesID(Airline airlines)
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
public String getComment()
Returns the comments of this Review- Returns:
- comment
-
setComment
public void setComment(String comment)
Sets the comments for this Review- Parameters:
comment
- the comments for this Review
-
-