• 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/RecipientGroup.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 RecipientGroup implements Recipient {
1✔
20

21
    /**
22
     * The ID of a group recipient.
23
     */
24
    private Long groupId;
25

26
    /**
27
     * Get the group ID
28
     *
29
     * @return the group ID
30
     */
31
    public Long getGroupId() {
32
        return groupId;
1✔
33
    }
34

35
    /**
36
     * Set the group ID
37
     *
38
     * @param groupId the group ID
39
     */
40
    public RecipientGroup setGroupId(Long groupId) {
41
        this.groupId = groupId;
1✔
42
        return this;
1✔
43
    }
44

45
    /**
46
     * A convenience class to help create a RecipientGroup object with the appropriate fields.
47
     */
48
    public static class AddRecipientGroupBuilder {
×
49
        /**
50
         * The ID of a group recipient.
51
         */
52
        private Long groupId;
53

54
        /**
55
         * Get the group ID
56
         *
57
         * @return the group ID
58
         */
59
        public Long getGroupId() {
60
            return groupId;
×
61
        }
62

63
        /**
64
         * Set the group ID
65
         *
66
         * @param groupId the group ID
67
         * @return the builder
68
         */
69
        public AddRecipientGroupBuilder setGroupId(Long groupId) {
70
            this.groupId = groupId;
×
71
            return this;
×
72
        }
73

74
        /**
75
         * Builds the RecipientGroup.
76
         *
77
         * @return the RecipientGroup
78
         */
79
        public RecipientGroup build() {
80
            RecipientGroup recipientGroup = new RecipientGroup();
×
81
            recipientGroup.groupId = groupId;
×
82
            return recipientGroup;
×
83
        }
84

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