GenerateArmTemplateRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.GenerateArmTemplateRequest

Implements

public final class GenerateArmTemplateRequest
implements JsonSerializable<GenerateArmTemplateRequest>

Parameters for generating an ARM template for deploying artifacts.

Constructor Summary

Constructor Description
GenerateArmTemplateRequest()

Creates an instance of GenerateArmTemplateRequest class.

Method Summary

Modifier and Type Method and Description
FileUploadOptions fileUploadOptions()

Get the fileUploadOptions property: Options for uploading the files for the artifact.

static GenerateArmTemplateRequest fromJson(JsonReader jsonReader)

Reads an instance of GenerateArmTemplateRequest from the JsonReader.

String location()

Get the location property: The location of the virtual machine.

List<ParameterInfo> parameters()

Get the parameters property: The parameters of the ARM template.

JsonWriter toJson(JsonWriter jsonWriter)
String virtualMachineName()

Get the virtualMachineName property: The resource name of the virtual machine.

GenerateArmTemplateRequest withFileUploadOptions(FileUploadOptions fileUploadOptions)

Set the fileUploadOptions property: Options for uploading the files for the artifact.

GenerateArmTemplateRequest withLocation(String location)

Set the location property: The location of the virtual machine.

GenerateArmTemplateRequest withParameters(List<ParameterInfo> parameters)

Set the parameters property: The parameters of the ARM template.

GenerateArmTemplateRequest withVirtualMachineName(String virtualMachineName)

Set the virtualMachineName property: The resource name of the virtual machine.

Methods inherited from java.lang.Object

Constructor Details

GenerateArmTemplateRequest

public GenerateArmTemplateRequest()

Creates an instance of GenerateArmTemplateRequest class.

Method Details

fileUploadOptions

public FileUploadOptions fileUploadOptions()

Get the fileUploadOptions property: Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value.

Returns:

the fileUploadOptions value.

fromJson

public static GenerateArmTemplateRequest fromJson(JsonReader jsonReader)

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.

location

public String location()

Get the location property: The location of the virtual machine.

Returns:

the location value.

parameters

public List<ParameterInfo> parameters()

Get the parameters property: The parameters of the ARM template.

Returns:

the parameters value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

virtualMachineName

public String virtualMachineName()

Get the virtualMachineName property: The resource name of the virtual machine.

Returns:

the virtualMachineName value.

withFileUploadOptions

public GenerateArmTemplateRequest withFileUploadOptions(FileUploadOptions fileUploadOptions)

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.

withLocation

public GenerateArmTemplateRequest withLocation(String location)

Set the location property: The location of the virtual machine.

Parameters:

location - the location value to set.

Returns:

the GenerateArmTemplateRequest object itself.

withParameters

public GenerateArmTemplateRequest withParameters(List<ParameterInfo> parameters)

Set the parameters property: The parameters of the ARM template.

Parameters:

parameters - the parameters value to set.

Returns:

the GenerateArmTemplateRequest object itself.

withVirtualMachineName

public GenerateArmTemplateRequest withVirtualMachineName(String virtualMachineName)

Set the virtualMachineName property: The resource name of the virtual machine.

Parameters:

virtualMachineName - the virtualMachineName value to set.

Returns:

the GenerateArmTemplateRequest object itself.

Applies to