blob: ef13b60d70d42c8abab071b68f951dd243eac8b9 (
plain)
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
|
/*
* Menshen API
* This is a LEAP VPN Service API
*
* OpenAPI spec version: 0.5.2
*
*
* 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 io.swagger.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Operational properties which describe how the provider offers the service
*/
@ApiModel(description = "Operational properties which describe how the provider offers the service")
public class ModelsProviderService {
@SerializedName("allow_anonymous")
private Boolean allowAnonymous = null;
@SerializedName("allow_registration")
private Boolean allowRegistration = null;
public ModelsProviderService allowAnonymous(Boolean allowAnonymous) {
this.allowAnonymous = allowAnonymous;
return this;
}
/**
* Flag indicating if anonymous usage without registration is allowed deprecated: kept for backwards compatibility
* @return allowAnonymous
**/
@ApiModelProperty(value = "Flag indicating if anonymous usage without registration is allowed deprecated: kept for backwards compatibility")
public Boolean isAllowAnonymous() {
return allowAnonymous;
}
public void setAllowAnonymous(Boolean allowAnonymous) {
this.allowAnonymous = allowAnonymous;
}
public ModelsProviderService allowRegistration(Boolean allowRegistration) {
this.allowRegistration = allowRegistration;
return this;
}
/**
* Flag indicating if the provider supports user registration deprecated: kept for backwards compatibility
* @return allowRegistration
**/
@ApiModelProperty(value = "Flag indicating if the provider supports user registration deprecated: kept for backwards compatibility")
public Boolean isAllowRegistration() {
return allowRegistration;
}
public void setAllowRegistration(Boolean allowRegistration) {
this.allowRegistration = allowRegistration;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ModelsProviderService modelsProviderService = (ModelsProviderService) o;
return Objects.equals(this.allowAnonymous, modelsProviderService.allowAnonymous) &&
Objects.equals(this.allowRegistration, modelsProviderService.allowRegistration);
}
@Override
public int hashCode() {
return Objects.hash(allowAnonymous, allowRegistration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModelsProviderService {\n");
sb.append(" allowAnonymous: ").append(toIndentedString(allowAnonymous)).append("\n");
sb.append(" allowRegistration: ").append(toIndentedString(allowRegistration)).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 ");
}
}
|