• 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

6.45
/src/main/java/com/smartsheet/api/models/MultiRowEmail.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 the multi row email object.
23
 */
24
public class MultiRowEmail extends RowEmail {
1✔
25

26
    /**
27
     * Represents IDs of rows to be included.
28
     */
29
    private List<Long> rowIds;
30

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

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

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

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

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

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

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

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

108
        /**
109
         * Sets the IDs of rows to be included
110
         *
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
         *
155
         * @return the multi row email object
156
         */
157
        public MultiRowEmail build() {
158
            MultiRowEmail multiRowEmail = new MultiRowEmail();
×
159
            multiRowEmail.setSendTo(sendTo);
×
160
            multiRowEmail.setSubject(subject);
×
161
            multiRowEmail.setMessage(message);
×
162
            multiRowEmail.setCcMe(ccMe);
×
163
            multiRowEmail.setRowIds(rowIds);
×
164
            multiRowEmail.setColumnIds(columnIds);
×
165
            multiRowEmail.setIncludeAttachments(includeAttachments);
×
166
            multiRowEmail.setIncludeDiscussions(includeDiscussions);
×
167
            return multiRowEmail;
×
168
        }
169

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