com.katalon.testops.api.model.TimeZoneResource Maven / Gradle / Ivy
/*
* Katalon TestOps API reference
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.katalon.testops.api.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.katalon.testops.api.model.TimeZoneResourceOffset;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* TimeZoneResource
*/
@JsonPropertyOrder({
TimeZoneResource.JSON_PROPERTY_ZONE_ID,
TimeZoneResource.JSON_PROPERTY_NAME,
TimeZoneResource.JSON_PROPERTY_OFFSET
})
@JsonTypeName("TimeZoneResource")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TimeZoneResource implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ZONE_ID = "zoneId";
private String zoneId;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_OFFSET = "offset";
private TimeZoneResourceOffset offset;
public TimeZoneResource zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
/**
* Get zoneId
* @return zoneId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ZONE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getZoneId() {
return zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public TimeZoneResource name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public TimeZoneResource offset(TimeZoneResourceOffset offset) {
this.offset = offset;
return this;
}
/**
* Get offset
* @return offset
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OFFSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public TimeZoneResourceOffset getOffset() {
return offset;
}
public void setOffset(TimeZoneResourceOffset offset) {
this.offset = offset;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TimeZoneResource timeZoneResource = (TimeZoneResource) o;
return Objects.equals(this.zoneId, timeZoneResource.zoneId) &&
Objects.equals(this.name, timeZoneResource.name) &&
Objects.equals(this.offset, timeZoneResource.offset);
}
@Override
public int hashCode() {
return Objects.hash(zoneId, name, offset);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TimeZoneResource {\n");
sb.append(" zoneId: ").append(toIndentedString(zoneId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).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 ");
}
}