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

io.kubernetes.client.models.V1ServiceAccountTokenProjectionFluentImpl Maven / Gradle / Ivy

package io.kubernetes.client.models;

import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

public class V1ServiceAccountTokenProjectionFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1ServiceAccountTokenProjectionFluent{

    private String audience;
    private Long expirationSeconds;
    private String path;

    public V1ServiceAccountTokenProjectionFluentImpl(){
    }
    public V1ServiceAccountTokenProjectionFluentImpl(V1ServiceAccountTokenProjection instance){
            this.withAudience(instance.getAudience());

            this.withExpirationSeconds(instance.getExpirationSeconds());

            this.withPath(instance.getPath());

    }

    public String getAudience(){
            return this.audience;
    }

    public A withAudience(String audience){
            this.audience=audience; return (A) this;
    }

    public Boolean hasAudience(){
            return this.audience != null;
    }

    public Long getExpirationSeconds(){
            return this.expirationSeconds;
    }

    public A withExpirationSeconds(Long expirationSeconds){
            this.expirationSeconds=expirationSeconds; return (A) this;
    }

    public Boolean hasExpirationSeconds(){
            return this.expirationSeconds != null;
    }

    public A withNewExpirationSeconds(String arg1){
            return (A)withExpirationSeconds(new Long(arg1));
    }

    public A withNewExpirationSeconds(long arg1){
            return (A)withExpirationSeconds(new Long(arg1));
    }

    public String getPath(){
            return this.path;
    }

    public A withPath(String path){
            this.path=path; return (A) this;
    }

    public Boolean hasPath(){
            return this.path != null;
    }

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




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy