• 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/CopyOrMoveRowDirective.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
public class CopyOrMoveRowDirective {
22

23
    /**
24
     * Represents the IDs of the rows to move or copy from the source sheet.
25
     */
26
    private List<Long> rowIds;
27

28
    /**
29
     * Represents the CopyOrMoveRowDestination object that identifies the destination sheet
30
     */
31
    private CopyOrMoveRowDestination to;
32

33
    /**
34
     * Constructors
35
     */
36
    public CopyOrMoveRowDirective() {
1✔
37
    }
1✔
38

39
    public CopyOrMoveRowDirective(Long destinationSheetId) {
×
40
        to.setSheetId(destinationSheetId);
×
41
    }
×
42

43
    /**
44
     * Gets the IDs of the rows to move or copy from the source sheet..
45
     *
46
     * @return the IDs of the rows to move or copy from the source sheet.
47
     */
48
    public List<Long> getRowIds() {
49
        return rowIds;
1✔
50
    }
51

52
    /**
53
     * Sets the IDs of the rows to move or copy from the source sheet.
54
     *
55
     * @param rowIds ID of the destination sheet
56
     */
57
    public CopyOrMoveRowDirective setRowIds(List<Long> rowIds) {
58
        this.rowIds = rowIds;
1✔
59
        return this;
1✔
60
    }
61

62
    /**
63
     * Gets the CopyOrMoveRowDestination object that identifies the destination sheet.
64
     *
65
     * @return the CopyOrMoveRowDestination object that identifies the destination sheet.
66
     */
67
    public CopyOrMoveRowDestination getTo() {
68
        return to;
1✔
69
    }
70

71
    /**
72
     * Sets the CopyOrMoveRowDestination object that identifies the destination sheet.
73
     *
74
     * @param to CopyOrMoveRowDestination object
75
     */
76
    public CopyOrMoveRowDirective setTo(CopyOrMoveRowDestination to) {
77
        this.to = to;
1✔
78
        return this;
1✔
79
    }
80

81
    /**
82
     * A convenience class to help create a CopyOrMoveRowDestination object with the appropriate fields for adding to a sheet.
83
     */
84
    public static class InsertCopyOrMoveRowDirectiveBuilder {
×
85
        /**
86
         * Represents the IDs of the rows to move or copy from the source sheet.
87
         */
88
        private List<Long> rowIds;
89

90
        /**
91
         * Represents the CopyOrMoveRowDestination object that identifies the destination sheet
92
         */
93
        private CopyOrMoveRowDestination to;
94

95
        /**
96
         * Gets the IDs of the rows to move or copy from the source sheet..
97
         *
98
         * @return the IDs of the rows to move or copy from the source sheet.
99
         */
100
        public List<Long> getRowIds() {
101
            return rowIds;
×
102
        }
103

104
        /**
105
         * Sets the IDs of the rows to move or copy from the source sheet.
106
         *
107
         * @param rowIds ID of the destination sheet
108
         * @return the builder
109
         */
110
        public InsertCopyOrMoveRowDirectiveBuilder setRowIds(List<Long> rowIds) {
111
            this.rowIds = rowIds;
×
112
            return this;
×
113
        }
114

115
        /**
116
         * Gets the CopyOrMoveRowDestination object that identifies the destination sheet.
117
         *
118
         * @return the CopyOrMoveRowDestination object that identifies the destination sheet.
119
         */
120
        public CopyOrMoveRowDestination getTo() {
121
            return to;
×
122
        }
123

124
        /**
125
         * Sets the CopyOrMoveRowDestination object that identifies the destination sheet.
126
         *
127
         * @param to CopyOrMoveRowDestination object
128
         * @return the builder
129
         */
130
        public InsertCopyOrMoveRowDirectiveBuilder setTo(CopyOrMoveRowDestination to) {
131
            this.to = to;
×
132
            return this;
×
133
        }
134

135
        /**
136
         * Builds the CopyOrMoveRowDirective.
137
         *
138
         * @return the CopyOrMoveRowDirective
139
         */
140
        public CopyOrMoveRowDirective build() {
141
            CopyOrMoveRowDirective copyOrMoveRowDirective = new CopyOrMoveRowDirective();
×
142
            copyOrMoveRowDirective.rowIds = rowIds;
×
143
            copyOrMoveRowDirective.to = to;
×
144
            return copyOrMoveRowDirective;
×
145
        }
146
    }
147
}
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