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

pro.taskana.common.rest.models.AccessIdRepresentationModel Maven / Gradle / Ivy

The newest version!
package pro.taskana.common.rest.models;

import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.hateoas.RepresentationModel;
import org.springframework.lang.NonNull;

/** EntityModel for Access Id. */
public class AccessIdRepresentationModel extends RepresentationModel {

  /** The name of this Access Id. */
  @Schema(name = "name", description = "The name of this Access Id.")
  private String name;
  /**
   * The value of the Access Id. This value will be used to determine the access to a workbasket.
   */
  @Schema(
      name = "accessId",
      description =
          "The value of the Access Id. This value will be used to determine the access to a "
              + "workbasket.")
  private String accessId;

  public AccessIdRepresentationModel() {}

  public AccessIdRepresentationModel(String name, String accessId) {
    this.accessId = accessId;
    this.name = name;
  }

  public String getAccessId() {
    return accessId;
  }

  public void setAccessId(String accessId) {
    this.accessId = accessId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override
  public @NonNull String toString() {
    return "AccessIdResource [" + "name=" + this.name + ", accessId=" + this.accessId + "]";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy