Class TrinoUserPlugin
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.TrinoUserPlugin
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TrinoUserPlugin>
public final class TrinoUserPlugin
extends Object
implements com.azure.json.JsonSerializable<TrinoUserPlugin>
Trino user plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Denotes whether the plugin is active or not.static TrinoUserPluginfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrinoUserPlugin from the JsonReader.name()Get the name property: This field maps to the sub-directory in trino plugins location, that will contain all the plugins under path.path()Get the path property: Fully qualified path to the folder containing the plugins.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(Boolean enabled) Set the enabled property: Denotes whether the plugin is active or not.Set the name property: This field maps to the sub-directory in trino plugins location, that will contain all the plugins under path.Set the path property: Fully qualified path to the folder containing the plugins.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TrinoUserPlugin
public TrinoUserPlugin()Creates an instance of TrinoUserPlugin class.
-
-
Method Details
-
enabled
Get the enabled property: Denotes whether the plugin is active or not.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Denotes whether the plugin is active or not.- Parameters:
enabled- the enabled value to set.- Returns:
- the TrinoUserPlugin object itself.
-
name
Get the name property: This field maps to the sub-directory in trino plugins location, that will contain all the plugins under path.- Returns:
- the name value.
-
withName
Set the name property: This field maps to the sub-directory in trino plugins location, that will contain all the plugins under path.- Parameters:
name- the name value to set.- Returns:
- the TrinoUserPlugin object itself.
-
path
Get the path property: Fully qualified path to the folder containing the plugins.- Returns:
- the path value.
-
withPath
Set the path property: Fully qualified path to the folder containing the plugins.- Parameters:
path- the path value to set.- Returns:
- the TrinoUserPlugin object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TrinoUserPlugin>- Throws:
IOException
-
fromJson
Reads an instance of TrinoUserPlugin from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TrinoUserPlugin if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TrinoUserPlugin.
-