Skip to content

Commit 668a13f

Browse files
committed
use delombok for Asset.java
1 parent ce5d99a commit 668a13f

File tree

1 file changed

+4
-94
lines changed
  • delivery-sdk/src/main/java/kontent/ai/delivery

1 file changed

+4
-94
lines changed

delivery-sdk/src/main/java/kontent/ai/delivery/Asset.java

Lines changed: 4 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@
3030
* Object model for Asset elements
3131
*/
3232
@lombok.Data
33+
@lombok.ToString
34+
@lombok.EqualsAndHashCode
3335
@lombok.NoArgsConstructor
3436
@lombok.AllArgsConstructor
3537
@lombok.Builder
38+
@lombok.Getter
39+
@lombok.Setter
3640
public class Asset {
3741

3842
@JsonProperty("name")
@@ -55,98 +59,4 @@ public class Asset {
5559

5660
@JsonProperty("height")
5761
String height;
58-
59-
60-
/**
61-
* File name of the asset
62-
*
63-
* @return file name
64-
*/
65-
public String getName() {
66-
return name;
67-
}
68-
69-
void setName(String name) {
70-
this.name = name;
71-
}
72-
73-
/**
74-
* MIME type of the asset
75-
*
76-
* @return MIME type
77-
*/
78-
public String getType() {
79-
return type;
80-
}
81-
82-
void setType(String type) {
83-
this.type = type;
84-
}
85-
86-
/**
87-
* Size of the asset in bytes
88-
*
89-
* @return number of bytes
90-
*/
91-
public Integer getSize() {
92-
return size;
93-
}
94-
95-
void setSize(Integer size) {
96-
this.size = size;
97-
}
98-
99-
/**
100-
* Description of the asset
101-
*
102-
* @return asset description
103-
*/
104-
public String getDescription() {
105-
return description;
106-
}
107-
108-
void setDescription(String description) {
109-
this.description = description;
110-
}
111-
112-
/**
113-
* Absolute URL for the asset
114-
*
115-
* @return URL for the asset, hosted by Kontent.ai
116-
*/
117-
public String getUrl() {
118-
return url;
119-
}
120-
121-
void setUrl(String url) {
122-
this.url = url;
123-
}
124-
125-
/**
126-
* Width of the asset
127-
*
128-
* @return Width of the asset
129-
*/
130-
131-
public String getWidth() {
132-
return width;
133-
}
134-
135-
public void setWidth(String width) {
136-
this.width = width;
137-
}
138-
139-
/**
140-
* Height of the asset
141-
*
142-
* @return Height of the asset
143-
*/
144-
145-
public String getHeight() {
146-
return height;
147-
}
148-
149-
public void setHeight(String height) {
150-
this.height = height;
151-
}
15262
}

0 commit comments

Comments
 (0)