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
    Constructor
    Description
    Creates an instance of TrinoUserPlugin class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the enabled property: Denotes whether the plugin is active or not.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of TrinoUserPlugin from the JsonReader.
    Get the name property: This field maps to the sub-directory in trino plugins location, that will contain all the plugins under path.
    Get the path property: Fully qualified path to the folder containing the plugins.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    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, wait

    Methods 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

      public Boolean enabled()
      Get the enabled property: Denotes whether the plugin is active or not.
      Returns:
      the enabled value.
    • withEnabled

      public TrinoUserPlugin withEnabled(Boolean enabled)
      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

      public String 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

      public TrinoUserPlugin withName(String name)
      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

      public String path()
      Get the path property: Fully qualified path to the folder containing the plugins.
      Returns:
      the path value.
    • withPath

      public TrinoUserPlugin withPath(String path)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TrinoUserPlugin>
      Throws:
      IOException
    • fromJson

      public static TrinoUserPlugin fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.