All Downloads are FREE. Search and download functionalities are using the official Maven repository.

annotations.me.snowdrop.servicecatalog.api.model.ClusterServiceBrokerSpecFluentImpl Maven / Gradle / Ivy

The newest version!
package me.snowdrop.servicecatalog.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.StringBuilder;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.String;
import java.lang.StringBuffer;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.Boolean;

public class ClusterServiceBrokerSpecFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements ClusterServiceBrokerSpecFluent{

    private ClusterServiceBrokerAuthInfoBuilder authInfo;
    private String caBundle;
    private CatalogRestrictionsBuilder catalogRestrictions;
    private Boolean insecureSkipTLSVerify;
    private String relistBehavior;
    private String relistDuration;
    private Long relistRequests;
    private String url;

    public ClusterServiceBrokerSpecFluentImpl(){
    }
    public ClusterServiceBrokerSpecFluentImpl(ClusterServiceBrokerSpec instance){
            this.withAuthInfo(instance.getAuthInfo()); 
            this.withCaBundle(instance.getCaBundle()); 
            this.withCatalogRestrictions(instance.getCatalogRestrictions()); 
            this.withInsecureSkipTLSVerify(instance.getInsecureSkipTLSVerify()); 
            this.withRelistBehavior(instance.getRelistBehavior()); 
            this.withRelistDuration(instance.getRelistDuration()); 
            this.withRelistRequests(instance.getRelistRequests()); 
            this.withUrl(instance.getUrl()); 
    }

    
/**
 * This method has been deprecated, please use method buildAuthInfo instead.
 * @return The buildable object.
 */
@Deprecated public ClusterServiceBrokerAuthInfo getAuthInfo(){
            return this.authInfo!=null?this.authInfo.build():null;
    }

    public ClusterServiceBrokerAuthInfo buildAuthInfo(){
            return this.authInfo!=null?this.authInfo.build():null;
    }

    public A withAuthInfo(ClusterServiceBrokerAuthInfo authInfo){
            _visitables.get("authInfo").remove(this.authInfo);
            if (authInfo!=null){ this.authInfo= new ClusterServiceBrokerAuthInfoBuilder(authInfo); _visitables.get("authInfo").add(this.authInfo);} return (A) this;
    }

    public Boolean hasAuthInfo(){
            return this.authInfo != null;
    }

    public ClusterServiceBrokerSpecFluent.AuthInfoNested withNewAuthInfo(){
            return new AuthInfoNestedImpl();
    }

    public ClusterServiceBrokerSpecFluent.AuthInfoNested withNewAuthInfoLike(ClusterServiceBrokerAuthInfo item){
            return new AuthInfoNestedImpl(item);
    }

    public ClusterServiceBrokerSpecFluent.AuthInfoNested editAuthInfo(){
            return withNewAuthInfoLike(getAuthInfo());
    }

    public ClusterServiceBrokerSpecFluent.AuthInfoNested editOrNewAuthInfo(){
            return withNewAuthInfoLike(getAuthInfo() != null ? getAuthInfo(): new ClusterServiceBrokerAuthInfoBuilder().build());
    }

    public ClusterServiceBrokerSpecFluent.AuthInfoNested editOrNewAuthInfoLike(ClusterServiceBrokerAuthInfo item){
            return withNewAuthInfoLike(getAuthInfo() != null ? getAuthInfo(): item);
    }

    public String getCaBundle(){
            return this.caBundle;
    }

    public A withCaBundle(String caBundle){
            this.caBundle=caBundle; return (A) this;
    }

    public Boolean hasCaBundle(){
            return this.caBundle != null;
    }

    public A withNewCaBundle(String arg1){
            return (A)withCaBundle(new String(arg1));
    }

    public A withNewCaBundle(StringBuilder arg1){
            return (A)withCaBundle(new String(arg1));
    }

    public A withNewCaBundle(StringBuffer arg1){
            return (A)withCaBundle(new String(arg1));
    }

    
/**
 * This method has been deprecated, please use method buildCatalogRestrictions instead.
 * @return The buildable object.
 */
@Deprecated public CatalogRestrictions getCatalogRestrictions(){
            return this.catalogRestrictions!=null?this.catalogRestrictions.build():null;
    }

    public CatalogRestrictions buildCatalogRestrictions(){
            return this.catalogRestrictions!=null?this.catalogRestrictions.build():null;
    }

    public A withCatalogRestrictions(CatalogRestrictions catalogRestrictions){
            _visitables.get("catalogRestrictions").remove(this.catalogRestrictions);
            if (catalogRestrictions!=null){ this.catalogRestrictions= new CatalogRestrictionsBuilder(catalogRestrictions); _visitables.get("catalogRestrictions").add(this.catalogRestrictions);} return (A) this;
    }

    public Boolean hasCatalogRestrictions(){
            return this.catalogRestrictions != null;
    }

    public ClusterServiceBrokerSpecFluent.CatalogRestrictionsNested withNewCatalogRestrictions(){
            return new CatalogRestrictionsNestedImpl();
    }

    public ClusterServiceBrokerSpecFluent.CatalogRestrictionsNested withNewCatalogRestrictionsLike(CatalogRestrictions item){
            return new CatalogRestrictionsNestedImpl(item);
    }

    public ClusterServiceBrokerSpecFluent.CatalogRestrictionsNested editCatalogRestrictions(){
            return withNewCatalogRestrictionsLike(getCatalogRestrictions());
    }

