io.alauda.kubernetes.api.model.HostPortStatusFluentImpl Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import java.lang.Integer;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.Valid;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class HostPortStatusFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements HostPortStatusFluent{
private Long delay;
private String lastAttempt;
private String response;
private Integer statusCode;
private String version;
public HostPortStatusFluentImpl(){
}
public HostPortStatusFluentImpl(HostPortStatus instance){
this.withDelay(instance.getDelay());
this.withLastAttempt(instance.getLastAttempt());
this.withResponse(instance.getResponse());
this.withStatusCode(instance.getStatusCode());
this.withVersion(instance.getVersion());
}
public Long getDelay(){
return this.delay;
}
public A withDelay(Long delay){
this.delay=delay; return (A) this;
}
public Boolean hasDelay(){
return this.delay!=null;
}
public String getLastAttempt(){
return this.lastAttempt;
}
public A withLastAttempt(String lastAttempt){
this.lastAttempt=lastAttempt; return (A) this;
}
public Boolean hasLastAttempt(){
return this.lastAttempt!=null;
}
public String getResponse(){
return this.response;
}
public A withResponse(String response){
this.response=response; return (A) this;
}
public Boolean hasResponse(){
return this.response!=null;
}
public Integer getStatusCode(){
return this.statusCode;
}
public A withStatusCode(Integer statusCode){
this.statusCode=statusCode; return (A) this;
}
public Boolean hasStatusCode(){
return this.statusCode!=null;
}
public String getVersion(){
return this.version;
}
public A withVersion(String version){
this.version=version; return (A) this;
}
public Boolean hasVersion(){
return this.version!=null;
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
HostPortStatusFluentImpl that = (HostPortStatusFluentImpl) o;
if (delay != null ? !delay.equals(that.delay) :that.delay != null) return false;
if (lastAttempt != null ? !lastAttempt.equals(that.lastAttempt) :that.lastAttempt != null) return false;
if (response != null ? !response.equals(that.response) :that.response != null) return false;
if (statusCode != null ? !statusCode.equals(that.statusCode) :that.statusCode != null) return false;
if (version != null ? !version.equals(that.version) :that.version != null) return false;
return true;
}
}