/src/main/java/com/nearfuturelaboratory/humans/twitter/entities/generated/Place.java

https://github.com/bleeckerj/HumansService · Java · 171 lines · 136 code · 35 blank · 0 comment · 0 complexity · 6871623dd9abeb2ba8cd7bed9e038833 MD5 · raw file

  1. package com.nearfuturelaboratory.humans.twitter.entities.generated;
  2. import javax.annotation.Generated;
  3. import com.google.gson.annotations.Expose;
  4. import com.google.gson.annotations.SerializedName;
  5. import org.apache.commons.lang.builder.EqualsBuilder;
  6. import org.apache.commons.lang.builder.HashCodeBuilder;
  7. import org.apache.commons.lang.builder.ToStringBuilder;
  8. import org.mongodb.morphia.annotations.Entity;
  9. @Generated("org.jsonschema2pojo")
  10. @Entity(value="place", noClassnameStored = true)
  11. public class Place {
  12. @Expose
  13. private Attributes attributes;
  14. @SerializedName("bounding_box")
  15. @Expose
  16. private BoundingBox boundingBox;
  17. @Expose
  18. private String country;
  19. @SerializedName("country_code")
  20. @Expose
  21. private String countryCode;
  22. @SerializedName("full_name")
  23. @Expose
  24. private String fullName;
  25. @Expose
  26. private String id;
  27. @Expose
  28. private String name;
  29. @SerializedName("place_type")
  30. @Expose
  31. private String placeType;
  32. @Expose
  33. private String url;
  34. public Attributes getAttributes() {
  35. return attributes;
  36. }
  37. public void setAttributes(Attributes attributes) {
  38. this.attributes = attributes;
  39. }
  40. public Place withAttributes(Attributes attributes) {
  41. this.attributes = attributes;
  42. return this;
  43. }
  44. public BoundingBox getBoundingBox() {
  45. return boundingBox;
  46. }
  47. public void setBoundingBox(BoundingBox boundingBox) {
  48. this.boundingBox = boundingBox;
  49. }
  50. public Place withBoundingBox(BoundingBox boundingBox) {
  51. this.boundingBox = boundingBox;
  52. return this;
  53. }
  54. public String getCountry() {
  55. return country;
  56. }
  57. public void setCountry(String country) {
  58. this.country = country;
  59. }
  60. public Place withCountry(String country) {
  61. this.country = country;
  62. return this;
  63. }
  64. public String getCountryCode() {
  65. return countryCode;
  66. }
  67. public void setCountryCode(String countryCode) {
  68. this.countryCode = countryCode;
  69. }
  70. public Place withCountryCode(String countryCode) {
  71. this.countryCode = countryCode;
  72. return this;
  73. }
  74. public String getFullName() {
  75. return fullName;
  76. }
  77. public void setFullName(String fullName) {
  78. this.fullName = fullName;
  79. }
  80. public Place withFullName(String fullName) {
  81. this.fullName = fullName;
  82. return this;
  83. }
  84. public String getId() {
  85. return id;
  86. }
  87. public void setId(String id) {
  88. this.id = id;
  89. }
  90. public Place withId(String id) {
  91. this.id = id;
  92. return this;
  93. }
  94. public String getName() {
  95. return name;
  96. }
  97. public void setName(String name) {
  98. this.name = name;
  99. }
  100. public Place withName(String name) {
  101. this.name = name;
  102. return this;
  103. }
  104. public String getPlaceType() {
  105. return placeType;
  106. }
  107. public void setPlaceType(String placeType) {
  108. this.placeType = placeType;
  109. }
  110. public Place withPlaceType(String placeType) {
  111. this.placeType = placeType;
  112. return this;
  113. }
  114. public String getUrl() {
  115. return url;
  116. }
  117. public void setUrl(String url) {
  118. this.url = url;
  119. }
  120. public Place withUrl(String url) {
  121. this.url = url;
  122. return this;
  123. }
  124. @Override
  125. public String toString() {
  126. return ToStringBuilder.reflectionToString(this);
  127. }
  128. @Override
  129. public int hashCode() {
  130. return HashCodeBuilder.reflectionHashCode(this);
  131. }
  132. @Override
  133. public boolean equals(Object other) {
  134. return EqualsBuilder.reflectionEquals(this, other);
  135. }
  136. }