Package de.coho04.githubapi.builders
Klasse GHPublicKeyBuilder
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.builders.GHPublicKeyBuilder
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
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.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHPublicKeyBuilder(Github github) Constructs a new GHPublicKeyBuilder instance with the provided GitHub instance.GHPublicKeyBuilder(String title, String key, Github github) Constructs a new GHPublicKeyBuilder instance with the provided title, key, and GitHub instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuild()Builds a new GHPublicKey instance with the set title and key.Returns the GitHub instance associated with this public key builder.getKey()Returns the key of the public key.getTitle()Returns the title of the public key.Sets the key of the public key.Sets the title of the public key.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObjectVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequestVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Konstruktordetails
-
GHPublicKeyBuilder
Constructs a new GHPublicKeyBuilder instance with the provided GitHub instance.- Parameter:
github- the GitHub instance associated with this public key builder
-
GHPublicKeyBuilder
Constructs a new GHPublicKeyBuilder instance with the provided title, key, and GitHub instance.- Parameter:
title- the title of the public keykey- the key of the public keygithub- the GitHub instance associated with this public key builder
-
-
Methodendetails
-
setTitle
Sets the title of the public key.- Parameter:
title- the title of the public key- Gibt zurück:
- this GHPublicKeyBuilder instance
-
setKey
Sets the key of the public key.- Parameter:
key- the key of the public key- Gibt zurück:
- this GHPublicKeyBuilder instance
-
getTitle
Returns the title of the public key.- Gibt zurück:
- the title of the public key
-
getGithub
Returns the GitHub instance associated with this public key builder.- Gibt zurück:
- the GitHub instance
-
getKey
Returns the key of the public key.- Gibt zurück:
- the key of the public key
-
build
Builds a new GHPublicKey instance with the set title and key.- Gibt zurück:
- a new GHPublicKey instance
-