Created
March 5, 2013 00:15
-
-
Save akutz/5086911 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.Credential.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({ | |
"username", | |
"password" | |
}) | |
public class Credential { | |
@JsonProperty("username") | |
private String username; | |
@JsonProperty("password") | |
private String password; | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("username") | |
public String getUsername() { | |
return username; | |
} | |
@JsonProperty("username") | |
public void setUsername(String username) { | |
this.username = username; | |
} | |
public Credential withUsername(String username) { | |
this.username = username; | |
return this; | |
} | |
@JsonProperty("password") | |
public String getPassword() { | |
return password; | |
} | |
@JsonProperty("password") | |
public void setPassword(String password) { | |
this.password = password; | |
} | |
public Credential withPassword(String password) { | |
this.password = password; | |
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.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.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({ | |
"users" | |
}) | |
public class ResponseObject { | |
@JsonProperty("users") | |
private List<User> users = new ArrayList<User>(); | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("users") | |
public List<User> getUsers() { | |
return users; | |
} | |
@JsonProperty("users") | |
public void setUsers(List<User> users) { | |
this.users = users; | |
} | |
public ResponseObject withUsers(List<User> users) { | |
this.users = users; | |
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); | |
} | |
} | |
-----------------------------------com.example.User.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({ | |
"name", | |
"tenantId", | |
"credential", | |
"accessRoleIds" | |
}) | |
public class User { | |
@JsonProperty("name") | |
private String name; | |
@JsonProperty("tenantId") | |
private Integer tenantId; | |
@JsonProperty("credential") | |
private Credential credential; | |
@JsonProperty("accessRoleIds") | |
private List<Integer> accessRoleIds = new ArrayList<Integer>(); | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("name") | |
public String getName() { | |
return name; | |
} | |
@JsonProperty("name") | |
public void setName(String name) { | |
this.name = name; | |
} | |
public User withName(String name) { | |
this.name = name; | |
return this; | |
} | |
@JsonProperty("tenantId") | |
public Integer getTenantId() { | |
return tenantId; | |
} | |
@JsonProperty("tenantId") | |
public void setTenantId(Integer tenantId) { | |
this.tenantId = tenantId; | |
} | |
public User withTenantId(Integer tenantId) { | |
this.tenantId = tenantId; | |
return this; | |
} | |
@JsonProperty("credential") | |
public Credential getCredential() { | |
return credential; | |
} | |
@JsonProperty("credential") | |
public void setCredential(Credential credential) { | |
this.credential = credential; | |
} | |
public User withCredential(Credential credential) { | |
this.credential = credential; | |
return this; | |
} | |
@JsonProperty("accessRoleIds") | |
public List<Integer> getAccessRoleIds() { | |
return accessRoleIds; | |
} | |
@JsonProperty("accessRoleIds") | |
public void setAccessRoleIds(List<Integer> accessRoleIds) { | |
this.accessRoleIds = accessRoleIds; | |
} | |
public User withAccessRoleIds(List<Integer> accessRoleIds) { | |
this.accessRoleIds = accessRoleIds; | |
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