-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathViberWebhooks.java
183 lines (164 loc) · 5.33 KB
/
ViberWebhooks.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Provides options for configuring message webhooks.
*/
public class ViberWebhooks {
private ViberMessageDeliveryReporting delivery;
private String contentType;
private String callbackData;
/**
* Sets delivery.
*
* @param delivery
* @return This {@link ViberWebhooks instance}.
*/
public ViberWebhooks delivery(ViberMessageDeliveryReporting delivery) {
this.delivery = delivery;
return this;
}
/**
* Returns delivery.
*
* @return delivery
*/
@JsonProperty("delivery")
public ViberMessageDeliveryReporting getDelivery() {
return delivery;
}
/**
* Sets delivery.
*
* @param delivery
*/
@JsonProperty("delivery")
public void setDelivery(ViberMessageDeliveryReporting delivery) {
this.delivery = delivery;
}
/**
* Sets contentType.
* <p>
* Field description:
* Preferred delivery report content type, `application/json` or `application/xml`.
*
* @param contentType
* @return This {@link ViberWebhooks instance}.
*/
public ViberWebhooks contentType(String contentType) {
this.contentType = contentType;
return this;
}
/**
* Returns contentType.
* <p>
* Field description:
* Preferred delivery report content type, `application/json` or `application/xml`.
*
* @return contentType
*/
@JsonProperty("contentType")
public String getContentType() {
return contentType;
}
/**
* Sets contentType.
* <p>
* Field description:
* Preferred delivery report content type, `application/json` or `application/xml`.
*
* @param contentType
*/
@JsonProperty("contentType")
public void setContentType(String contentType) {
this.contentType = contentType;
}
/**
* Sets callbackData.
* <p>
* Field description:
* Additional data that can be used for identifying, managing, or monitoring a message. Data included here will also be automatically included in the message Delivery Report. The maximum value is 4000 characters.
*
* @param callbackData
* @return This {@link ViberWebhooks instance}.
*/
public ViberWebhooks callbackData(String callbackData) {
this.callbackData = callbackData;
return this;
}
/**
* Returns callbackData.
* <p>
* Field description:
* Additional data that can be used for identifying, managing, or monitoring a message. Data included here will also be automatically included in the message Delivery Report. The maximum value is 4000 characters.
*
* @return callbackData
*/
@JsonProperty("callbackData")
public String getCallbackData() {
return callbackData;
}
/**
* Sets callbackData.
* <p>
* Field description:
* Additional data that can be used for identifying, managing, or monitoring a message. Data included here will also be automatically included in the message Delivery Report. The maximum value is 4000 characters.
*
* @param callbackData
*/
@JsonProperty("callbackData")
public void setCallbackData(String callbackData) {
this.callbackData = callbackData;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ViberWebhooks viberWebhooks = (ViberWebhooks) o;
return Objects.equals(this.delivery, viberWebhooks.delivery)
&& Objects.equals(this.contentType, viberWebhooks.contentType)
&& Objects.equals(this.callbackData, viberWebhooks.callbackData);
}
@Override
public int hashCode() {
return Objects.hash(delivery, contentType, callbackData);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class ViberWebhooks {")
.append(newLine)
.append(" delivery: ")
.append(toIndentedString(delivery))
.append(newLine)
.append(" contentType: ")
.append(toIndentedString(contentType))
.append(newLine)
.append(" callbackData: ")
.append(toIndentedString(callbackData))
.append(newLine)
.append("}")
.toString();
}
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
String lineSeparator = System.lineSeparator();
String lineSeparatorFollowedByIndentation = lineSeparator + " ";
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation);
}
}