• 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

70.0
/src/main/java/com/smartsheet/api/models/ImageUrl.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 ImageUrl {
20

21
    /**
22
     * Image ID
23
     */
24
    private String imageId;
25

26
    /**
27
     * In the getImageUrls request, this (optional) attribute represents the requested width.
28
     */
29
    private Long width;
30

31
    /**
32
     * In the getImageUrls request, this (optional) attribute represents the requested height.
33
     */
34
    private Long height;
35

36
    /**
37
     * Temporary URL that can be used to retrieve the image. This attribute can be present
38
     * in a response but will never be specified in a request.
39
     */
40
    private String url;
41

42
    /**
43
     * Error object. Present in the getImageUrls response only if an error occurred.
44
     */
45
    private Error error;
46

47
    /**
48
     * Constructor(s)
49
     */
50
    public ImageUrl() {
1✔
51
    }
1✔
52

53
    public ImageUrl(String imageId) {
1✔
54
        setImageId(imageId);
1✔
55
    }
1✔
56

57
    /**
58
     * Get the image id.
59
     *
60
     * @return imageId
61
     */
62
    public String getImageId() {
63
        return imageId;
1✔
64
    }
65

66
    /**
67
     * Set the image id
68
     */
69
    public ImageUrl setImageId(String imageId) {
70
        this.imageId = imageId;
1✔
71
        return this;
1✔
72
    }
73

74
    /**
75
     * Get the image width
76
     */
77
    public Long getWidth() {
78
        return width;
1✔
79
    }
80

81
    /**
82
     * Set the image width
83
     */
84
    public ImageUrl setWidth(Long width) {
85
        this.width = width;
×
86
        return this;
×
87
    }
88

89
    /**
90
     * Get the image height
91
     */
92
    public Long getHeight() {
93
        return height;
1✔
94
    }
95

96
    /**
97
     * Set the image height
98
     */
99
    public ImageUrl setHeight(Long height) {
100
        this.height = height;
×
101
        return this;
×
102
    }
103

104
    /**
105
     * Get the temporary URL that can be used to retrieve the image.
106
     *
107
     * @return the url
108
     */
109
    public String getUrl() {
110
        return url;
1✔
111
    }
112

113
    /**
114
     * Set the temporary URL that can be used to retrieve the image.
115
     */
116
    public ImageUrl setUrl(String url) {
117
        this.url = url;
1✔
118
        return this;
1✔
119
    }
120

121
    /**
122
     * Get the error object
123
     *
124
     * @return error
125
     */
126
    public Error getError() {
127
        return error;
1✔
128
    }
129

130
    /**
131
     * Set the error object.
132
     */
133
    public ImageUrl setError(Error error) {
134
        this.error = error;
×
135
        return this;
×
136
    }
137
}
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