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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Get the content property: Free form content of the entire configuration file.encoding()Get the encoding property: This property indicates if the content is encoded and is case-insensitive.fileName()Get the fileName property: Configuration file name.static ClusterConfigFilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterConfigFile from the JsonReader.path()Get the path property: Path of the config file if content is specified.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.withContent(String content) Set the content property: Free form content of the entire configuration file.withEncoding(ContentEncoding encoding) Set the encoding property: This property indicates if the content is encoded and is case-insensitive.withFileName(String fileName) Set the fileName property: Configuration file name.Set the path property: Path of the config file if content is specified.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.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
-
ClusterConfigFile
public ClusterConfigFile()Creates an instance of ClusterConfigFile class.
-
-
Method Details
-
fileName
Get the fileName property: Configuration file name.- Returns:
- the fileName value.
-
withFileName
Set the fileName property: Configuration file name.- Parameters:
fileName- the fileName value to set.- Returns:
- the ClusterConfigFile object itself.
-
content
Get the content property: Free form content of the entire configuration file.- Returns:
- the content value.
-
withContent
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
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
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
Get the path property: Path of the config file if content is specified.- Returns:
- the path value.
-
withPath
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
-
withValues
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterConfigFile>- Throws:
IOException
-
fromJson
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.
-