• 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

6.45
/src/main/java/com/smartsheet/api/models/MultiRowEmail.java
1
package com.smartsheet.api.models;
2

3
/*
4
 * #[license]
5
 * Smartsheet Java SDK
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 the multi row email object.
27
 */
28
public class MultiRowEmail extends RowEmail {
1✔
29

30
    /**
31
     * Represents IDs of rows to be included.
32
     */
33
    private List<Long> rowIds;
34

35
    /**
36
     * Gets the IDs of rows to be included
37
     * @return the row ids
38
     */
39
    public List<Long> getRowIds() {
40
        return rowIds;
1✔
41
    }
42

43
    /**
44
     * Sets the IDs of rows to be included
45
     * @param rowIds list of row ids
46
     */
47
    public MultiRowEmail setRowIds(List<Long> rowIds) {
48
        this.rowIds = rowIds;
×
49
        return this;
×
50
    }
51

52
    /**
53
     * A convenience class to help create a MultiRowEmail object with the appropriate fields.
54
     */
55
    public static class AddMultiRowEmailBuilder {
×
56

57
        private List<Recipient> sendTo;
58
        private String subject;
59
        private String message;
60
        private Boolean ccMe;
61
        private List<Long> rowIds;
62
        private Boolean includeAttachments;
63
        private Boolean includeDiscussions;
64
        private List<Long> columnIds;
65

66
        /**
67
         * Sets the list of recipients to send to
68
         * @param sendTo list of recipients
69
         * @return the builder
70
         */
71
        public AddMultiRowEmailBuilder setSendTo(List<Recipient> sendTo) {
72
            this.sendTo = sendTo;
×
73
            return this;
×
74
        }
75

76
        /**
77
         * Sets the subject.
78
         *
79
         * @param subject the new subject
80
         * @return the builder
81
         */
82
        public AddMultiRowEmailBuilder setSubject(String subject) {
83
            this.subject = subject;
×
84
            return this;
×
85
        }
86

87
        /**
88
         * Sets the message.
89
         *
90
         * @param message the new message
91
         * @return the builder
92
         */
93
        public AddMultiRowEmailBuilder setMessage(String message) {
94
            this.message = message;
×
95
            return this;
×
96
        }
97

98
        /**
99
         * Sets the carbon copy me flag.
100
         *
101
         * @param ccMe the new cc me
102
         * @return the builder
103
         */
104
        public AddMultiRowEmailBuilder setCcMe(Boolean ccMe) {
105
            this.ccMe = ccMe;
×
106
            return this;
×
107
        }
108

109
        /**
110
         * Sets the IDs of rows to be included
111
         * @param rowIds list of row ids
112
         * @return the builder
113
         */
114
        public AddMultiRowEmailBuilder setRowIds(List<Long> rowIds) {
115
            this.rowIds = rowIds;
×
116
            return this;
×
117
        }
118

119
        /**
120
         * Sets the IDs of the columns to be included.
121
         *
122
         * @param columnIds the column ids
123
         * @return the builder
124
         */
125
        public AddMultiRowEmailBuilder setColumnIds(List<Long> columnIds) {
126
            this.columnIds = columnIds;
×
127
            return this;
×
128
        }
129

130
        /**
131
         * Sets the flag that indicates if attachments should be included in the email.
132
         *
133
         * @param includeAttachments the new include attachments
134
         * @return the builder
135
         */
136
        public AddMultiRowEmailBuilder setIncludeAttachments(Boolean includeAttachments) {
137
            this.includeAttachments = includeAttachments;
×
138
            return this;
×
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
         * @return the builder
146
         */
147
        public AddMultiRowEmailBuilder setIncludeDiscussions(Boolean includeDiscussions) {
148
            this.includeDiscussions = includeDiscussions;
×
149
            return this;
×
150
        }
151

152
        /**
153
         * Builds the multi row email object
154
         * @return the multi row email object
155
         */
156
        public MultiRowEmail build() {
157
            MultiRowEmail multiRowEmail = new MultiRowEmail();
×
158
            multiRowEmail.setSendTo(sendTo);
×
159
            multiRowEmail.setSubject(subject);
×
160
            multiRowEmail.setMessage(message);
×
161
            multiRowEmail.setCcMe(ccMe);
×
162
            multiRowEmail.setRowIds(rowIds);
×
163
            multiRowEmail.setColumnIds(columnIds);
×
164
            multiRowEmail.setIncludeAttachments(includeAttachments);
×
165
            multiRowEmail.setIncludeDiscussions(includeDiscussions);
×
166
            return multiRowEmail;
×
167
        }
168

169
    }
170
}
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