com.klarna.rest.api.payments.model.PaymentsInstant Maven / Gradle / Ivy
The newest version!
/*
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.0
*
*
* 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 com.klarna.rest.api.payments.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* PaymentsInstant
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-01-20T11:12:59.490Z")
public class PaymentsInstant {
@JsonProperty("epoch_second")
private Long epochSecond = null;
@JsonProperty("nano")
private Integer nano = null;
public PaymentsInstant epochSecond(Long epochSecond) {
this.epochSecond = epochSecond;
return this;
}
/**
* Get epochSecond
* @return epochSecond
**/
@ApiModelProperty(value = "")
public Long getEpochSecond() {
return epochSecond;
}
public void setEpochSecond(Long epochSecond) {
this.epochSecond = epochSecond;
}
public PaymentsInstant nano(Integer nano) {
this.nano = nano;
return this;
}
/**
* Get nano
* @return nano
**/
@ApiModelProperty(value = "")
public Integer getNano() {
return nano;
}
public void setNano(Integer nano) {
this.nano = nano;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentsInstant instant = (PaymentsInstant) o;
return Objects.equals(this.epochSecond, instant.epochSecond) &&
Objects.equals(this.nano, instant.nano);
}
@Override
public int hashCode() {
return Objects.hash(epochSecond, nano);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentsInstant {\n");
sb.append(" epochSecond: ").append(toIndentedString(epochSecond)).append("\n");
sb.append(" nano: ").append(toIndentedString(nano)).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 ");
}
}