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

smartsheet / smartsheet-java-sdk / #43

24 Aug 2023 10:26PM UTC coverage: 50.427% (-0.02%) from 50.442%
#43

push

github-actions

web-flow
Fix Checkstyle violations in api/models Classes (#57)

This will fix ~900 violations

189 of 189 new or added lines in 59 files covered. (100.0%)

3423 of 6788 relevant lines covered (50.43%)

0.5 hits per line

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

37.5
/src/main/java/com/smartsheet/api/models/RowEmail.java
1
package com.smartsheet.api.models;
2

3
/*
4
 * #[license]
5
 * Smartsheet SDK for Java
6
 * %%
7
 * Copyright (C) 2023 Smartsheet
8
 * %%
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
 * you may not use this file except in compliance with the License.
11
 * You may obtain a copy of the License at
12
 *
13
 *      http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing, software
16
 * distributed under the License is distributed on an "AS IS" BASIS,
17
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
 * See the License for the specific language governing permissions and
19
 * limitations under the License.
20
 * %[license]
21
 */
22

23
import java.util.List;
24

25
/**
26
 * Represents RowEmail object.
27
 */
28
public class RowEmail extends Email {
1✔
29

30
    @Override
31
    public List<Recipient> getSendTo() {
32
        return super.getSendTo();
1✔
33
    }
34

35
    @Override
36
    public RowEmail setSendTo(List<Recipient> sendTo) {
37
        super.setSendTo(sendTo);
1✔
38
        return this;
1✔
39
    }
40

41
    @Override
42
    public String getSubject() {
43
        return super.getSubject();
1✔
44
    }
45

46
    @Override
47
    public RowEmail setSubject(String subject) {
48
        super.setSubject(subject);
1✔
49
        return this;
1✔
50
    }
51

52
    @Override
53
    public String getMessage() {
54
        return super.getMessage();
1✔
55
    }
56

57
    @Override
58
    public RowEmail setMessage(String message) {
59
        super.setMessage(message);
1✔
60
        return this;
1✔
61
    }
62

63
    @Override
64
    public Boolean getCcMe() {
65
        return super.getCcMe();
1✔
66
    }
67

68
    @Override
69
    public RowEmail setCcMe(Boolean ccMe) {
70
        super.setCcMe(ccMe);
1✔
71
        return this;
1✔
72
    }
73

74
    /**
75
     * Represents IDs of the columns to be included.
76
     */
77
    private List<Long> columnIds;
78

79
    /**
80
     * A flag to indicate if attachments should be included in the email.
81
     */
82
    private Boolean includeAttachments;
83

84
    /**
85
     * A flag to indicate if discussions should be included in the email.
86
     */
87
    private Boolean includeDiscussions;
88

89
    /**
90
     * One of the following values: HORIZONTAL, VERTICAL
91
     */
92
    private String layout;
93

94
    /**
95
     * Gets the IDs of the columns to be included.
96
     *
97
     * @return the colmn ids
98
     */
99
    public List<Long> getColumnIds() {
100
        return columnIds;
1✔
101
    }
102

103
    /**
104
     * Sets the IDs of the columns to be included.
105
     *
106
     * @param columnIds the column ids
107
     */
108
    public RowEmail setColumnIds(List<Long> columnIds) {
109
        this.columnIds = columnIds;
×
110
        return this;
×
111
    }
112

113
    /**
114
     * Gets the flag that indicates if attachments should be included in the email.
115
     *
116
     * @return the include attachments
117
     */
118
    public Boolean getIncludeAttachments() {
119
        return includeAttachments;
1✔
120
    }
121

122
    /**
123
     * Sets the flag that indicates if attachments should be included in the email.
124
     *
125
     * @param includeAttachments the new include attachments
126
     */
127
    public RowEmail setIncludeAttachments(Boolean includeAttachments) {
128
        this.includeAttachments = includeAttachments;
1✔
129
        return this;
1✔
130
    }
131

132
    /**
133
     * Gets the flag that indicates if discussions should be included in the email.
134
     *
135
     * @return the include discussions
136
     */
137
    public Boolean getIncludeDiscussions() {
138
        return includeDiscussions;
1✔
139
    }
140

141
    /**
142
     * Sets the flag that indicates if discussions should be included in the email.
143
     *
144
     * @param includeDiscussions the new include discussions
145
     */
146
    public RowEmail setIncludeDiscussions(Boolean includeDiscussions) {
147
        this.includeDiscussions = includeDiscussions;
1✔
148
        return this;
1✔
149
    }
150

151
    /**
152
     * Gets a string containing the layout. Defaults to HORIZONTAL if multiple rows are being setn,
153
     * and to VERTICAL when a single row is being sent.
154
     *
155
     * @return layout
156
     */
157
    public String getLayout() {
158
        return layout;
1✔
159
    }
160

161
    /**
162
     * Sets the layout string
163
     * @param layout string containing HORIZONTAL or VERTICAL strings
164
     */
165
    public RowEmail setLayout(String layout) {
166
        this.layout = layout;
×
167
        return this;
×
168
    }
169

170
    /**
171
     * A convenience class to help create a RowEmail object with the appropriate fields.
172
     */
173
    public static class AddRowEmailBuilder {
×
174
        /**
175
         * A flag to indicate if attachments should be included in the email.
176
         */
177
        private Boolean includeAttachments;
178

179
        /**
180
         * A flag to indicate if discussions should be included in the email.
181
         */
182
        private Boolean includeDiscussions;
183

184
        /**
185
         * One of the following values: HORIZONTAL, VERTICAL
186
         */
187
        private String layout;
188

189
        /**
190
         * Gets the flag that indicates if attachments should be included in the email.
191
         *
192
         * @return the include attachments
193
         */
194
        public Boolean getIncludeAttachments() {
195
            return includeAttachments;
×
196
        }
197

198
        /**
199
         * Sets the flag that indicates if attachments should be included in the email.
200
         *
201
         * @param includeAttachments the new include attachments
202
         * @return the builder
203
         */
204
        public AddRowEmailBuilder setIncludeAttachments(Boolean includeAttachments) {
205
            this.includeAttachments = includeAttachments;
×
206
            return this;
×
207
        }
208

209
        /**
210
         * Gets the flag that indicates if discussions should be included in the email.
211
         *
212
         * @return the include discussions
213
         */
214
        public Boolean getIncludeDiscussions() {
215
            return includeDiscussions;
×
216
        }
217

218
        /**
219
         * Sets the flag that indicates if discussions should be included in the email.
220
         *
221
         * @param includeDiscussions the new include discussions
222
         * @return the builder
223
         */
224
        public AddRowEmailBuilder setIncludeDiscussions(Boolean includeDiscussions) {
225
            this.includeDiscussions = includeDiscussions;
×
226
            return this;
×
227
        }
228

229
        /**
230
         * Gets a string containing the layout. Defaults to HORIZONTAL if multiple rows are being setn,
231
         * and to VERTICAL when a single row is being sent.
232
         *
233
         * @return layout
234
         */
235
        public String getLayout() {
236
            return layout;
×
237
        }
238

239
        /**
240
         * Sets the layout string
241
         *
242
         * @param layout string containing HORIZONTAL or VERTICAL strings
243
         * @return the builder
244
         */
245
        public AddRowEmailBuilder setLayout(String layout) {
246
            this.layout = layout;
×
247
            return this;
×
248
        }
249

250
        /**
251
         * Represents the list of recipients to send to
252
         */
253
        private List<Recipient> sendTo;
254

255
        /**
256
         * Represents the subject.
257
         */
258
        private String subject;
259

260
        /**
261
         * Represents the message.
262
         */
263
        private String message;
264

265
        /**
266
         * Represents the CC me flag.
267
         */
268
        private Boolean ccMe;
269

270
        /**
271
         * Gets the list of recipients to send to
272
         * @return the list of recipients
273
         */
274
        public List<Recipient> getSendTo() {
275
            return sendTo;
×
276
        }
277

278
        /**
279
         * Sets the list of recipients to send to
280
         * @param sendTo list of recipients
281
         * @return the builder
282
         */
283
        public AddRowEmailBuilder setSendTo(List<Recipient> sendTo) {
284
            this.sendTo = sendTo;
×
285
            return this;
×
286
        }
287

288
        /**
289
         * Gets the subject.
290
         *
291
         * @return the subject
292
         */
293
        public String getSubject() {
294
            return subject;
×
295
        }
296

297
        /**
298
         * Sets the subject.
299
         *
300
         * @param subject the new subject
301
         * @return the associated builder
302
         */
303
        public AddRowEmailBuilder setSubject(String subject) {
304
            this.subject = subject;
×
305
            return this;
×
306
        }
307

308
        /**
309
         * Gets the message.
310
         *
311
         * @return the message
312
         */
313
        public String getMessage() {
314
            return message;
×
315
        }
316

317
        /**
318
         * Sets the message.
319
         *
320
         * @param message the new message
321
         * @return the builder
322
         */
323
        public AddRowEmailBuilder setMessage(String message) {
324
            this.message = message;
×
325
            return this;
×
326
        }
327

328
        /**
329
         * Gets the carbon copy me flag.
330
         *
331
         * @return the cc me
332
         */
333
        public Boolean getCcMe() {
334
            return ccMe;
×
335
        }
336

337
        /**
338
         * Sets the carbon copy me flag.
339
         *
340
         * @param ccMe the new cc me
341
         * @return the builder
342
         */
343
        public AddRowEmailBuilder setCcMe(Boolean ccMe) {
344
            this.ccMe = ccMe;
×
345
            return this;
×
346
        }
347

348
        /**
349
         * Builds the row email.
350
         *
351
         * @return the rowemail
352
         */
353
        public RowEmail build() {
354
            RowEmail rowEmail = new RowEmail();
×
355
            rowEmail.includeAttachments = includeAttachments;
×
356
            rowEmail.includeDiscussions = includeDiscussions;
×
357
            rowEmail.layout = layout;
×
358
            rowEmail.setSendTo(sendTo);
×
359
            rowEmail.setSubject(subject);
×
360
            rowEmail.setMessage(message);
×
361
            rowEmail.setCcMe(ccMe);
×
362
            return rowEmail;
×
363
        }
364

365
    }
366
}
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

© 2026 Coveralls, Inc