
io.alauda.kubernetes.api.model.JenkinsSpecFluentImpl Maven / Gradle / Ivy
The newest version!
package io.alauda.kubernetes.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.kubernetes.api.builder.Nested;
import java.lang.String;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
public class JenkinsSpecFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements JenkinsSpecFluent{
private HostPortBuilder http;
private SecretKeySetRefBuilder secret;
public JenkinsSpecFluentImpl(){
}
public JenkinsSpecFluentImpl(JenkinsSpec instance){
this.withHttp(instance.getHttp());
this.withSecret(instance.getSecret());
}
/**
* This method has been deprecated, please use method buildHttp instead.
*/
@Deprecated public HostPort getHttp(){
return this.http!=null?this.http.build():null;
}
public HostPort buildHttp(){
return this.http!=null?this.http.build():null;
}
public A withHttp(HostPort http){
_visitables.remove(this.http);
if (http!=null){ this.http= new HostPortBuilder(http); _visitables.add(this.http);} return (A) this;
}
public Boolean hasHttp(){
return this.http!=null;
}
public JenkinsSpecFluent.HttpNested withNewHttp(){
return new HttpNestedImpl();
}
public JenkinsSpecFluent.HttpNested withNewHttpLike(HostPort item){
return new HttpNestedImpl(item);
}
public JenkinsSpecFluent.HttpNested editHttp(){
return withNewHttpLike(getHttp());
}
public JenkinsSpecFluent.HttpNested editOrNewHttp(){
return withNewHttpLike(getHttp() != null ? getHttp(): new HostPortBuilder().build());
}
public JenkinsSpecFluent.HttpNested editOrNewHttpLike(HostPort item){
return withNewHttpLike(getHttp() != null ? getHttp(): item);
}
public A withNewHttp(String accessUrl,String host){
return (A)withHttp(new HostPort(accessUrl, host));
}
/**
* This method has been deprecated, please use method buildSecret instead.
*/
@Deprecated public SecretKeySetRef getSecret(){
return this.secret!=null?this.secret.build():null;
}
public SecretKeySetRef buildSecret(){
return this.secret!=null?this.secret.build():null;
}
public A withSecret(SecretKeySetRef secret){
_visitables.remove(this.secret);
if (secret!=null){ this.secret= new SecretKeySetRefBuilder(secret); _visitables.add(this.secret);} return (A) this;
}
public Boolean hasSecret(){
return this.secret!=null;
}
public JenkinsSpecFluent.SecretNested withNewSecret(){
return new SecretNestedImpl();
}
public JenkinsSpecFluent.SecretNested withNewSecretLike(SecretKeySetRef item){
return new SecretNestedImpl(item);
}
public JenkinsSpecFluent.SecretNested editSecret(){
return withNewSecretLike(getSecret());
}
public JenkinsSpecFluent.SecretNested editOrNewSecret(){
return withNewSecretLike(getSecret() != null ? getSecret(): new SecretKeySetRefBuilder().build());
}
public JenkinsSpecFluent.SecretNested editOrNewSecretLike(SecretKeySetRef item){
return withNewSecretLike(getSecret() != null ? getSecret(): item);
}
public A withNewSecret(String name,String namespace){
return (A)withSecret(new SecretKeySetRef(name, namespace));
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
JenkinsSpecFluentImpl that = (JenkinsSpecFluentImpl) o;
if (http != null ? !http.equals(that.http) :that.http != null) return false;
if (secret != null ? !secret.equals(that.secret) :that.secret != null) return false;
return true;
}
public class HttpNestedImpl extends HostPortFluentImpl> implements JenkinsSpecFluent.HttpNested,io.alauda.kubernetes.api.builder.Nested{
private final HostPortBuilder builder;
HttpNestedImpl(HostPort item){
this.builder = new HostPortBuilder(this, item);
}
HttpNestedImpl(){
this.builder = new HostPortBuilder(this);
}
public N and(){
return (N) JenkinsSpecFluentImpl.this.withHttp(builder.build());
}
public N endHttp(){
return and();
}
}
public class SecretNestedImpl extends SecretKeySetRefFluentImpl> implements JenkinsSpecFluent.SecretNested,io.alauda.kubernetes.api.builder.Nested{
private final SecretKeySetRefBuilder builder;
SecretNestedImpl(SecretKeySetRef item){
this.builder = new SecretKeySetRefBuilder(this, item);
}
SecretNestedImpl(){
this.builder = new SecretKeySetRefBuilder(this);
}
public N and(){
return (N) JenkinsSpecFluentImpl.this.withSecret(builder.build());
}
public N endSecret(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy