com.katalon.testops.model.LocalTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testops-client-openapi Show documentation
Show all versions of testops-client-openapi Show documentation
Katalon TestOps Client generated by OpenAPI
/*
* Katalon TestOps API reference
* 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.katalon.testops.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.v3.oas.annotations.media.Schema;
/**
* LocalTime
*/
public class LocalTime {
@JsonProperty("hour")
private Integer hour = null;
@JsonProperty("minute")
private Integer minute = null;
@JsonProperty("second")
private Integer second = null;
@JsonProperty("nano")
private Integer nano = null;
public LocalTime hour(Integer hour) {
this.hour = hour;
return this;
}
/**
* Get hour
* @return hour
**/
@Schema(description = "")
public Integer getHour() {
return hour;
}
public void setHour(Integer hour) {
this.hour = hour;
}
public LocalTime minute(Integer minute) {
this.minute = minute;
return this;
}
/**
* Get minute
* @return minute
**/
@Schema(description = "")
public Integer getMinute() {
return minute;
}
public void setMinute(Integer minute) {
this.minute = minute;
}
public LocalTime second(Integer second) {
this.second = second;
return this;
}
/**
* Get second
* @return second
**/
@Schema(description = "")
public Integer getSecond() {
return second;
}
public void setSecond(Integer second) {
this.second = second;
}
public LocalTime nano(Integer nano) {
this.nano = nano;
return this;
}
/**
* Get nano
* @return nano
**/
@Schema(description = "")
public Integer getNano() {
return nano;
}
public void setNano(Integer nano) {
this.nano = nano;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LocalTime localTime = (LocalTime) o;
return Objects.equals(this.hour, localTime.hour) &&
Objects.equals(this.minute, localTime.minute) &&
Objects.equals(this.second, localTime.second) &&
Objects.equals(this.nano, localTime.nano);
}
@Override
public int hashCode() {
return Objects.hash(hour, minute, second, nano);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LocalTime {\n");
sb.append(" hour: ").append(toIndentedString(hour)).append("\n");
sb.append(" minute: ").append(toIndentedString(minute)).append("\n");
sb.append(" second: ").append(toIndentedString(second)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}