io.alauda.kubernetes.api.model.SecretKeySetRefFluentImpl 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 SecretKeySetRefFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements SecretKeySetRefFluent{
private String apiTokenKey;
private String name;
private String namespace;
private String usernameKey;
public SecretKeySetRefFluentImpl(){
}
public SecretKeySetRefFluentImpl(SecretKeySetRef instance){
this.withApiTokenKey(instance.getApiTokenKey());
this.withName(instance.getName());
this.withNamespace(instance.getNamespace());
this.withUsernameKey(instance.getUsernameKey());
}
public String getApiTokenKey(){
return this.apiTokenKey;
}
public A withApiTokenKey(String apiTokenKey){
this.apiTokenKey=apiTokenKey; return (A) this;
}
public Boolean hasApiTokenKey(){
return this.apiTokenKey!=null;
}
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 String getNamespace(){
return this.namespace;
}
public A withNamespace(String namespace){
this.namespace=namespace; return (A) this;
}
public Boolean hasNamespace(){
return this.namespace!=null;
}
public String getUsernameKey(){
return this.usernameKey;
}
public A withUsernameKey(String usernameKey){
this.usernameKey=usernameKey; return (A) this;
}
public Boolean hasUsernameKey(){
return this.usernameKey!=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;
SecretKeySetRefFluentImpl that = (SecretKeySetRefFluentImpl) o;
if (apiTokenKey != null ? !apiTokenKey.equals(that.apiTokenKey) :that.apiTokenKey != null) return false;
if (name != null ? !name.equals(that.name) :that.name != null) return false;
if (namespace != null ? !namespace.equals(that.namespace) :that.namespace != null) return false;
if (usernameKey != null ? !usernameKey.equals(that.usernameKey) :that.usernameKey != null) return false;
return true;
}
}