com.tinypass.client.anon.model.Access Maven / Gradle / Ivy
package com.tinypass.client.anon.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tinypass.client.anon.model.Resource;
import com.tinypass.client.anon.model.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
public class Access {
/* The access ID */
private String accessId = null;
/* The parent access ID (for accesses to bundled resources) */
private String parentAccessId = null;
/* Whether the access is granted */
private Boolean granted = null;
/* The user */
private User user = null;
/* The resource */
private Resource resource = null;
/* The expire date of the access item; null means unlimited */
private Date expireDate = null;
/* The start date. */
private Date startDate = null;
/* Whether the access can be revoked (\"true\" or \"false\") */
private Boolean canRevokeAccess = null;
public String getAccessId() {
return accessId;
}
public void setAccessId(String accessId) {
this.accessId = accessId;
}
public String getParentAccessId() {
return parentAccessId;
}
public void setParentAccessId(String parentAccessId) {
this.parentAccessId = parentAccessId;
}
public Boolean getGranted() {
return granted;
}
public void setGranted(Boolean granted) {
this.granted = granted;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public Resource getResource() {
return resource;
}
public void setResource(Resource resource) {
this.resource = resource;
}
public Date getExpireDate() {
return expireDate;
}
public void setExpireDate(Date expireDate) {
this.expireDate = expireDate;
}
public Date getStartDate() {
return startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Boolean getCanRevokeAccess() {
return canRevokeAccess;
}
public void setCanRevokeAccess(Boolean canRevokeAccess) {
this.canRevokeAccess = canRevokeAccess;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Access {\n");
sb.append(" accessId: ").append(accessId).append("\n");
sb.append(" parentAccessId: ").append(parentAccessId).append("\n");
sb.append(" granted: ").append(granted).append("\n");
sb.append(" user: ").append(user).append("\n");
sb.append(" resource: ").append(resource).append("\n");
sb.append(" expireDate: ").append(expireDate).append("\n");
sb.append(" startDate: ").append(startDate).append("\n");
sb.append(" canRevokeAccess: ").append(canRevokeAccess).append("\n");
sb.append("}\n");
return sb.toString();
}
}