annotations.io.fabric8.knative.duck.v1alpha1.AddressableFluentImpl Maven / Gradle / Ivy
package io.fabric8.knative.duck.v1alpha1;
import java.lang.StringBuffer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.StringBuilder;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class AddressableFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.knative.duck.v1alpha1.AddressableFluent{
private String hostname;
private String url;
public AddressableFluentImpl(){
}
public AddressableFluentImpl(io.fabric8.knative.duck.v1alpha1.Addressable instance){
this.withHostname(instance.getHostname());
this.withUrl(instance.getUrl());
}
public String getHostname(){
return this.hostname;
}
public A withHostname(String hostname){
this.hostname=hostname; return (A) this;
}
public Boolean hasHostname(){
return this.hostname != null;
}
public A withNewHostname(String arg1){
return (A)withHostname(new String(arg1));
}
public A withNewHostname(StringBuilder arg1){
return (A)withHostname(new String(arg1));
}
public A withNewHostname(StringBuffer arg1){
return (A)withHostname(new String(arg1));
}
public String getUrl(){
return this.url;
}
public A withUrl(String url){
this.url=url; return (A) this;
}
public Boolean hasUrl(){
return this.url != null;
}
public A withNewUrl(String arg1){
return (A)withUrl(new String(arg1));
}
public A withNewUrl(StringBuilder arg1){
return (A)withUrl(new String(arg1));
}
public A withNewUrl(StringBuffer arg1){
return (A)withUrl(new String(arg1));
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AddressableFluentImpl that = (AddressableFluentImpl) o;
if (hostname != null ? !hostname.equals(that.hostname) :that.hostname != null) return false;
if (url != null ? !url.equals(that.url) :that.url != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy