com.katalon.testops.model.TimeZoneResourceOffsetRules 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 com.katalon.testops.model.TimeZoneResourceOffsetRulesTransitionRules;
import com.katalon.testops.model.TimeZoneResourceOffsetRulesTransitions;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* TimeZoneResourceOffsetRules
*/
public class TimeZoneResourceOffsetRules {
@JsonProperty("fixedOffset")
private Boolean fixedOffset = null;
@JsonProperty("transitions")
private List transitions = null;
@JsonProperty("transitionRules")
private List transitionRules = null;
public TimeZoneResourceOffsetRules fixedOffset(Boolean fixedOffset) {
this.fixedOffset = fixedOffset;
return this;
}
/**
* Get fixedOffset
* @return fixedOffset
**/
@Schema(description = "")
public Boolean isFixedOffset() {
return fixedOffset;
}
public void setFixedOffset(Boolean fixedOffset) {
this.fixedOffset = fixedOffset;
}
public TimeZoneResourceOffsetRules transitions(List transitions) {
this.transitions = transitions;
return this;
}
public TimeZoneResourceOffsetRules addTransitionsItem(TimeZoneResourceOffsetRulesTransitions transitionsItem) {
if (this.transitions == null) {
this.transitions = new ArrayList();
}
this.transitions.add(transitionsItem);
return this;
}
/**
* Get transitions
* @return transitions
**/
@Schema(description = "")
public List getTransitions() {
return transitions;
}
public void setTransitions(List transitions) {
this.transitions = transitions;
}
public TimeZoneResourceOffsetRules transitionRules(List transitionRules) {
this.transitionRules = transitionRules;
return this;
}
public TimeZoneResourceOffsetRules addTransitionRulesItem(TimeZoneResourceOffsetRulesTransitionRules transitionRulesItem) {
if (this.transitionRules == null) {
this.transitionRules = new ArrayList();
}
this.transitionRules.add(transitionRulesItem);
return this;
}
/**
* Get transitionRules
* @return transitionRules
**/
@Schema(description = "")
public List getTransitionRules() {
return transitionRules;
}
public void setTransitionRules(List transitionRules) {
this.transitionRules = transitionRules;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TimeZoneResourceOffsetRules timeZoneResourceOffsetRules = (TimeZoneResourceOffsetRules) o;
return Objects.equals(this.fixedOffset, timeZoneResourceOffsetRules.fixedOffset) &&
Objects.equals(this.transitions, timeZoneResourceOffsetRules.transitions) &&
Objects.equals(this.transitionRules, timeZoneResourceOffsetRules.transitionRules);
}
@Override
public int hashCode() {
return Objects.hash(fixedOffset, transitions, transitionRules);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TimeZoneResourceOffsetRules {\n");
sb.append(" fixedOffset: ").append(toIndentedString(fixedOffset)).append("\n");
sb.append(" transitions: ").append(toIndentedString(transitions)).append("\n");
sb.append(" transitionRules: ").append(toIndentedString(transitionRules)).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 ");
}
}