1
+ package com .sportradar .mbs .sdk .entities .response ;
2
+
3
+ import com .fasterxml .jackson .annotation .JsonProperty ;
4
+ import com .sportradar .mbs .sdk .entities .common .Bet ;
5
+
6
+ /**
7
+ * Represents a response for max stake.
8
+ */
9
+ public class MaxStakeResponse extends ContentResponse {
10
+
11
+ @ JsonProperty ("code" )
12
+ private int code ;
13
+ @ JsonProperty ("bets" )
14
+ private Bet [] bets ;
15
+ @ JsonProperty ("message" )
16
+ private String message ;
17
+
18
+ /**
19
+ * Gets the code of the response.
20
+ *
21
+ * @return The code of the response.
22
+ */
23
+ public int getCode () {
24
+ return this .code ;
25
+ }
26
+
27
+ /**
28
+ * Sets the code of the response.
29
+ *
30
+ * @param value The code of the response.
31
+ */
32
+ public void setCode (int value ) {
33
+ this .code = value ;
34
+ }
35
+
36
+ /**
37
+ * Gets bets.
38
+ *
39
+ * @return bets.
40
+ */
41
+ public Bet [] getBets () {
42
+ return this .bets ;
43
+ }
44
+
45
+ /**
46
+ * Sets bets.
47
+ *
48
+ * @param value bets.
49
+ */
50
+ public void setBets (Bet [] value ) {
51
+ this .bets = value ;
52
+ }
53
+
54
+ /**
55
+ * Gets the message.
56
+ *
57
+ * @return The message.
58
+ */
59
+ public String getMessage () {
60
+ return this .message ;
61
+ }
62
+
63
+ /**
64
+ * Sets the message.
65
+ *
66
+ * @param value The message.
67
+ */
68
+ public void setMessage (String value ) {
69
+ this .message = value ;
70
+ }
71
+
72
+ /**
73
+ * Creates a new instance of the MaxStakeResponse.Builder class.
74
+ *
75
+ * @return A new instance of the MaxStakeResponse.Builder class.
76
+ */
77
+ public static Builder newBuilder () {
78
+ return new Builder ();
79
+ }
80
+
81
+ /**
82
+ * Represents a builder for creating instances of the MaxStakeResponse class.
83
+ */
84
+ public static class Builder {
85
+
86
+ private final MaxStakeResponse instance = new MaxStakeResponse ();
87
+
88
+ private Builder () {
89
+ }
90
+
91
+ /**
92
+ * Builds and returns the MaxStakeResponse instance.
93
+ *
94
+ * @return The MaxStakeResponse instance.
95
+ */
96
+ public MaxStakeResponse build () {
97
+ return this .instance ;
98
+ }
99
+
100
+ /**
101
+ * Sets the code of the response.
102
+ *
103
+ * @param value The code of the response.
104
+ * @return The builder instance.
105
+ */
106
+ public Builder setCode (int value ) {
107
+ this .instance .setCode (value );
108
+ return this ;
109
+ }
110
+
111
+ /**
112
+ * Sets bets.
113
+ *
114
+ * @param value Bets.
115
+ * @return The builder instance.
116
+ */
117
+ public Builder setBets (Bet ... value ) {
118
+ this .instance .setBets (value );
119
+ return this ;
120
+ }
121
+
122
+ /**
123
+ * Sets the message.
124
+ *
125
+ * @param value The message.
126
+ * @return The builder instance.
127
+ */
128
+ public Builder setMessage (String value ) {
129
+ this .instance .setMessage (value );
130
+ return this ;
131
+ }
132
+ }
133
+ }
0 commit comments