Class GenerateArmTemplateRequest
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.GenerateArmTemplateRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GenerateArmTemplateRequest>
public final class GenerateArmTemplateRequest
extends Object
implements com.azure.json.JsonSerializable<GenerateArmTemplateRequest>
Parameters for generating an ARM template for deploying artifacts.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GenerateArmTemplateRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the fileUploadOptions property: Options for uploading the files for the artifact.static GenerateArmTemplateRequest
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GenerateArmTemplateRequest from the JsonReader.location()
Get the location property: The location of the virtual machine.Get the parameters property: The parameters of the ARM template.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the virtualMachineName property: The resource name of the virtual machine.withFileUploadOptions
(FileUploadOptions fileUploadOptions) Set the fileUploadOptions property: Options for uploading the files for the artifact.withLocation
(String location) Set the location property: The location of the virtual machine.withParameters
(List<ParameterInfo> parameters) Set the parameters property: The parameters of the ARM template.withVirtualMachineName
(String virtualMachineName) Set the virtualMachineName property: The resource name of the virtual machine.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
-
GenerateArmTemplateRequest
public GenerateArmTemplateRequest()Creates an instance of GenerateArmTemplateRequest class.
-
-
Method Details
-
virtualMachineName
Get the virtualMachineName property: The resource name of the virtual machine.- Returns:
- the virtualMachineName value.
-
withVirtualMachineName
Set the virtualMachineName property: The resource name of the virtual machine.- Parameters:
virtualMachineName
- the virtualMachineName value to set.- Returns:
- the GenerateArmTemplateRequest object itself.
-
parameters
Get the parameters property: The parameters of the ARM template.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: The parameters of the ARM template.- Parameters:
parameters
- the parameters value to set.- Returns:
- the GenerateArmTemplateRequest object itself.
-
location
Get the location property: The location of the virtual machine.- Returns:
- the location value.
-
withLocation
Set the location property: The location of the virtual machine.- Parameters:
location
- the location value to set.- Returns:
- the GenerateArmTemplateRequest object itself.
-
fileUploadOptions
Get the fileUploadOptions property: Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value.- Returns:
- the fileUploadOptions value.
-
withFileUploadOptions
Set the fileUploadOptions property: Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value.- Parameters:
fileUploadOptions
- the fileUploadOptions value to set.- Returns:
- the GenerateArmTemplateRequest 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<GenerateArmTemplateRequest>
- Throws:
IOException
-
fromJson
public static GenerateArmTemplateRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GenerateArmTemplateRequest from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of GenerateArmTemplateRequest 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 GenerateArmTemplateRequest.
-