Class User
java.lang.Object
org.eclipse.microprofile.openapi.apps.airlines.model.User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetAge()Returns the age property of a User instance.getEmail()Returns the email property of a User instance.Returns firstName property of a User instance.Returns the gender property of a User instance.intgetId()Returns the id property of a User instanceReturns the lastName property of a User instance.Returns the password property of a User instance.getPhone()Returns the phone property of a User instance.Returns the userName property of a User instance.intvoidsetAge(int age) Sets the age property of a User instance to the parameter.voidSets the email property of a User instance to the parameter.voidsetFirstName(String firstName) Sets the firstName property of a User instance to the parameter.voidSets the gender property of a User instance to the parameter.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.voidSets the phone property of a User instance to the parameter.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 Details
-
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 Details
-
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
Returns the userName property of a User instance.- Returns:
- String userName
-
setUserName
Sets the userName property of a User instance to the parameter.- Parameters:
userName- the user name for this User instance
-
getPassword
Returns the password property of a User instance.- Returns:
- String password
-
setPassword
Sets the password property of a User instance to the parameter.- Parameters:
password- the password associated with this User instance
-
getFirstName
Returns firstName property of a User instance.- Returns:
- String firstName
-
setFirstName
Sets the firstName property of a User instance to the parameter.- Parameters:
firstName- the first name for this User instance
-
getLastName
Returns the lastName property of a User instance.- Returns:
- String lastName
-
setLastName
Sets the lastName property of a User instance to the parameter.- Parameters:
lastName- the last name for this User instance
-
getGender
Returns the gender property of a User instance.- Returns:
- the gender
-
setGender
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
Returns the email property of a User instance.- Returns:
- String email
-
setEmail
Sets the email property of a User instance to the parameter.- Parameters:
email- the email associated with this User instance
-
getPhone
Returns the phone property of a User instance.- Returns:
- String phone
-
setPhone
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
-
setUndocumentedProperty
-