• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #57

29 Jul 2025 04:55PM UTC coverage: 60.803% (+0.2%) from 60.611%
#57

push

github

web-flow
Added new sharing endpoints. Deprecated old sharing endpoints. (#125)

* Added new sharing endpoints.
Deprecated old endpoints.

* Updated to 3.3.0 for deprecation date.

* Removed amp.

* fixed `&`

106 of 157 new or added lines in 9 files covered. (67.52%)

4269 of 7021 relevant lines covered (60.8%)

0.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.0
/src/main/java/com/smartsheet/api/models/UpdateShareRequest.java
1
/*
2
 * Copyright (C) 2025 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 com.smartsheet.api.models.enums.AccessLevel;
20

21
/**
22
 * Represents an UpdateShareRequest object in the Smartsheet API.
23
 */
24
public class UpdateShareRequest {
1✔
25
    /**
26
     * The access level to grant to the user or group.
27
     */
28
    private AccessLevel accessLevel;
29

30
    /**
31
     * Gets the access level.
32
     *
33
     * @return the access level
34
     */
35
    public AccessLevel getAccessLevel() {
36
        return accessLevel;
1✔
37
    }
38

39
    /**
40
     * Sets the access level.
41
     *
42
     * @param accessLevel the access level
43
     * @return this UpdateShareRequest
44
     */
45
    public UpdateShareRequest setAccessLevel(AccessLevel accessLevel) {
46
        this.accessLevel = accessLevel;
1✔
47
        return this;
1✔
48
    }
49

50
    /**
51
     * A convenience class for creating an {@link UpdateShareRequest} with the appropriate fields.
52
     */
NEW
53
    public static class UpdateShareRequestBuilder {
×
54
        private AccessLevel accessLevel;
55

56
        /**
57
         * Sets the access level.
58
         *
59
         * @param accessLevel the access level
60
         * @return this UpdateShareRequestBuilder
61
         */
62
        public UpdateShareRequestBuilder setAccessLevel(AccessLevel accessLevel) {
NEW
63
            this.accessLevel = accessLevel;
×
NEW
64
            return this;
×
65
        }
66

67
        /**
68
         * Builds the UpdateShareRequest.
69
         *
70
         * @return the UpdateShareRequest
71
         */
72
        public UpdateShareRequest build() {
NEW
73
            UpdateShareRequest request = new UpdateShareRequest();
×
NEW
74
            request.setAccessLevel(accessLevel);
×
NEW
75
            return request;
×
76
        }
77
    }
78
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc