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

io.k8s.api.storage.v1.TokenRequest Maven / Gradle / Ivy

package io.k8s.api.storage.v1;

import java.lang.Long;
import java.lang.String;

/**
 * TokenRequest contains parameters of a service account token.
 */
public class TokenRequest {
  public String audience;

  public Long expirationSeconds;

  /**
   * audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
   */
  public TokenRequest audience(String audience) {
    this.audience = audience;
    return this;
  }

  /**
   * expirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
   */
  public TokenRequest expirationSeconds(Long expirationSeconds) {
    this.expirationSeconds = expirationSeconds;
    return this;
  }

  public static TokenRequest tokenRequest() {
    return new TokenRequest();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy