public DoneableHTTPCookie(io.fabric8.kubernetes.api.builder.Function<HTTPCookie,HTTPCookie> function){ super();this.builder=new HTTPCookieBuilder(this);this.function=function; } public DoneableHTTPCookie(HTTPCookie item,io.fabric8.kubernetes.api.builder.Function<HTTPCookie,HTTPCookie> function){
public HTTPCookie buildHttpCookie(){ return this.httpCookie!=null?this.httpCookie.build():null; }
public HttpCookieHashKeyFluent.HttpCookieNested<A> editOrNewHttpCookie(){ return withNewHttpCookieLike(getHttpCookie() != null ? getHttpCookie(): new HTTPCookieBuilder().build()); }
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 DoneableHTTPCookie(HTTPCookie item,io.fabric8.kubernetes.api.builder.Function<HTTPCookie,HTTPCookie> function){ super(item);this.builder=new HTTPCookieBuilder(this, item);this.function=function; } public DoneableHTTPCookie(HTTPCookie item){
/** * 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 DoneableHTTPCookie(HTTPCookie item){ super(item);this.builder=new HTTPCookieBuilder(this, item);this.function=new Function<HTTPCookie, HTTPCookie>() { public HTTPCookie apply(HTTPCookie item) { return item; } } ; }
public HTTPCookie done(){ return function.apply(builder.build()); }
public A withHttpCookie(HTTPCookie httpCookie){ _visitables.remove(this.httpCookie); if (httpCookie!=null){ this.httpCookie= new HTTPCookieBuilder(httpCookie); _visitables.add(this.httpCookie);} return (A) this; }