Class ParametersValueFileInfo
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ParametersValueFileInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ParametersValueFileInfo>
public final class ParametersValueFileInfo
extends Object
implements com.azure.json.JsonSerializable<ParametersValueFileInfo>
A file containing a set of parameter values for an ARM template.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ParametersValueFileInfo class. -
Method Summary
Modifier and TypeMethodDescriptionfileName()
Get the fileName property: File name.static ParametersValueFileInfo
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ParametersValueFileInfo from the JsonReader.Get the parametersValueInfo property: Contents of the file.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withFileName
(String fileName) Set the fileName property: File name.withParametersValueInfo
(Object parametersValueInfo) Set the parametersValueInfo property: Contents of the file.Methods inherited from class java.lang.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
-
ParametersValueFileInfo
public ParametersValueFileInfo()Creates an instance of ParametersValueFileInfo class.
-
-
Method Details
-
fileName
Get the fileName property: File name.- Returns:
- the fileName value.
-
withFileName
Set the fileName property: File name.- Parameters:
fileName
- the fileName value to set.- Returns:
- the ParametersValueFileInfo object itself.
-
parametersValueInfo
Get the parametersValueInfo property: Contents of the file.- Returns:
- the parametersValueInfo value.
-
withParametersValueInfo
Set the parametersValueInfo property: Contents of the file.- Parameters:
parametersValueInfo
- the parametersValueInfo value to set.- Returns:
- the ParametersValueFileInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ParametersValueFileInfo>
- Throws:
IOException
-
fromJson
public static ParametersValueFileInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ParametersValueFileInfo from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ParametersValueFileInfo 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 ParametersValueFileInfo.
-