annotations.io.alauda.kubernetes.api.model.LocalObjectReferenceFluentImpl Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class LocalObjectReferenceFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements LocalObjectReferenceFluent{
private String name;
public LocalObjectReferenceFluentImpl(){
}
public LocalObjectReferenceFluentImpl(LocalObjectReference instance){
this.withName(instance.getName());
}
public String getName(){
return this.name;
}
public A withName(String name){
this.name=name; return (A) this;
}
public Boolean hasName(){
return this.name!=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;
LocalObjectReferenceFluentImpl that = (LocalObjectReferenceFluentImpl) o;
if (name != null ? !name.equals(that.name) :that.name != null) return false;
return true;
}
}