• 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

37.5
/src/main/java/com/smartsheet/api/models/RowEmail.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 java.util.List;
20

21
/**
22
 * Represents RowEmail object.
23
 */
24
public class RowEmail extends Email {
1✔
25

26
    @Override
27
    public List<Recipient> getSendTo() {
28
        return super.getSendTo();
1✔
29
    }
30

31
    @Override
32
    public RowEmail setSendTo(List<Recipient> sendTo) {
33
        super.setSendTo(sendTo);
1✔
34
        return this;
1✔
35
    }
36

37
    @Override
38
    public String getSubject() {
39
        return super.getSubject();
1✔
40
    }
41

42
    @Override
43
    public RowEmail setSubject(String subject) {
44
        super.setSubject(subject);
1✔
45
        return this;
1✔
46
    }
47

48
    @Override
49
    public String getMessage() {
50
        return super.getMessage();
1✔
51
    }
52

53
    @Override
54
    public RowEmail setMessage(String message) {
55
        super.setMessage(message);
1✔
56
        return this;
1✔
57
    }
58

59
    @Override
60
    public Boolean getCcMe() {
61
        return super.getCcMe();
1✔
62
    }
63

64
    @Override
65
    public RowEmail setCcMe(Boolean ccMe) {
66
        super.setCcMe(ccMe);
1✔
67
        return this;
1✔
68
    }
69

70
    /**
71
     * Represents IDs of the columns to be included.
72
     */
73
    private List<Long> columnIds;
74

75
    /**
76
     * A flag to indicate if attachments should be included in the email.
77
     */
78
    private Boolean includeAttachments;
79

80
    /**
81
     * A flag to indicate if discussions should be included in the email.
82
     */
83
    private Boolean includeDiscussions;
84

85
    /**
86
     * One of the following values: HORIZONTAL, VERTICAL
87
     */
88
    private String layout;
89

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

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

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

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

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

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

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

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

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

176
        /**
177
         * A flag to indicate if discussions should be included in the email.
178
         */
179
        private Boolean includeDiscussions;
180

181
        /**
182
         * One of the following values: HORIZONTAL, VERTICAL
183
         */
184
        private String layout;
185

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

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

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

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

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

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

247
        /**
248
         * Represents the list of recipients to send to
249
         */
250
        private List<Recipient> sendTo;
251

252
        /**
253
         * Represents the subject.
254
         */
255
        private String subject;
256

257
        /**
258
         * Represents the message.
259
         */
260
        private String message;
261

262
        /**
263
         * Represents the CC me flag.
264
         */
265
        private Boolean ccMe;
266

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

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

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

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

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

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

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

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

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

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