PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/keystone-model/src/main/java/com/woorea/openstack/keystone/model/User.java

http://github.com/woorea/openstack-java-sdk
Java | 134 lines | 63 code | 26 blank | 45 comment | 0 complexity | 4678c8eda4df56a7ca200fdd6606f065 MD5 | raw file
  1. package com.woorea.openstack.keystone.model;
  2. import java.io.Serializable;
  3. import com.fasterxml.jackson.annotation.JsonProperty;
  4. import com.fasterxml.jackson.annotation.JsonRootName;
  5. @JsonRootName("user")
  6. public class User implements Serializable {
  7. private String id;
  8. private String username;
  9. @JsonProperty("OS-KSADM:password")
  10. private String password;
  11. private String tenantId;
  12. private String name;
  13. private String email;
  14. private Boolean enabled;
  15. /**
  16. * @return the id
  17. */
  18. public String getId() {
  19. return id;
  20. }
  21. /**
  22. * @param id the id to set
  23. */
  24. public void setId(String id) {
  25. this.id = id;
  26. }
  27. /**
  28. * @return the username
  29. */
  30. public String getUsername() {
  31. return username;
  32. }
  33. /**
  34. * @param username the username to set
  35. */
  36. public void setUsername(String username) {
  37. this.username = username;
  38. }
  39. /**
  40. * @return the password
  41. */
  42. public String getPassword() {
  43. return password;
  44. }
  45. /**
  46. * @param password the password to set
  47. */
  48. public void setPassword(String password) {
  49. this.password = password;
  50. }
  51. /**
  52. * @return the tenantId
  53. */
  54. public String getTenantId() {
  55. return tenantId;
  56. }
  57. /**
  58. * @param tenantId the tenantId to set
  59. */
  60. public void setTenantId(String tenantId) {
  61. this.tenantId = tenantId;
  62. }
  63. /**
  64. * @return the name
  65. */
  66. public String getName() {
  67. return name;
  68. }
  69. /**
  70. * @param name the name to set
  71. */
  72. public void setName(String name) {
  73. this.name = name;
  74. }
  75. /**
  76. * @return the email
  77. */
  78. public String getEmail() {
  79. return email;
  80. }
  81. /**
  82. * @param email the email to set
  83. */
  84. public void setEmail(String email) {
  85. this.email = email;
  86. }
  87. /**
  88. * @return the enabled
  89. */
  90. public Boolean getEnabled() {
  91. return enabled;
  92. }
  93. /**
  94. * @param enabled the enabled to set
  95. */
  96. public void setEnabled(Boolean enabled) {
  97. this.enabled = enabled;
  98. }
  99. /* (non-Javadoc)
  100. * @see java.lang.Object#toString()
  101. */
  102. @Override
  103. public String toString() {
  104. return "User [id=" + id + ", username=" + username + ", password="
  105. + password + ", tenantId=" + tenantId + ", name=" + name
  106. + ", email=" + email + ", enabled=" + enabled + "]";
  107. }
  108. }