• 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

36.36
/src/main/java/com/smartsheet/api/models/RecipientEmail.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
public class RecipientEmail implements Recipient {
1✔
20
    /**
21
     * The email address of an individual recipient.
22
     */
23
    private String email;
24

25
    /**
26
     * Get the recipient's email
27
     *
28
     * @return the email
29
     */
30
    public String getEmail() {
31
        return email;
1✔
32
    }
33

34
    /**
35
     * Set the recipient's email
36
     *
37
     * @param email the email
38
     */
39
    public RecipientEmail setEmail(String email) {
40
        this.email = email;
1✔
41
        return this;
1✔
42
    }
43

44
    /**
45
     * A convenience class to help create a RecipientEmail object with the appropriate fields.
46
     */
47
    public static class AddRecipientEmailBuilder {
×
48
        /**
49
         * The email address of an individual recipient.
50
         */
51
        private String email;
52

53
        /**
54
         * Get the recipient's email
55
         *
56
         * @return the email
57
         */
58
        public String getEmail() {
59
            return email;
×
60
        }
61

62
        /**
63
         * Set the recipient's email
64
         *
65
         * @param email the email
66
         * @return the builder
67
         */
68
        public AddRecipientEmailBuilder setEmail(String email) {
69
            this.email = email;
×
70
            return this;
×
71
        }
72

73
        /**
74
         * Builds the RecipientEmail.
75
         *
76
         * @return the RecipientEmail
77
         */
78
        public RecipientEmail build() {
79
            RecipientEmail recipientEmail = new RecipientEmail();
×
80
            recipientEmail.email = email;
×
81
            return recipientEmail;
×
82
        }
83

84
    }
85
}
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