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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the component property: Name of the component the config files should apply to.files()Get the files property: List of Config Files.static ClusterServiceConfigfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterServiceConfig from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withComponent(String component) Set the component property: Name of the component the config files should apply to.withFiles(List<ClusterConfigFile> files) Set the files property: List of Config Files.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
-
ClusterServiceConfig
public ClusterServiceConfig()Creates an instance of ClusterServiceConfig class.
-
-
Method Details
-
component
Get the component property: Name of the component the config files should apply to.- Returns:
- the component value.
-
withComponent
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
Get the files property: List of Config Files.- Returns:
- the files value.
-
withFiles
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
- Specified by:
toJsonin interfacecom.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.
-