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

me.snowdrop.istio.api.authentication.v1alpha1.OriginAuthenticationMethodFluentImpl Maven / Gradle / Ivy

package me.snowdrop.istio.api.authentication.v1alpha1;

import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.Nested;
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 OriginAuthenticationMethodFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements OriginAuthenticationMethodFluent{

    private JwtBuilder jwt;

    public OriginAuthenticationMethodFluentImpl(){
    }
    public OriginAuthenticationMethodFluentImpl(OriginAuthenticationMethod instance){
            this.withJwt(instance.getJwt()); 
    }

    
/**
 * This method has been deprecated, please use method buildJwt instead.
 * @return The buildable object.
 */
@Deprecated public Jwt getJwt(){
            return this.jwt!=null?this.jwt.build():null;
    }

    public Jwt buildJwt(){
            return this.jwt!=null?this.jwt.build():null;
    }

    public A withJwt(Jwt jwt){
            _visitables.remove(this.jwt);
            if (jwt!=null){ this.jwt= new JwtBuilder(jwt); _visitables.add(this.jwt);} return (A) this;
    }

    public Boolean hasJwt(){
            return this.jwt != null;
    }

    public OriginAuthenticationMethodFluent.JwtNested withNewJwt(){
            return new JwtNestedImpl();
    }

    public OriginAuthenticationMethodFluent.JwtNested withNewJwtLike(Jwt item){
            return new JwtNestedImpl(item);
    }

    public OriginAuthenticationMethodFluent.JwtNested editJwt(){
            return withNewJwtLike(getJwt());
    }

    public OriginAuthenticationMethodFluent.JwtNested editOrNewJwt(){
            return withNewJwtLike(getJwt() != null ? getJwt(): new JwtBuilder().build());
    }

    public OriginAuthenticationMethodFluent.JwtNested editOrNewJwtLike(Jwt item){
            return withNewJwtLike(getJwt() != null ? getJwt(): 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;
            OriginAuthenticationMethodFluentImpl that = (OriginAuthenticationMethodFluentImpl) o;
            if (jwt != null ? !jwt.equals(that.jwt) :that.jwt != null) return false;
            return true;
    }


    public class JwtNestedImpl extends JwtFluentImpl> implements OriginAuthenticationMethodFluent.JwtNested,io.fabric8.kubernetes.api.builder.Nested{

            private final JwtBuilder builder;
    
            JwtNestedImpl(Jwt item){
                    this.builder = new JwtBuilder(this, item);
            }
            JwtNestedImpl(){
                    this.builder = new JwtBuilder(this);
            }
    
    public N and(){
            return (N) OriginAuthenticationMethodFluentImpl.this.withJwt(builder.build());
    }
    public N endJwt(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy