Class ClusterServiceConfig

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

public final class ClusterServiceConfig extends Object implements com.azure.json.JsonSerializable<ClusterServiceConfig>
Cluster configs per component.
  • Constructor Details

    • ClusterServiceConfig

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

    • component

      public String component()
      Get the component property: Name of the component the config files should apply to.
      Returns:
      the component value.
    • withComponent

      public ClusterServiceConfig withComponent(String component)
      Set the component property: Name of the component the config files should apply to.
      Parameters:
      component - the component value to set.
      Returns:
      the ClusterServiceConfig object itself.
    • files

      public List<ClusterConfigFile> files()
      Get the files property: List of Config Files.
      Returns:
      the files value.
    • withFiles

      public ClusterServiceConfig withFiles(List<ClusterConfigFile> files)
      Set the files property: List of Config Files.
      Parameters:
      files - the files value to set.
      Returns:
      the ClusterServiceConfig 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<ClusterServiceConfig>
      Throws:
      IOException
    • fromJson

      public static ClusterServiceConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterServiceConfig from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterServiceConfig 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 ClusterServiceConfig.