• 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/AutomationRule.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.AutomationRuleDisabledReason;
24

25
import java.util.Date;
26

27
public class AutomationRule extends NamedModel<Long> {
×
28

29
    /**
30
     * AutomationAction object containing information for this rule.
31
     */
32
    private AutomationAction action;
33

34
    /**
35
     * A timestamp of when the rule was originally active.
36
     */
37
    private Date createdAt;
38

39
    /**
40
     * A User object containing the name and email of the creator of this rule.
41
     */
42
    private User createdBy;
43

44
    /**
45
     * Machine-readable reason a rule is disabled.
46
     */
47
    private AutomationRuleDisabledReason disabledReason;
48

49
    /**
50
     * Descriptive reason rule is disabled.
51
     */
52
    private String disabledReasonText;
53

54
    /**
55
     * Indicates if the rule is active
56
     */
57
    private Boolean enabled;
58

59
    /**
60
     * A timestamp indicating when the last change was made to the rule.
61
     */
62
    private Date modifiedAt;
63

64
    /**
65
     * User object containing the name and email of the user who last modified this rule.
66
     */
67
    private User modifiedBy;
68

69
    /**
70
     * Indicates that the current user can modify this rule.
71
     */
72
    private Boolean userCanModify;
73

74
    /**
75
     * Gets the automation action for this rule.
76
     *
77
     * @return the automation action
78
     */
79
    public AutomationAction getAction() {
80
        return action;
×
81
    }
82

83
    /**
84
     * Sets the automation action for this rule.
85
     *
86
     * @param action the automation action
87
     */
88
    public AutomationRule setAction(AutomationAction action) {
89
        this.action = action;
×
90
        return this;
×
91
    }
92

93
    /**
94
     * Gets a timestamp of when the rule was created.
95
     *
96
     * @return the timestamp
97
     */
98
    public Date getCreatedAt() {
99
        return createdAt;
×
100
    }
101

102
    /**
103
     * Sets a timestamp for when the rule was created.
104
     *
105
     * @param createdAt the timestamp
106
     */
107
    public AutomationRule setCreatedAt(Date createdAt) {
108
        this.createdAt = createdAt;
×
109
        return this;
×
110
    }
111

112
    /**
113
     * Gets the User object for the author of this rule.
114
     *
115
     * @return the User object
116
     */
117
    public User getCreatedBy() {
118
        return createdBy;
×
119
    }
120

121
    /**
122
     * Sets the User object for the author of this rule.
123
     *
124
     * @param createdBy the User object
125
     */
126
    public AutomationRule setCreatedBy(User createdBy) {
127
        this.createdBy = createdBy;
×
128
        return this;
×
129
    }
130

131
    /**
132
     * Gets a machine-readable reason a rule is disabled.
133
     *
134
     * @return the reason
135
     */
136
    public AutomationRuleDisabledReason getDisabledReason() {
137
        return disabledReason;
×
138
    }
139

140
    /**
141
     * Sets a machine-readable reason a rule is disabled.
142
     *
143
     * @param disabledReason the reason
144
     */
145
    public AutomationRule setDisabledReason(AutomationRuleDisabledReason disabledReason) {
146
        this.disabledReason = disabledReason;
×
147
        return this;
×
148
    }
149

150
    /**
151
     * Gets descriptive text for why this rule is disabled.
152
     *
153
     * @return the reason
154
     */
155
    public String getDisabledReasonText() {
156
        return disabledReasonText;
×
157
    }
158

159
    /**
160
     * Sets descriptive text for why this rule is disabled.
161
     *
162
     * @param disabledReasonText the reason
163
     */
164
    public AutomationRule setDisabledReasonText(String disabledReasonText) {
165
        this.disabledReasonText = disabledReasonText;
×
166
        return this;
×
167
    }
168

169
    /**
170
     * Gets flag indicating if rule is active
171
     *
172
     * @return the flag
173
     */
174
    public Boolean getEnabled() {
175
        return enabled;
×
176
    }
177

178
    /**
179
     * Sets flag indicating if rule is active
180
     *
181
     * @param enabled the flag
182
     */
183
    public AutomationRule setEnabled(Boolean enabled) {
184
        this.enabled = enabled;
×
185
        return this;
×
186
    }
187

188
    /**
189
     * Gets a timestamp for the last modification to this rule.
190
     *
191
     * @return the timestamp
192
     */
193
    public Date getModifiedAt() {
194
        return modifiedAt;
×
195
    }
196

197
    /**
198
     * Sets a timestamp for the last modification to this rule
199
     *
200
     * @param modifiedAt the timestamp
201
     */
202
    public AutomationRule setModifiedAt(Date modifiedAt) {
203
        this.modifiedAt = modifiedAt;
×
204
        return this;
×
205
    }
206

207
    /**
208
     * Gets the User who last modified this rule.
209
     *
210
     * @return the User
211
     */
212
    public User getModifiedBy() {
213
        return modifiedBy;
×
214
    }
215

216
    /**
217
     * Sets the User who last modified this rule.
218
     */
219
    public AutomationRule setModifiedBy(User modifiedBy) {
220
        this.modifiedBy = modifiedBy;
×
221
        return this;
×
222
    }
223

224
    /**
225
     * Gets a flag indicating if the current user can modify this rule.
226
     *
227
     * @return the flag
228
     */
229
    public Boolean getUserCanModify() {
230
        return userCanModify;
×
231
    }
232

233
    /**
234
     * Sets a flag indicating if the current user can modify this rule.
235
     *
236
     * @param userCanModify the flag
237
     */
238
    public AutomationRule setUserCanModify(Boolean userCanModify) {
239
        this.userCanModify = userCanModify;
×
240
        return this;
×
241
    }
242
}
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