    public ClusterServiceBrokerSpecFluent.CatalogRestrictionsNested editOrNewCatalogRestrictions(){
            return withNewCatalogRestrictionsLike(getCatalogRestrictions() != null ? getCatalogRestrictions(): new CatalogRestrictionsBuilder().build());
    }

    public ClusterServiceBrokerSpecFluent.CatalogRestrictionsNested editOrNewCatalogRestrictionsLike(CatalogRestrictions item){
            return withNewCatalogRestrictionsLike(getCatalogRestrictions() != null ? getCatalogRestrictions(): item);
    }

    public Boolean isInsecureSkipTLSVerify(){
            return this.insecureSkipTLSVerify;
    }

    public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify){
            this.insecureSkipTLSVerify=insecureSkipTLSVerify; return (A) this;
    }

    public Boolean hasInsecureSkipTLSVerify(){
            return this.insecureSkipTLSVerify != null;
    }

    public A withNewInsecureSkipTLSVerify(String arg1){
            return (A)withInsecureSkipTLSVerify(new Boolean(arg1));
    }

    public A withNewInsecureSkipTLSVerify(boolean arg1){
            return (A)withInsecureSkipTLSVerify(new Boolean(arg1));
    }

    public String getRelistBehavior(){
            return this.relistBehavior;
    }

    public A withRelistBehavior(String relistBehavior){
            this.relistBehavior=relistBehavior; return (A) this;
    }

    public Boolean hasRelistBehavior(){
            return this.relistBehavior != null;
    }

    public A withNewRelistBehavior(String arg1){
            return (A)withRelistBehavior(new String(arg1));
    }

    public A withNewRelistBehavior(StringBuilder arg1){
            return (A)withRelistBehavior(new String(arg1));
    }

    public A withNewRelistBehavior(StringBuffer arg1){
            return (A)withRelistBehavior(new String(arg1));
    }

    public String getRelistDuration(){
            return this.relistDuration;
    }

    public A withRelistDuration(String relistDuration){
            this.relistDuration=relistDuration; return (A) this;
    }

    public Boolean hasRelistDuration(){
            return this.relistDuration != null;
    }

    public A withNewRelistDuration(String arg1){
            return (A)withRelistDuration(new String(arg1));
    }

    public A withNewRelistDuration(StringBuilder arg1){
            return (A)withRelistDuration(new String(arg1));
    }

    public A withNewRelistDuration(StringBuffer arg1){
            return (A)withRelistDuration(new String(arg1));
    }

    public Long getRelistRequests(){
            return this.relistRequests;
    }

    public A withRelistRequests(Long relistRequests){
            this.relistRequests=relistRequests; return (A) this;
    }

    public Boolean hasRelistRequests(){
            return this.relistRequests != null;
    }

    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;
            if (!super.equals(o)) return false;
            ClusterServiceBrokerSpecFluentImpl that = (ClusterServiceBrokerSpecFluentImpl) o;
            if (authInfo != null ? !authInfo.equals(that.authInfo) :that.authInfo != null) return false;
            if (caBundle != null ? !caBundle.equals(that.caBundle) :that.caBundle != null) return false;
            if (catalogRestrictions != null ? !catalogRestrictions.equals(that.catalogRestrictions) :that.catalogRestrictions != null) return false;
            if (insecureSkipTLSVerify != null ? !insecureSkipTLSVerify.equals(that.insecureSkipTLSVerify) :that.insecureSkipTLSVerify != null) return false;
            if (relistBehavior != null ? !relistBehavior.equals(that.relistBehavior) :that.relistBehavior != null) return false;
            if (relistDuration != null ? !relistDuration.equals(that.relistDuration) :that.relistDuration != null) return false;
            if (relistRequests != null ? !relistRequests.equals(that.relistRequests) :that.relistRequests != null) return false;
            if (url != null ? !url.equals(that.url) :that.url != null) return false;
            return true;
    }


    public class AuthInfoNestedImpl extends ClusterServiceBrokerAuthInfoFluentImpl> implements ClusterServiceBrokerSpecFluent.AuthInfoNested,io.fabric8.kubernetes.api.builder.Nested{

            private final ClusterServiceBrokerAuthInfoBuilder builder;
    
            AuthInfoNestedImpl(ClusterServiceBrokerAuthInfo item){
                    this.builder = new ClusterServiceBrokerAuthInfoBuilder(this, item);
            }
            AuthInfoNestedImpl(){
                    this.builder = new ClusterServiceBrokerAuthInfoBuilder(this);
            }
    
    public N and(){
            return (N) ClusterServiceBrokerSpecFluentImpl.this.withAuthInfo(builder.build());
    }
    public N endAuthInfo(){
            return and();
    }

}
    public class CatalogRestrictionsNestedImpl extends CatalogRestrictionsFluentImpl> implements ClusterServiceBrokerSpecFluent.CatalogRestrictionsNested,io.fabric8.kubernetes.api.builder.Nested{

            private final CatalogRestrictionsBuilder builder;
    
            CatalogRestrictionsNestedImpl(CatalogRestrictions item){
                    this.builder = new CatalogRestrictionsBuilder(this, item);
            }
            CatalogRestrictionsNestedImpl(){
                    this.builder = new CatalogRestrictionsBuilder(this);
            }
    
    public N and(){
            return (N) ClusterServiceBrokerSpecFluentImpl.this.withCatalogRestrictions(builder.build());
    }
    public N endCatalogRestrictions(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy