Klasse GHPublicKeyBuilder

java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.builders.GHPublicKeyBuilder
Alle implementierten Schnittstellen:
HttpRequestInterface, JSONHelper

public class GHPublicKeyBuilder extends GHBase
This class is a builder for creating a new GHPublicKey instance. It provides methods for setting the title and key of the public key, and for building the public key.
  • Konstruktordetails

    • GHPublicKeyBuilder

      public GHPublicKeyBuilder(Github github)
      Constructs a new GHPublicKeyBuilder instance with the provided GitHub instance.
      Parameter:
      github - the GitHub instance associated with this public key builder
    • GHPublicKeyBuilder

      public GHPublicKeyBuilder(String title, String key, Github github)
      Constructs a new GHPublicKeyBuilder instance with the provided title, key, and GitHub instance.
      Parameter:
      title - the title of the public key
      key - the key of the public key
      github - the GitHub instance associated with this public key builder
  • Methodendetails

    • setTitle

      public GHPublicKeyBuilder setTitle(String title)
      Sets the title of the public key.
      Parameter:
      title - the title of the public key
      Gibt zurück:
      this GHPublicKeyBuilder instance
    • setKey

      public GHPublicKeyBuilder setKey(String key)
      Sets the key of the public key.
      Parameter:
      key - the key of the public key
      Gibt zurück:
      this GHPublicKeyBuilder instance
    • getTitle

      public String getTitle()
      Returns the title of the public key.
      Gibt zurück:
      the title of the public key
    • getGithub

      public Github getGithub()
      Returns the GitHub instance associated with this public key builder.
      Gibt zurück:
      the GitHub instance
    • getKey

      public String getKey()
      Returns the key of the public key.
      Gibt zurück:
      the key of the public key
    • build

      public GHPublicKey build()
      Builds a new GHPublicKey instance with the set title and key.
      Gibt zurück:
      a new GHPublicKey instance