- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.PluginMetadata.Builder
-
- Enclosing class:
- PluginMetadata
public static class PluginMetadata.Builder extends Object
Builder to build aPluginMetadata
object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginMetadata
build()
Builds thePluginMetadata
object.PluginMetadata.Builder
setDescription(String description)
Sets the description of the plugin.PluginMetadata.Builder
setDevelopers(List<String> developers)
Sets the developers of the plugin.PluginMetadata.Builder
setUrl(String url)
Sets the url of the plugin.PluginMetadata.Builder
setVersion(String version)
Sets the version of the plugin.
-
-
-
Method Detail
-
setDescription
public PluginMetadata.Builder setDescription(@Nullable String description)
Sets the description of the plugin.- Parameters:
description
- the description, may benull
- Returns:
- this builder
-
setVersion
public PluginMetadata.Builder setVersion(@Nullable String version)
Sets the version of the plugin.- Parameters:
version
- the version, may benull
- Returns:
- this builder
-
setDevelopers
public PluginMetadata.Builder setDevelopers(@Nullable List<String> developers)
Sets the developers of the plugin.- Parameters:
developers
- the developers, may benull
- Returns:
- this builder
-
setUrl
public PluginMetadata.Builder setUrl(@Nullable String url)
Sets the url of the plugin.- Parameters:
url
- the url, may benull
- Returns:
- this builder
-
build
public PluginMetadata build()
Builds thePluginMetadata
object.- Returns:
- the built
PluginMetadata
object
-
-