• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #55

02 Oct 2024 07:40PM UTC coverage: 60.548% (+0.7%) from 59.836%
#55

push

github

web-flow
Release prep for 3.2.1 (#103)

4156 of 6864 relevant lines covered (60.55%)

0.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/smartsheet/api/models/CellLink.java
1
/*
2
 * Copyright (C) 2024 Smartsheet
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.smartsheet.api.models;
18

19
import com.fasterxml.jackson.annotation.JsonIgnore;
20

21
public class CellLink {
×
22

23
    /**
24
     * One of the following values:
25
     * OK: the link is in a good state
26
     * BROKEN: the row or sheet linked to was deleted
27
     * INACCESSIBLE: the sheet linked to cannot be viewed by this user
28
     * Several other values indicating unusual error conditions: NOT_SHARED, BLOCKED, CIRCULAR, INVALID, and DISABLED .
29
     */
30
    private String status;
31

32
    /**
33
     * The Sheet ID of the sheet that the linked cell belongs to.
34
     */
35
    private Long sheetId;
36

37
    /**
38
     * The Row ID of the linked cell.
39
     */
40
    private Long rowId;
41

42
    /**
43
     * The Column ID of the linked cell.
44
     */
45
    private Long columnId;
46

47
    /**
48
     * The Sheet name of the linked cell.
49
     */
50
    private String sheetName;
51

52
    /**
53
     * If true, update will serialize a null to reset the linkInFromCell
54
     */
55
    private boolean isNull = true;
×
56

57
    /**
58
     * Gets the status.
59
     *
60
     * @return status
61
     */
62
    public String getStatus() {
63
        return status;
×
64
    }
65

66
    /**
67
     * Sets the status
68
     *
69
     * @param status the status
70
     */
71
    public CellLink setStatus(String status) {
72
        this.status = status;
×
73
        return this;
×
74
    }
75

76
    /**
77
     * Gets the Sheet ID of the sheet that the linked cell belongs to.
78
     *
79
     * @return sheet ID
80
     */
81
    public Long getSheetId() {
82
        return sheetId;
×
83
    }
84

85
    /**
86
     * Sets the Sheet ID of the sheet that the linked cell belongs to
87
     *
88
     * @param sheetId the sheetId
89
     */
90
    public CellLink setSheetId(Long sheetId) {
91
        this.isNull = false;
×
92
        this.sheetId = sheetId;
×
93
        return this;
×
94
    }
95

96
    /**
97
     * Gets Row ID of the linked cell.
98
     *
99
     * @return rowI the row id
100
     */
101
    public Long getRowId() {
102
        return rowId;
×
103
    }
104

105
    /**
106
     * Sets
107
     *
108
     * @param rowId the row Id
109
     */
110
    public CellLink setRowId(Long rowId) {
111
        this.isNull = false;
×
112
        this.rowId = rowId;
×
113
        return this;
×
114
    }
115

116
    /**
117
     * Gets Column ID of the linked cell.
118
     *
119
     * @return column ID
120
     */
121
    public Long getColumnId() {
122
        return columnId;
×
123
    }
124

125
    /**
126
     * Sets Column ID of the linked cell
127
     *
128
     * @param columnId the column ID
129
     */
130
    public CellLink setColumnId(Long columnId) {
131
        this.isNull = false;
×
132
        this.columnId = columnId;
×
133
        return this;
×
134
    }
135

136
    /**
137
     * Gets Sheet name of the linked cell.
138
     *
139
     * @return sheet name
140
     */
141
    public String getSheetName() {
142
        return sheetName;
×
143
    }
144

145
    /**
146
     * Sets Sheet name of the linked cell
147
     *
148
     * @param sheetName the sheet name
149
     */
150
    public CellLink setSheetName(String sheetName) {
151
        this.sheetName = sheetName;
×
152
        return this;
×
153
    }
154

155
    /**
156
     * Get the value of the isNull flag
157
     *
158
     * @return value of isNull flag
159
     */
160
    @JsonIgnore
161
    public boolean isNull() {
162
        return this.isNull;
×
163
    }
164
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc