All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tinypass.client.user.model.AccessDTO Maven / Gradle / Ivy

There is a newer version: 16.331.0
Show newest version
package com.tinypass.client.user.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tinypass.client.user.model.ResourceDto;
import com.tinypass.client.user.model.UserDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

public class AccessDTO {

  /* The access ID */
  private String accessId = null;
  

  /* The parent access ID (for accesses to bundled resources) */
  private String parentAccessId = null;
  

  /* Granted == true if the user has access */
  private Boolean granted = null;
  

  /* The user */
  private UserDto user = null;
  

  /* The resource */
  private ResourceDto 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;
  

  /* Custom data */
  private String customData = 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 UserDto getUser() {
    return user;
  }
  public void setUser(UserDto user) {
    this.user = user;
  }


  public ResourceDto getResource() {
    return resource;
  }
  public void setResource(ResourceDto 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;
  }


  public String getCustomData() {
    return customData;
  }
  public void setCustomData(String customData) {
    this.customData = customData;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class AccessDTO {\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("  customData: ").append(customData).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy