-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGetSegments.java
More file actions
112 lines (91 loc) · 3.33 KB
/
GetSegments.java
File metadata and controls
112 lines (91 loc) · 3.33 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
/*
* Brevo API
* Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@brevo.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package brevoModel;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.ObjectUtils;
import java.util.List;
/**
* GetSegments
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:57:43.398+05:30")
public class GetSegments {
@SerializedName("segments")
private List<GetSegmentsSegments> segments = null;
@SerializedName("count")
private Long count = null;
public GetSegments segments(List<GetSegmentsSegments> segments) {
this.segments = segments;
return this;
}
/**
* Get segments
* @return segments
**/
@ApiModelProperty(value = "")
public List<GetSegmentsSegments> getSegments() {
return segments;
}
public void setSegments(List<GetSegmentsSegments> segments) {
this.segments = segments;
}
public GetSegments count(Long count) {
this.count = count;
return this;
}
/**
* Number of Segments available in your account
* @return count
**/
@ApiModelProperty(example = "10", value = "Number of Segments available in your account")
public Long getCount() {
return count;
}
public void setCount(Long count) {
this.count = count;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetSegments getSegments = (GetSegments) o;
return ObjectUtils.equals(this.segments, getSegments.segments) &&
ObjectUtils.equals(this.count, getSegments.count);
}
@Override
public int hashCode() {
return ObjectUtils.hashCodeMulti(segments, count);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetSegments {\n");
sb.append(" segments: ").append(toIndentedString(segments)).append("\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}