java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.devtestlabs.fluent.models.FormulaInner

public final class FormulaInner extends com.azure.core.management.Resource
A formula for creating a VM, specifying an image base and other parameters.
  • Constructor Details

    • FormulaInner

      public FormulaInner()
      Creates an instance of FormulaInner class.
  • Method Details

    • withLocation

      public FormulaInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public FormulaInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • description

      public String description()
      Get the description property: The description of the formula.
      Returns:
      the description value.
    • withDescription

      public FormulaInner withDescription(String description)
      Set the description property: The description of the formula.
      Parameters:
      description - the description value to set.
      Returns:
      the FormulaInner object itself.
    • author

      public String author()
      Get the author property: The author of the formula.
      Returns:
      the author value.
    • osType

      public String osType()
      Get the osType property: The OS type of the formula.
      Returns:
      the osType value.
    • withOsType

      public FormulaInner withOsType(String osType)
      Set the osType property: The OS type of the formula.
      Parameters:
      osType - the osType value to set.
      Returns:
      the FormulaInner object itself.
    • creationDate

      public OffsetDateTime creationDate()
      Get the creationDate property: The creation date of the formula.
      Returns:
      the creationDate value.
    • formulaContent

      public LabVirtualMachineCreationParameter formulaContent()
      Get the formulaContent property: The content of the formula.
      Returns:
      the formulaContent value.
    • withFormulaContent

      public FormulaInner withFormulaContent(LabVirtualMachineCreationParameter formulaContent)
      Set the formulaContent property: The content of the formula.
      Parameters:
      formulaContent - the formulaContent value to set.
      Returns:
      the FormulaInner object itself.
    • vm

      Get the vm property: Information about a VM from which a formula is to be created.
      Returns:
      the vm value.
    • withVm

      Set the vm property: Information about a VM from which a formula is to be created.
      Parameters:
      vm - the vm value to set.
      Returns:
      the FormulaInner object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The provisioning status of the resource.
      Returns:
      the provisioningState value.
    • uniqueIdentifier

      public String uniqueIdentifier()
      Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
      Returns:
      the uniqueIdentifier value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.