• 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

0.0
/src/main/java/com/smartsheet/api/models/AutoNumberFormat.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
/**
20
 * Represents the AutoNumberFormat object. It describes how the the System Column type of "AUTO_NUMBER" is auto-generated
21
 *
22
 * @see <a href="https://smartsheet.redoc.ly/tag/commonObjects/#section/AutoNumberFormat-Object">Auto Number Format API Documentation</a>
23
 * @see <a href="http://help.smartsheet.com/customer/portal/articles/1108408-auto-numbering">Auto Number Format Help</a>
24
 */
25
public class AutoNumberFormat {
×
26

27
    /**
28
     * Represents the prefix.
29
     */
30
    private String prefix;
31

32
    /**
33
     * Represents the suffix.
34
     */
35
    private String suffix;
36

37
    /**
38
     * Represents the fill.
39
     */
40
    private String fill;
41

42
    /**
43
     * Represents the starting number.
44
     */
45
    private Long startingNumber;
46

47
    /**
48
     * Gets the prefix.
49
     *
50
     * @return the prefix
51
     */
52
    public String getPrefix() {
53
        return prefix;
×
54
    }
55

56
    /**
57
     * Sets the prefix. The prefix. Can include the date tokens {YY}, {YYYY}, {MM}, {DD}
58
     *
59
     * @param prefix the new prefix
60
     */
61
    public AutoNumberFormat setPrefix(String prefix) {
62
        this.prefix = prefix;
×
63
        return this;
×
64
    }
65

66
    /**
67
     * Gets the suffix.
68
     *
69
     * @return the suffix
70
     */
71
    public String getSuffix() {
72
        return suffix;
×
73
    }
74

75
    /**
76
     * Sets the suffix.
77
     *
78
     * @param suffix the new suffix
79
     */
80
    public AutoNumberFormat setSuffix(String suffix) {
81
        this.suffix = suffix;
×
82
        return this;
×
83
    }
84

85
    /**
86
     * Gets the fill.
87
     *
88
     * @return the fill
89
     */
90
    public String getFill() {
91
        return fill;
×
92
    }
93

94
    /**
95
     * Sets the fill. Must be 0 - 10 "0" characters. Indicates zero-padding
96
     *
97
     * @param fill the new fill
98
     */
99
    public AutoNumberFormat setFill(String fill) {
100
        this.fill = fill;
×
101
        return this;
×
102
    }
103

104
    /**
105
     * Gets the starting number.
106
     *
107
     * @return the starting number
108
     */
109
    public Long getStartingNumber() {
110
        return startingNumber;
×
111
    }
112

113
    /**
114
     * Sets the starting number for the auto-id.
115
     *
116
     * @param startingNumber the new starting number
117
     */
118
    public AutoNumberFormat setStartingNumber(Long startingNumber) {
119
        this.startingNumber = startingNumber;
×
120
        return this;
×
121
    }
122

123
}
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