1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package io.wcm.handler.mediasource.dam.impl.weboptimized;
21
22 import org.jetbrains.annotations.NotNull;
23 import org.jetbrains.annotations.Nullable;
24
25 import io.wcm.handler.media.CropDimension;
26
27
28
29
30 public class WebOptimizedImageDeliveryParams {
31
32 private Long width;
33 private CropDimension cropDimension;
34 private Integer rotation;
35 private Integer quality;
36
37
38
39
40 public @Nullable Long getWidth() {
41 return this.width;
42 }
43
44
45
46
47
48 public @NotNull WebOptimizedImageDeliveryParams width(@Nullable Long value) {
49 this.width = value;
50 return this;
51 }
52
53
54
55
56 public @Nullable CropDimension getCropDimension() {
57 return this.cropDimension;
58 }
59
60
61
62
63
64 public @NotNull WebOptimizedImageDeliveryParams cropDimension(@Nullable CropDimension value) {
65 this.cropDimension = value;
66 return this;
67 }
68
69
70
71
72 public @Nullable Integer getRotation() {
73 return this.rotation;
74 }
75
76
77
78
79
80 public @NotNull WebOptimizedImageDeliveryParams rotation(@Nullable Integer value) {
81 this.rotation = value;
82 return this;
83 }
84
85
86
87
88 public @Nullable Integer getQuality() {
89 return this.quality;
90 }
91
92
93
94
95
96 public @NotNull WebOptimizedImageDeliveryParams quality(@Nullable Integer value) {
97 this.quality = value;
98 return this;
99 }
100
101 }