Class ClusterConfigFile

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterConfigFile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterConfigFile>

public final class ClusterConfigFile extends Object implements com.azure.json.JsonSerializable<ClusterConfigFile>
Cluster configuration files.
  • Constructor Details

    • ClusterConfigFile

      public ClusterConfigFile()
      Creates an instance of ClusterConfigFile class.
  • Method Details

    • fileName

      public String fileName()
      Get the fileName property: Configuration file name.
      Returns:
      the fileName value.
    • withFileName

      public ClusterConfigFile withFileName(String fileName)
      Set the fileName property: Configuration file name.
      Parameters:
      fileName - the fileName value to set.
      Returns:
      the ClusterConfigFile object itself.
    • content

      public String content()
      Get the content property: Free form content of the entire configuration file.
      Returns:
      the content value.
    • withContent

      public ClusterConfigFile withContent(String content)
      Set the content property: Free form content of the entire configuration file.
      Parameters:
      content - the content value to set.
      Returns:
      the ClusterConfigFile object itself.
    • encoding

      public ContentEncoding encoding()
      Get the encoding property: This property indicates if the content is encoded and is case-insensitive. Please set the value to base64 if the content is base64 encoded. Set it to none or skip it if the content is plain text.
      Returns:
      the encoding value.
    • withEncoding

      public ClusterConfigFile withEncoding(ContentEncoding encoding)
      Set the encoding property: This property indicates if the content is encoded and is case-insensitive. Please set the value to base64 if the content is base64 encoded. Set it to none or skip it if the content is plain text.
      Parameters:
      encoding - the encoding value to set.
      Returns:
      the ClusterConfigFile object itself.
    • path

      public String path()
      Get the path property: Path of the config file if content is specified.
      Returns:
      the path value.
    • withPath

      public ClusterConfigFile withPath(String path)
      Set the path property: Path of the config file if content is specified.
      Parameters:
      path - the path value to set.
      Returns:
      the ClusterConfigFile object itself.
    • values

      public Map<String,String> values()
      Get the values property: List of key value pairs where key represents a valid service configuration name and value represents the value of the config.
      Returns:
      the values value.
    • withValues

      public ClusterConfigFile withValues(Map<String,String> values)
      Set the values property: List of key value pairs where key represents a valid service configuration name and value represents the value of the config.
      Parameters:
      values - the values value to set.
      Returns:
      the ClusterConfigFile 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<ClusterConfigFile>
      Throws:
      IOException
    • fromJson

      public static ClusterConfigFile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterConfigFile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterConfigFile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ClusterConfigFile.