net.leanix.mtm.api.models.ParameterForPushNotificationToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-mtm-sdk-java Show documentation
Show all versions of leanix-mtm-sdk-java Show documentation
SDK for Java to access leanIX MTM REST API
package net.leanix.mtm.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
public class ParameterForPushNotificationToken {
public enum TypeEnum {
IOS("IOS"),
ANDROID("ANDROID"),
WINDOWS("WINDOWS");
private String value;
TypeEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return value;
}
}
private TypeEnum type = null;
private String token = null;
/**
**/
public ParameterForPushNotificationToken type(TypeEnum type) {
this.type = type;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("type")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
/**
**/
public ParameterForPushNotificationToken token(String token) {
this.token = token;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("token")
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ParameterForPushNotificationToken parameterForPushNotificationToken = (ParameterForPushNotificationToken) o;
return Objects.equals(this.type, parameterForPushNotificationToken.type) &&
Objects.equals(this.token, parameterForPushNotificationToken.token);
}
@Override
public int hashCode() {
return Objects.hash(type, token);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ParameterForPushNotificationToken {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy