java.lang.Object
co.elastic.clients.elasticsearch.security.create_service_token.Token.Builder
All Implemented Interfaces:
ObjectBuilder<Token>
Enclosing class:
Token

public static class Token.Builder
extends java.lang.Object
implements ObjectBuilder<Token>
Builder for Token.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    Token build()
    Builds a Token.
    Token.Builder name​(java.lang.String value)
    Required - API name: name
    Token.Builder value​(java.lang.String value)
    Required - API name: value

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      public Token.Builder name​(java.lang.String value)
      Required - API name: name
    • value

      public Token.Builder value​(java.lang.String value)
      Required - API name: value
    • build

      public Token build()
      Builds a Token.
      Specified by:
      build in interface ObjectBuilder<Token>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.