-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathViberOutboundFileContent.java
More file actions
169 lines (153 loc) · 5.01 KB
/
Copy pathViberOutboundFileContent.java
File metadata and controls
169 lines (153 loc) · 5.01 KB
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
/*
* 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 @ support@infobip.com.
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Represents ViberOutboundFileContent model.
*/
public class ViberOutboundFileContent extends ViberOutboundContent {
private String fileName;
private String mediaUrl;
/**
* Constructs a new {@link ViberOutboundFileContent} instance.
*/
public ViberOutboundFileContent() {
super("FILE");
}
/**
* Sets fileName.
* <p>
* Field description:
* Name of the file being sent (file extension included).
* <p>
* The field is required.
*
* @param fileName
* @return This {@link ViberOutboundFileContent instance}.
*/
public ViberOutboundFileContent fileName(String fileName) {
this.fileName = fileName;
return this;
}
/**
* Returns fileName.
* <p>
* Field description:
* Name of the file being sent (file extension included).
* <p>
* The field is required.
*
* @return fileName
*/
@JsonProperty("fileName")
public String getFileName() {
return fileName;
}
/**
* Sets fileName.
* <p>
* Field description:
* Name of the file being sent (file extension included).
* <p>
* The field is required.
*
* @param fileName
*/
@JsonProperty("fileName")
public void setFileName(String fileName) {
this.fileName = fileName;
}
/**
* Sets mediaUrl.
* <p>
* Field description:
* URL of the file being sent. Must be a valid URL starting with https:// or http://. Supported file types are .doc, .docx, .rtf, .dot, .dotx, .odt ,.odf, .fodt, .txt, .info, .pdf, .xps, .pdax, .eps, .xls, .xlsx, .ods, .fods, .csv, .xlsm, .xltx. Maximum file size is 200 MB.
* <p>
* The field is required.
*
* @param mediaUrl
* @return This {@link ViberOutboundFileContent instance}.
*/
public ViberOutboundFileContent mediaUrl(String mediaUrl) {
this.mediaUrl = mediaUrl;
return this;
}
/**
* Returns mediaUrl.
* <p>
* Field description:
* URL of the file being sent. Must be a valid URL starting with https:// or http://. Supported file types are .doc, .docx, .rtf, .dot, .dotx, .odt ,.odf, .fodt, .txt, .info, .pdf, .xps, .pdax, .eps, .xls, .xlsx, .ods, .fods, .csv, .xlsm, .xltx. Maximum file size is 200 MB.
* <p>
* The field is required.
*
* @return mediaUrl
*/
@JsonProperty("mediaUrl")
public String getMediaUrl() {
return mediaUrl;
}
/**
* Sets mediaUrl.
* <p>
* Field description:
* URL of the file being sent. Must be a valid URL starting with https:// or http://. Supported file types are .doc, .docx, .rtf, .dot, .dotx, .odt ,.odf, .fodt, .txt, .info, .pdf, .xps, .pdax, .eps, .xls, .xlsx, .ods, .fods, .csv, .xlsm, .xltx. Maximum file size is 200 MB.
* <p>
* The field is required.
*
* @param mediaUrl
*/
@JsonProperty("mediaUrl")
public void setMediaUrl(String mediaUrl) {
this.mediaUrl = mediaUrl;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ViberOutboundFileContent viberOutboundFileContent = (ViberOutboundFileContent) o;
return Objects.equals(this.fileName, viberOutboundFileContent.fileName)
&& Objects.equals(this.mediaUrl, viberOutboundFileContent.mediaUrl)
&& super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(fileName, mediaUrl, super.hashCode());
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class ViberOutboundFileContent {")
.append(newLine)
.append(" ")
.append(toIndentedString(super.toString()))
.append(newLine)
.append(" fileName: ")
.append(toIndentedString(fileName))
.append(newLine)
.append(" mediaUrl: ")
.append(toIndentedString(mediaUrl))
.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);
}
}