
com.emnify.sdk.model.Model40xResponse Maven / Gradle / Ivy
/*-
* #%L
* EMnify Java SDK
* %%
* Copyright (C) 2021 EMnify
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package com.emnify.sdk.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;
/**
* Model40xResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Model40xResponse {
public static final String SERIALIZED_NAME_ERROR_CODE = "error_code";
@SerializedName(SERIALIZED_NAME_ERROR_CODE)
private Integer errorCode;
public static final String SERIALIZED_NAME_ERROR_TOKEN = "error_token";
@SerializedName(SERIALIZED_NAME_ERROR_TOKEN)
private String errorToken;
public static final String SERIALIZED_NAME_MESSAGE = "message";
@SerializedName(SERIALIZED_NAME_MESSAGE)
private String message;
public Model40xResponse errorCode(Integer errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Get errorCode
* @return errorCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getErrorCode() {
return errorCode;
}
public void setErrorCode(Integer errorCode) {
this.errorCode = errorCode;
}
public Model40xResponse errorToken(String errorToken) {
this.errorToken = errorToken;
return this;
}
/**
* Get errorToken
* @return errorToken
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getErrorToken() {
return errorToken;
}
public void setErrorToken(String errorToken) {
this.errorToken = errorToken;
}
public Model40xResponse message(String message) {
this.message = message;
return this;
}
/**
* Get message
* @return message
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Model40xResponse _40xResponse = (Model40xResponse) o;
return Objects.equals(this.errorCode, _40xResponse.errorCode) &&
Objects.equals(this.errorToken, _40xResponse.errorToken) &&
Objects.equals(this.message, _40xResponse.message);
}
@Override
public int hashCode() {
return Objects.hash(errorCode, errorToken, message);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Model40xResponse {\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" errorToken: ").append(toIndentedString(errorToken)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy