- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.PluginMetadata.Builder
-
- Enclosing class:
- PluginMetadata
public static class PluginMetadata.Builder extends Object
Builder to build aPluginMetadataobject.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginMetadatabuild()Builds thePluginMetadataobject.PluginMetadata.BuildersetDescription(String description)Sets the description of the plugin.PluginMetadata.BuildersetDevelopers(List<String> developers)Sets the developers of the plugin.PluginMetadata.BuildersetUrl(String url)Sets the url of the plugin.PluginMetadata.BuildersetVersion(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 thePluginMetadataobject.- Returns:
- the built
PluginMetadataobject
-
-