Created
March 5, 2013 00:15
-
-
Save akutz/5086909 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----------------------------------com.example.Example.java----------------------------------- | |
package com.example; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import org.apache.commons.lang.builder.EqualsBuilder; | |
import org.apache.commons.lang.builder.HashCodeBuilder; | |
import org.apache.commons.lang.builder.ToStringBuilder; | |
@JsonInclude(JsonInclude.Include.NON_NULL) | |
@Generated("com.googlecode.jsonschema2pojo") | |
@JsonPropertyOrder({ | |
"result", | |
"responseObjectType", | |
"responseObject" | |
}) | |
public class Example { | |
@JsonProperty("result") | |
private Result result; | |
@JsonProperty("responseObjectType") | |
private String responseObjectType; | |
@JsonProperty("responseObject") | |
private ResponseObject responseObject; | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("result") | |
public Result getResult() { | |
return result; | |
} | |
@JsonProperty("result") | |
public void setResult(Result result) { | |
this.result = result; | |
} | |
public Example withResult(Result result) { | |
this.result = result; | |
return this; | |
} | |
@JsonProperty("responseObjectType") | |
public String getResponseObjectType() { | |
return responseObjectType; | |
} | |
@JsonProperty("responseObjectType") | |
public void setResponseObjectType(String responseObjectType) { | |
this.responseObjectType = responseObjectType; | |
} | |
public Example withResponseObjectType(String responseObjectType) { | |
this.responseObjectType = responseObjectType; | |
return this; | |
} | |
@JsonProperty("responseObject") | |
public ResponseObject getResponseObject() { | |
return responseObject; | |
} | |
@JsonProperty("responseObject") | |
public void setResponseObject(ResponseObject responseObject) { | |
this.responseObject = responseObject; | |
} | |
public Example withResponseObject(ResponseObject responseObject) { | |
this.responseObject = responseObject; | |
return this; | |
} | |
@Override | |
public String toString() { | |
return ToStringBuilder.reflectionToString(this); | |
} | |
@Override | |
public int hashCode() { | |
return HashCodeBuilder.reflectionHashCode(this); | |
} | |
@Override | |
public boolean equals(Object other) { | |
return EqualsBuilder.reflectionEquals(this, other); | |
} | |
@JsonAnyGetter | |
public Map<String, Object> getAdditionalProperties() { | |
return this.additionalProperties; | |
} | |
@JsonAnySetter | |
public void setAdditionalProperties(String name, Object value) { | |
this.additionalProperties.put(name, value); | |
} | |
} | |
-----------------------------------com.example.Host.java----------------------------------- | |
package com.example; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import org.apache.commons.lang.builder.EqualsBuilder; | |
import org.apache.commons.lang.builder.HashCodeBuilder; | |
import org.apache.commons.lang.builder.ToStringBuilder; | |
@JsonInclude(JsonInclude.Include.NON_NULL) | |
@Generated("com.googlecode.jsonschema2pojo") | |
@JsonPropertyOrder({ | |
"id", | |
"name", | |
"dnsName", | |
"ipAddress", | |
"hostOsId", | |
"siteId", | |
"tenantId" | |
}) | |
public class Host { | |
@JsonProperty("id") | |
private Integer id; | |
@JsonProperty("name") | |
private String name; | |
@JsonProperty("dnsName") | |
private Object dnsName; | |
@JsonProperty("ipAddress") | |
private Object ipAddress; | |
@JsonProperty("hostOsId") | |
private Integer hostOsId; | |
@JsonProperty("siteId") | |
private Integer siteId; | |
@JsonProperty("tenantId") | |
private Integer tenantId; | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("id") | |
public Integer getId() { | |
return id; | |
} | |
@JsonProperty("id") | |
public void setId(Integer id) { | |
this.id = id; | |
} | |
public Host withId(Integer id) { | |
this.id = id; | |
return this; | |
} | |
@JsonProperty("name") | |
public String getName() { | |
return name; | |
} | |
@JsonProperty("name") | |
public void setName(String name) { | |
this.name = name; | |
} | |
public Host withName(String name) { | |
this.name = name; | |
return this; | |
} | |
@JsonProperty("dnsName") | |
public Object getDnsName() { | |
return dnsName; | |
} | |
@JsonProperty("dnsName") | |
public void setDnsName(Object dnsName) { | |
this.dnsName = dnsName; | |
} | |
public Host withDnsName(Object dnsName) { | |
this.dnsName = dnsName; | |
return this; | |
} | |
@JsonProperty("ipAddress") | |
public Object getIpAddress() { | |
return ipAddress; | |
} | |
@JsonProperty("ipAddress") | |
public void setIpAddress(Object ipAddress) { | |
this.ipAddress = ipAddress; | |
} | |
public Host withIpAddress(Object ipAddress) { | |
this.ipAddress = ipAddress; | |
return this; | |
} | |
@JsonProperty("hostOsId") | |
public Integer getHostOsId() { | |
return hostOsId; | |
} | |
@JsonProperty("hostOsId") | |
public void setHostOsId(Integer hostOsId) { | |
this.hostOsId = hostOsId; | |
} | |
public Host withHostOsId(Integer hostOsId) { | |
this.hostOsId = hostOsId; | |
return this; | |
} | |
@JsonProperty("siteId") | |
public Integer getSiteId() { | |
return siteId; | |
} | |
@JsonProperty("siteId") | |
public void setSiteId(Integer siteId) { | |
this.siteId = siteId; | |
} | |
public Host withSiteId(Integer siteId) { | |
this.siteId = siteId; | |
return this; | |
} | |
@JsonProperty("tenantId") | |
public Integer getTenantId() { | |
return tenantId; | |
} | |
@JsonProperty("tenantId") | |
public void setTenantId(Integer tenantId) { | |
this.tenantId = tenantId; | |
} | |
public Host withTenantId(Integer tenantId) { | |
this.tenantId = tenantId; | |
return this; | |
} | |
@Override | |
public String toString() { | |
return ToStringBuilder.reflectionToString(this); | |
} | |
@Override | |
public int hashCode() { | |
return HashCodeBuilder.reflectionHashCode(this); | |
} | |
@Override | |
public boolean equals(Object other) { | |
return EqualsBuilder.reflectionEquals(this, other); | |
} | |
@JsonAnyGetter | |
public Map<String, Object> getAdditionalProperties() { | |
return this.additionalProperties; | |
} | |
@JsonAnySetter | |
public void setAdditionalProperties(String name, Object value) { | |
this.additionalProperties.put(name, value); | |
} | |
} | |
-----------------------------------com.example.ResponseObject.java----------------------------------- | |
package com.example; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import org.apache.commons.lang.builder.EqualsBuilder; | |
import org.apache.commons.lang.builder.HashCodeBuilder; | |
import org.apache.commons.lang.builder.ToStringBuilder; | |
@JsonInclude(JsonInclude.Include.NON_NULL) | |
@Generated("com.googlecode.jsonschema2pojo") | |
@JsonPropertyOrder({ | |
"hosts" | |
}) | |
public class ResponseObject { | |
@JsonProperty("hosts") | |
private List<Host> hosts = new ArrayList<Host>(); | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("hosts") | |
public List<Host> getHosts() { | |
return hosts; | |
} | |
@JsonProperty("hosts") | |
public void setHosts(List<Host> hosts) { | |
this.hosts = hosts; | |
} | |
public ResponseObject withHosts(List<Host> hosts) { | |
this.hosts = hosts; | |
return this; | |
} | |
@Override | |
public String toString() { | |
return ToStringBuilder.reflectionToString(this); | |
} | |
@Override | |
public int hashCode() { | |
return HashCodeBuilder.reflectionHashCode(this); | |
} | |
@Override | |
public boolean equals(Object other) { | |
return EqualsBuilder.reflectionEquals(this, other); | |
} | |
@JsonAnyGetter | |
public Map<String, Object> getAdditionalProperties() { | |
return this.additionalProperties; | |
} | |
@JsonAnySetter | |
public void setAdditionalProperties(String name, Object value) { | |
this.additionalProperties.put(name, value); | |
} | |
} | |
-----------------------------------com.example.Result.java----------------------------------- | |
package com.example; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import org.apache.commons.lang.builder.EqualsBuilder; | |
import org.apache.commons.lang.builder.HashCodeBuilder; | |
import org.apache.commons.lang.builder.ToStringBuilder; | |
@JsonInclude(JsonInclude.Include.NON_NULL) | |
@Generated("com.googlecode.jsonschema2pojo") | |
@JsonPropertyOrder({ | |
"errorCode", | |
"errorMessage", | |
"status", | |
"detailMessage" | |
}) | |
public class Result { | |
@JsonProperty("errorCode") | |
private Integer errorCode; | |
@JsonProperty("errorMessage") | |
private String errorMessage; | |
@JsonProperty("status") | |
private String status; | |
@JsonProperty("detailMessage") | |
private String detailMessage; | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("errorCode") | |
public Integer getErrorCode() { | |
return errorCode; | |
} | |
@JsonProperty("errorCode") | |
public void setErrorCode(Integer errorCode) { | |
this.errorCode = errorCode; | |
} | |
public Result withErrorCode(Integer errorCode) { | |
this.errorCode = errorCode; | |
return this; | |
} | |
@JsonProperty("errorMessage") | |
public String getErrorMessage() { | |
return errorMessage; | |
} | |
@JsonProperty("errorMessage") | |
public void setErrorMessage(String errorMessage) { | |
this.errorMessage = errorMessage; | |
} | |
public Result withErrorMessage(String errorMessage) { | |
this.errorMessage = errorMessage; | |
return this; | |
} | |
@JsonProperty("status") | |
public String getStatus() { | |
return status; | |
} | |
@JsonProperty("status") | |
public void setStatus(String status) { | |
this.status = status; | |
} | |
public Result withStatus(String status) { | |
this.status = status; | |
return this; | |
} | |
@JsonProperty("detailMessage") | |
public String getDetailMessage() { | |
return detailMessage; | |
} | |
@JsonProperty("detailMessage") | |
public void setDetailMessage(String detailMessage) { | |
this.detailMessage = detailMessage; | |
} | |
public Result withDetailMessage(String detailMessage) { | |
this.detailMessage = detailMessage; | |
return this; | |
} | |
@Override | |
public String toString() { | |
return ToStringBuilder.reflectionToString(this); | |
} | |
@Override | |
public int hashCode() { | |
return HashCodeBuilder.reflectionHashCode(this); | |
} | |
@Override | |
public boolean equals(Object other) { | |
return EqualsBuilder.reflectionEquals(this, other); | |
} | |
@JsonAnyGetter | |
public Map<String, Object> getAdditionalProperties() { | |
return this.additionalProperties; | |
} | |
@JsonAnySetter | |
public void setAdditionalProperties(String name, Object value) { | |
this.additionalProperties.put(name, value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment