• 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

0.0
/src/main/java/com/smartsheet/api/models/AutomationAction.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 com.smartsheet.api.models.enums.AutomationActionFrequency;
24
import com.smartsheet.api.models.enums.AutomationActionType;
25

26
import java.util.List;
27

28
public class AutomationAction {
×
29

30
    /**
31
     * The frequency to apply this automation action
32
     */
33
    private AutomationActionFrequency frequency;
34

35
    /**
36
     * Include all columns in email contents
37
     */
38
    private Boolean includeAllColumns;
39

40
    /**
41
     * include attachments in email
42
     */
43
    private Boolean includeAttachments;
44

45
    /**
46
     * include discussions in email
47
     */
48
    private Boolean includeDiscussions;
49

50
    /**
51
     * specifies which columns to include in message
52
     */
53
    private List<Long> includedColumnIds;
54

55
    /**
56
     * Email body
57
     */
58
    private String message;
59

60
    /**
61
     * notifications are sent to all users shared to the sheet
62
     */
63
    private Boolean notifyAllSharedUsers;
64

65
    /**
66
     * List of column ids from which to collect email recipients
67
     */
68
    private List<Long> recipientColumnIds;
69

70
    /**
71
     * List of Recipients
72
     */
73
    private List<Recipient> recipients;
74

75
    /**
76
     * Email subject line
77
     */
78
    private String subject;
79

80
    /**
81
     * AutomationActionType
82
     */
83
    private AutomationActionType type;
84

85
    /**
86
     * Gets the automation action frequency
87
     *
88
     * @return the automation action frequency
89
     */
90
    public AutomationActionFrequency getFrequency() {
91
        return frequency;
×
92
    }
93

94
    /**
95
     * Sets the automation action frequency
96
     *
97
     * @param frequency the automation action frequency
98
     */
99
    public AutomationAction setFrequency(AutomationActionFrequency frequency) {
100
        this.frequency = frequency;
×
101
        return this;
×
102
    }
103

104
    /**
105
     * Gets the flag indicating if all columns in the sheet should be included with the email
106
     *
107
     * @return includeAllColumns flag
108
     */
109
    public Boolean getIncludeAllColumns() {
110
        return includeAllColumns;
×
111
    }
112

113
    /**
114
     * Sets the flag indicating if all columns in the sheet should be included with the email
115
     *
116
     * @param includeAllColumns includeAllColumns flag
117
     */
118
    public AutomationAction setIncludeAllColumns(Boolean includeAllColumns) {
119
        this.includeAllColumns = includeAllColumns;
×
120
        return this;
×
121
    }
122

123
    /**
124
     * Gets the flag indicating if attachments should be included with the email
125
     *
126
     * @return the includeAttachments flag
127
     */
128
    public Boolean getIncludeAttachments() {
129
        return includeAttachments;
×
130
    }
131

132
    /**
133
     * Sets the flag indicating if attachments should be included with the email
134
     *
135
     * @param includeAttachments the includeAttachments flag
136
     */
137
    public AutomationAction setIncludeAttachments(Boolean includeAttachments) {
138
        this.includeAttachments = includeAttachments;
×
139
        return this;
×
140
    }
141

142
    /**
143
     * Gets the flag indicating if discussions should be included with the email
144
     *
145
     * @return the includeDiscussions flag
146
     */
147
    public Boolean getIncludeDiscussions() {
148
        return includeDiscussions;
×
149
    }
150

151
    /**
152
     * Sets the flag indicating if discussions should be included with the email
153
     *
154
     * @param includeDiscussions the includeDiscussions flag
155
     */
156
    public AutomationAction setIncludeDiscussions(Boolean includeDiscussions) {
157
        this.includeDiscussions = includeDiscussions;
×
158
        return this;
×
159
    }
160

161
    /**
162
     * Gets the list of included columns
163
     *
164
     * @return the list of included columns
165
     */
166
    public List<Long> getIncludedColumnIds() {
167
        return includedColumnIds;
×
168
    }
169

170
    /**
171
     * Sets the list of included columns
172
     *
173
     * @param includedColumnIds the list of included columns
174
     */
175
    public AutomationAction setIncludedColumnIds(List<Long> includedColumnIds) {
176
        this.includedColumnIds = includedColumnIds;
×
177
        return this;
×
178
    }
179

180
    /**
181
     * Gets the email body
182
     *
183
     * @return the email body
184
     */
185
    public String getMessage() {
186
        return message;
×
187
    }
188

189
    /**
190
     * Sets the email body
191
     *
192
     * @param message the email body
193
     */
194
    public AutomationAction setMessage(String message) {
195
        this.message = message;
×
196
        return this;
×
197
    }
198

199
    /**
200
     * Gets the flag indicating if notification should be sent to all shared users
201
     *
202
     * @return the notifyAllSharedUsers flag
203
     */
204
    public Boolean getNotifyAllSharedUsers() {
205
        return notifyAllSharedUsers;
×
206
    }
207

208
    /**
209
     * Sets the flag indicating if notification should be sent to all shared users
210
     *
211
     * @param notifyAllSharedUsers the notifyAllSharedUsers flag
212
     */
213
    public AutomationAction setNotifyAllSharedUsers(Boolean notifyAllSharedUsers) {
214
        this.notifyAllSharedUsers = notifyAllSharedUsers;
×
215
        return this;
×
216
    }
217

218
    /**
219
     * Gets a list of columns from which to collect email recipients
220
     *
221
     * @return the list of column IDs
222
     */
223
    public List<Long> getRecipientColumnIds() {
224
        return recipientColumnIds;
×
225
    }
226

227
    /**
228
     * Sets a list of columns from which to collect email recipients
229
     *
230
     * @param recipientColumnIds the list of column IDs
231
     */
232
    public AutomationAction setRecipientColumnIds(List<Long> recipientColumnIds) {
233
        this.recipientColumnIds = recipientColumnIds;
×
234
        return this;
×
235
    }
236

237
    /**
238
     * Gets the list of Recipients
239
     *
240
     * @return the list of Recipients
241
     */
242
    public List<Recipient> getRecipients() {
243
        return recipients;
×
244
    }
245

246
    /**
247
     * Sets the list of Recipients
248
     *
249
     * @param recipients the list of Recipients
250
     */
251
    public AutomationAction setRecipients(List<Recipient> recipients) {
252
        this.recipients = recipients;
×
253
        return this;
×
254
    }
255

256
    /**
257
     * Gets the email subject line
258
     *
259
     * @return the email subject line
260
     */
261
    public String getSubject() {
262
        return subject;
×
263
    }
264

265
    /**
266
     * Sets the email subject line
267
     *
268
     * @param subject the email subject line
269
     */
270
    public AutomationAction setSubject(String subject) {
271
        this.subject = subject;
×
272
        return this;
×
273
    }
274

275
    /**
276
     * Gets the automation action type
277
     *
278
     * @return the action type
279
     */
280
    public AutomationActionType getType() {
281
        return type;
×
282
    }
283

284
    /**
285
     * Sets the automation action type
286
     *
287
     * @param type the action type
288
     */
289
    public AutomationAction setType(AutomationActionType type) {
290
        this.type = type;
×
291
        return this;
×
292
    }
293
}
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