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

me.snowdrop.istio.api.networking.v1alpha3.HttpCookieHashKeyFluentImpl Maven / Gradle / Ivy

package me.snowdrop.istio.api.networking.v1alpha3;

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

public class HttpCookieHashKeyFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements HttpCookieHashKeyFluent{

    private HTTPCookieBuilder httpCookie;

    public HttpCookieHashKeyFluentImpl(){
    }
    public HttpCookieHashKeyFluentImpl(HttpCookieHashKey instance){
            this.withHttpCookie(instance.getHttpCookie()); 
    }

    
/**
 * This method has been deprecated, please use method buildHttpCookie instead.
 * @return The buildable object.
 */
@Deprecated public HTTPCookie getHttpCookie(){
            return this.httpCookie!=null?this.httpCookie.build():null;
    }

    public HTTPCookie buildHttpCookie(){
            return this.httpCookie!=null?this.httpCookie.build():null;
    }

    public A withHttpCookie(HTTPCookie httpCookie){
            _visitables.remove(this.httpCookie);
            if (httpCookie!=null){ this.httpCookie= new HTTPCookieBuilder(httpCookie); _visitables.add(this.httpCookie);} return (A) this;
    }

    public Boolean hasHttpCookie(){
            return this.httpCookie != null;
    }

    public A withNewHttpCookie(String name,String path,Integer ttl){
            return (A)withHttpCookie(new HTTPCookie(name, path, ttl));
    }

    public HttpCookieHashKeyFluent.HttpCookieNested withNewHttpCookie(){
            return new HttpCookieNestedImpl();
    }

    public HttpCookieHashKeyFluent.HttpCookieNested withNewHttpCookieLike(HTTPCookie item){
            return new HttpCookieNestedImpl(item);
    }

    public HttpCookieHashKeyFluent.HttpCookieNested editHttpCookie(){
            return withNewHttpCookieLike(getHttpCookie());
    }

    public HttpCookieHashKeyFluent.HttpCookieNested editOrNewHttpCookie(){
            return withNewHttpCookieLike(getHttpCookie() != null ? getHttpCookie(): new HTTPCookieBuilder().build());
    }

    public HttpCookieHashKeyFluent.HttpCookieNested editOrNewHttpCookieLike(HTTPCookie item){
            return withNewHttpCookieLike(getHttpCookie() != null ? getHttpCookie(): item);
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            HttpCookieHashKeyFluentImpl that = (HttpCookieHashKeyFluentImpl) o;
            if (httpCookie != null ? !httpCookie.equals(that.httpCookie) :that.httpCookie != null) return false;
            return true;
    }


    public class HttpCookieNestedImpl extends HTTPCookieFluentImpl> implements HttpCookieHashKeyFluent.HttpCookieNested,io.fabric8.kubernetes.api.builder.Nested{

            private final HTTPCookieBuilder builder;
    
            HttpCookieNestedImpl(HTTPCookie item){
                    this.builder = new HTTPCookieBuilder(this, item);
            }
            HttpCookieNestedImpl(){
                    this.builder = new HTTPCookieBuilder(this);
            }
    
    public N and(){
            return (N) HttpCookieHashKeyFluentImpl.this.withHttpCookie(builder.build());
    }
    public N endHttpCookie(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy