Class VmRecommendation
java.lang.Object
com.azure.resourcemanager.security.models.VmRecommendation
Represents a machine that is part of a machine group.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the configurationStatus property: The configuration status of the machines group or machine or rule.Get the enforcementSupport property: The machine supportability of Enforce feature.Get the recommendationAction property: The recommendation action of the machine or rule.Get the resourceId property: The full resource id of the machine.void
validate()
Validates the instance.withConfigurationStatus
(ConfigurationStatus configurationStatus) Set the configurationStatus property: The configuration status of the machines group or machine or rule.withEnforcementSupport
(EnforcementSupport enforcementSupport) Set the enforcementSupport property: The machine supportability of Enforce feature.withRecommendationAction
(RecommendationAction recommendationAction) Set the recommendationAction property: The recommendation action of the machine or rule.withResourceId
(String resourceId) Set the resourceId property: The full resource id of the machine.
-
Constructor Details
-
VmRecommendation
public VmRecommendation()
-
-
Method Details
-
configurationStatus
Get the configurationStatus property: The configuration status of the machines group or machine or rule.- Returns:
- the configurationStatus value.
-
withConfigurationStatus
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
Get the recommendationAction property: The recommendation action of the machine or rule.- Returns:
- the recommendationAction value.
-
withRecommendationAction
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
Get the resourceId property: The full resource id of the machine.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The full resource id of the machine.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the VmRecommendation object itself.
-
enforcementSupport
Get the enforcementSupport property: The machine supportability of Enforce feature.- Returns:
- the enforcementSupport value.
-
withEnforcementSupport
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.
-