Class VmRecommendation

java.lang.Object
com.azure.resourcemanager.security.models.VmRecommendation

public final class VmRecommendation extends Object
Represents a machine that is part of a machine group.
  • Constructor Details

    • VmRecommendation

      public VmRecommendation()
  • Method Details

    • configurationStatus

      public ConfigurationStatus configurationStatus()
      Get the configurationStatus property: The configuration status of the machines group or machine or rule.
      Returns:
      the configurationStatus value.
    • withConfigurationStatus

      public VmRecommendation withConfigurationStatus(ConfigurationStatus configurationStatus)
      Set the configurationStatus property: The configuration status of the machines group or machine or rule.
      Parameters:
      configurationStatus - the configurationStatus value to set.
      Returns:
      the VmRecommendation object itself.
    • recommendationAction

      public RecommendationAction recommendationAction()
      Get the recommendationAction property: The recommendation action of the machine or rule.
      Returns:
      the recommendationAction value.
    • withRecommendationAction

      public VmRecommendation withRecommendationAction(RecommendationAction recommendationAction)
      Set the recommendationAction property: The recommendation action of the machine or rule.
      Parameters:
      recommendationAction - the recommendationAction value to set.
      Returns:
      the VmRecommendation object itself.
    • resourceId

      public String resourceId()
      Get the resourceId property: The full resource id of the machine.
      Returns:
      the resourceId value.
    • withResourceId

      public VmRecommendation withResourceId(String resourceId)
      Set the resourceId property: The full resource id of the machine.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the VmRecommendation object itself.
    • enforcementSupport

      public EnforcementSupport enforcementSupport()
      Get the enforcementSupport property: The machine supportability of Enforce feature.
      Returns:
      the enforcementSupport value.
    • withEnforcementSupport

      public VmRecommendation withEnforcementSupport(EnforcementSupport enforcementSupport)
      Set the enforcementSupport property: The machine supportability of Enforce feature.
      Parameters:
      enforcementSupport - the enforcementSupport value to set.
      Returns:
      the VmRecommendation object itself.
    • validate

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