![JAR search and dependency download from the Maven repository](/logo.png)
fi.metatavu.ngsi.netcdf.api.model.GetAttributeValueResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enfuser-ngsi-api-spec Show documentation
Show all versions of enfuser-ngsi-api-spec Show documentation
Server specification for ENFUSER NetCDF NGSI interface
The newest version!
package fi.metatavu.ngsi.netcdf.api.model;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
public class GetAttributeValueResponse {
private @Valid String address = null;
private @Valid Integer zipCode = null;
private @Valid String city = null;
private @Valid String country = null;
/**
*
**/
public GetAttributeValueResponse address(String address) {
this.address = address;
return this;
}
@ApiModelProperty(example = "Ronda de la Comunicacion s/n", required = true, value = "")
@NotNull
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
/**
*
**/
public GetAttributeValueResponse zipCode(Integer zipCode) {
this.zipCode = zipCode;
return this;
}
@ApiModelProperty(example = "28050", required = true, value = "")
@NotNull
public Integer getZipCode() {
return zipCode;
}
public void setZipCode(Integer zipCode) {
this.zipCode = zipCode;
}
/**
*
**/
public GetAttributeValueResponse city(String city) {
this.city = city;
return this;
}
@ApiModelProperty(example = "Madrid", required = true, value = "")
@NotNull
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
/**
*
**/
public GetAttributeValueResponse country(String country) {
this.country = country;
return this;
}
@ApiModelProperty(example = "Spain", required = true, value = "")
@NotNull
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetAttributeValueResponse getAttributeValueResponse = (GetAttributeValueResponse) o;
return Objects.equals(address, getAttributeValueResponse.address) &&
Objects.equals(zipCode, getAttributeValueResponse.zipCode) &&
Objects.equals(city, getAttributeValueResponse.city) &&
Objects.equals(country, getAttributeValueResponse.country);
}
@Override
public int hashCode() {
return Objects.hash(address, zipCode, city, country);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetAttributeValueResponse {\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" zipCode: ").append(toIndentedString(zipCode)).append("\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy