VmRecommendation Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. VmRecommendation
- com.
public final class VmRecommendation
Represents a machine that is part of a machine group.
Constructor Summary
Constructor | Description |
---|---|
VmRecommendation() |
Creates an instance of Vm |
Method Summary
Modifier and Type | Method and Description |
---|---|
Configuration |
configurationStatus()
Get the configuration |
Enforcement |
enforcementSupport()
Get the enforcement |
Recommendation |
recommendationAction()
Get the recommendation |
String |
resourceId()
Get the resource |
void |
validate()
Validates the instance. |
Vm |
withConfigurationStatus(ConfigurationStatus configurationStatus)
Set the configuration |
Vm |
withEnforcementSupport(EnforcementSupport enforcementSupport)
Set the enforcement |
Vm |
withRecommendationAction(RecommendationAction recommendationAction)
Set the recommendation |
Vm |
withResourceId(String resourceId)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
VmRecommendation
public VmRecommendation()
Creates an instance of VmRecommendation class.
Method Details
configurationStatus
public ConfigurationStatus configurationStatus()
Get the configurationStatus property: The configuration status of the machines group or machine or rule.
Returns:
enforcementSupport
public EnforcementSupport enforcementSupport()
Get the enforcementSupport property: The machine supportability of Enforce feature.
Returns:
recommendationAction
public RecommendationAction recommendationAction()
Get the recommendationAction property: The recommendation action of the machine or rule.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The full resource id of the machine.
Returns:
validate
public void validate()
Validates the instance.
withConfigurationStatus
public VmRecommendation withConfigurationStatus(ConfigurationStatus configurationStatus)
Set the configurationStatus property: The configuration status of the machines group or machine or rule.
Parameters:
Returns:
withEnforcementSupport
public VmRecommendation withEnforcementSupport(EnforcementSupport enforcementSupport)
Set the enforcementSupport property: The machine supportability of Enforce feature.
Parameters:
Returns:
withRecommendationAction
public VmRecommendation withRecommendationAction(RecommendationAction recommendationAction)
Set the recommendationAction property: The recommendation action of the machine or rule.
Parameters:
Returns:
withResourceId
public VmRecommendation withResourceId(String resourceId)
Set the resourceId property: The full resource id of the machine.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for