Class User
- java.lang.Object
-
- org.eclipse.microprofile.openapi.apps.airlines.model.User
-
public class User extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAge()Returns the age property of a User instance.StringgetEmail()Returns the email property of a User instance.StringgetFirstName()Returns firstName property of a User instance.ObjectgetFreeformNotes()StringgetFrequentFlyerNumber()StringgetFrequentFlyerProgrammeName()LocalDategetFrequentFlyerStartDate()GendergetGender()Returns the gender property of a User instance.booleangetHuman()intgetId()Returns the id property of a User instanceStringgetLastName()Returns the lastName property of a User instance.StringgetPassword()Returns the password property of a User instance.StringgetPhone()Returns the phone property of a User instance.StringgetPhoto()StringgetUndocumentedProperty()StringgetUserName()Returns the userName property of a User instance.intgetUserStatus()voidsetAge(int age)Sets the age property of a User instance to the parameter.voidsetEmail(String email)Sets the email property of a User instance to the parameter.voidsetFirstName(String firstName)Sets the firstName property of a User instance to the parameter.voidsetFreeformNotes(Object freeformNotes)voidsetFrequentFlyerNumber(String frequentFlyerNumber)voidsetFrequentFlyerProgrammeName(String frequentFlyerProgrammeName)voidsetFrequentFlyerStartDate(LocalDate frequentFlyerStartDate)voidsetGender(String gender)Sets the gender property of a User instance to the parameter.voidsetHuman(boolean human)voidsetId(int id)Sets the id property of a User instance to the parameter.voidsetLastName(String lastName)Sets the lastName property of a User instance to the parameter.voidsetPassword(String password)Sets the password property of a User instance to the parameter.voidsetPhone(String phone)Sets the phone property of a User instance to the parameter.voidsetPhoto(String photo)voidsetUndocumentedProperty(String undocumentedProperty)voidsetUserName(String userName)Sets the userName property of a User instance to the parameter.voidsetUserStatus(int status)Sets the status of this User instance.
-
-
-
Constructor Detail
-
User
public User(int id, String userName, String password, String firstName, String lastName, String gender, int age, String email, String phone, int status)Creates a User instance with the parameters specified.- Parameters:
id- the unique id for this User instanceuserName- the unique username for this User instancepassword- the unique password for this User instancefirstName- the first name for this User instancelastName- the last name for this User instancegender- the gender for this User instanceage- the age value for this User instanceemail- the email associated with this User instancephone- the phone number associated with this User instancestatus- the status associated with this User instance
-
-
Method Detail
-
getId
public int getId()
Returns the id property of a User instance- Returns:
- int id
-
setId
public void setId(int id)
Sets the id property of a User instance to the parameter.- Parameters:
id- the unique id for this User instance
-
getUserName
public String getUserName()
Returns the userName property of a User instance.- Returns:
- String userName
-
setUserName
public void setUserName(String userName)
Sets the userName property of a User instance to the parameter.- Parameters:
userName- the user name for this User instance
-
getPassword
public String getPassword()
Returns the password property of a User instance.- Returns:
- String password
-
setPassword
public void setPassword(String password)
Sets the password property of a User instance to the parameter.- Parameters:
password- the password associated with this User instance
-
getFirstName
public String getFirstName()
Returns firstName property of a User instance.- Returns:
- String firstName
-
setFirstName
public void setFirstName(String firstName)
Sets the firstName property of a User instance to the parameter.- Parameters:
firstName- the first name for this User instance
-
getLastName
public String getLastName()
Returns the lastName property of a User instance.- Returns:
- String lastName
-
setLastName
public void setLastName(String lastName)
Sets the lastName property of a User instance to the parameter.- Parameters:
lastName- the last name for this User instance
-
getGender
public Gender getGender()
Returns the gender property of a User instance.- Returns:
- the gender
-
setGender
public void setGender(String gender)
Sets the gender property of a User instance to the parameter.- Parameters:
gender- the gender for this User instance
-
getAge
public int getAge()
Returns the age property of a User instance.- Returns:
- int age
-
setAge
public void setAge(int age)
Sets the age property of a User instance to the parameter.- Parameters:
age- the age value for this User instance
-
getEmail
public String getEmail()
Returns the email property of a User instance.- Returns:
- String email
-
setEmail
public void setEmail(String email)
Sets the email property of a User instance to the parameter.- Parameters:
email- the email associated with this User instance
-
getPhone
public String getPhone()
Returns the phone property of a User instance.- Returns:
- String phone
-
setPhone
public void setPhone(String phone)
Sets the phone property of a User instance to the parameter.- Parameters:
phone- the phone number associated with this User instance
-
getUserStatus
public int getUserStatus()
-
setUserStatus
public void setUserStatus(int status)
Sets the status of this User instance.- Parameters:
status- an integer representing the status of this User instance
-
getUndocumentedProperty
public String getUndocumentedProperty()
-
setUndocumentedProperty
public void setUndocumentedProperty(String undocumentedProperty)
-
getFrequentFlyerNumber
public String getFrequentFlyerNumber()
-
setFrequentFlyerNumber
public void setFrequentFlyerNumber(String frequentFlyerNumber)
-
getFrequentFlyerProgrammeName
public String getFrequentFlyerProgrammeName()
-
setFrequentFlyerProgrammeName
public void setFrequentFlyerProgrammeName(String frequentFlyerProgrammeName)
-
getFrequentFlyerStartDate
public LocalDate getFrequentFlyerStartDate()
-
setFrequentFlyerStartDate
public void setFrequentFlyerStartDate(LocalDate frequentFlyerStartDate)
-
getPhoto
public String getPhoto()
-
setPhoto
public void setPhoto(String photo)
-
getHuman
public boolean getHuman()
-
setHuman
public void setHuman(boolean human)
-
getFreeformNotes
public Object getFreeformNotes()
-
setFreeformNotes
public void setFreeformNotes(Object freeformNotes)
-
-