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

io.kubernetes.client.openapi.models.V1beta1TokenRequestFluentImpl Maven / Gradle / Ivy

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

import java.lang.StringBuffer;
import java.lang.StringBuilder;
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 V1beta1TokenRequestFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1beta1TokenRequestFluent {

    private String audience;
    private Long expirationSeconds;

    public V1beta1TokenRequestFluentImpl() { 
    }


    public V1beta1TokenRequestFluentImpl(V1beta1TokenRequest instance) { 
        this.withAudience(instance.getAudience());

        this.withExpirationSeconds(instance.getExpirationSeconds());

    }


    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 A withNewAudience(String arg1) {
        return (A)withAudience(new String(arg1));
    }

    public A withNewAudience(StringBuilder arg1) {
        return (A)withAudience(new String(arg1));
    }

    public A withNewAudience(StringBuffer arg1) {
        return (A)withAudience(new String(arg1));
    }

    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 boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        V1beta1TokenRequestFluentImpl that = (V1beta1TokenRequestFluentImpl) 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;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(audience,  expirationSeconds,  super.hashCode());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy