2 * Copyright (C) The Arvados Authors. All rights reserved.
4 * SPDX-License-Identifier: AGPL-3.0 OR Apache-2.0
8 package org.arvados.client.api.model;
10 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
11 import com.fasterxml.jackson.annotation.JsonInclude;
12 import com.fasterxml.jackson.annotation.JsonProperty;
13 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16 @JsonInclude(JsonInclude.Include.NON_NULL)
17 @JsonIgnoreProperties(ignoreUnknown = true)
18 @JsonPropertyOrder({"name", "head_kind", "head_uuid", "link_class"})
19 public class Link extends Item {
23 @JsonProperty(value = "head_kind", access = JsonProperty.Access.WRITE_ONLY)
24 private String headKind;
25 @JsonProperty("head_uuid")
26 private String headUuid;
27 @JsonProperty("tail_uuid")
28 private String tailUuid;
29 @JsonProperty(value = "tail_kind", access = JsonProperty.Access.WRITE_ONLY)
30 private String tailKind;
31 @JsonProperty("link_class")
32 private String linkClass;
34 public String getName() {
38 public String getHeadKind() {
42 public String getHeadUuid() {
46 public String getTailUuid() {
50 public String getTailKind() {
54 public String getLinkClass() {
58 public void setName(String name) {
62 public void setHeadKind(String headKind) {
63 this.headKind = headKind;
66 public void setHeadUuid(String headUuid) {
67 this.headUuid = headUuid;
70 public void setTailUuid(String tailUuid) {
71 this.tailUuid = tailUuid;
74 public void setTailKind(String tailKind) {
75 this.tailKind = tailKind;
78 public void setLinkClass(String linkClass) {
79 this.linkClass = linkClass;