Class TokenRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • audience

        @Stability(Stable)
        public TokenRequest.Builder audience​(String audience)
        Sets the value of TokenRequest.getAudience()
        Parameters:
        audience - Audience is the intended audience of the token in "TokenRequestSpec". This parameter is required. It will default to the audiences of kube apiserver.
        Returns:
        this
      • expirationSeconds

        @Stability(Stable)
        public TokenRequest.Builder expirationSeconds​(Number expirationSeconds)
        Parameters:
        expirationSeconds - ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
        Returns:
        this
      • build

        @Stability(Stable)
        public TokenRequest build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<TokenRequest>
        Returns:
        a new instance of TokenRequest
        Throws:
        NullPointerException - if any required attribute was not provided