VmRecommendation Class

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

public final class VmRecommendation

Represents a machine that is part of a machine group.

Constructor Summary

Constructor Description
VmRecommendation()

Creates an instance of VmRecommendation class.

Method Summary

Modifier and Type Method and Description
ConfigurationStatus configurationStatus()

Get the configurationStatus property: The configuration status of the machines group or machine or rule.

EnforcementSupport enforcementSupport()

Get the enforcementSupport property: The machine supportability of Enforce feature.

RecommendationAction recommendationAction()

Get the recommendationAction property: The recommendation action of the machine or rule.

String resourceId()

Get the resourceId property: The full resource id of the machine.

void validate()

Validates the instance.

VmRecommendation withConfigurationStatus(ConfigurationStatus configurationStatus)

Set the configurationStatus property: The configuration status of the machines group or machine or rule.

VmRecommendation withEnforcementSupport(EnforcementSupport enforcementSupport)

Set the enforcementSupport property: The machine supportability of Enforce feature.

VmRecommendation withRecommendationAction(RecommendationAction recommendationAction)

Set the recommendationAction property: The recommendation action of the machine or rule.

VmRecommendation withResourceId(String resourceId)

Set the resourceId property: The full resource id of the machine.

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:

the configurationStatus value.

enforcementSupport

public EnforcementSupport enforcementSupport()

Get the enforcementSupport property: The machine supportability of Enforce feature.

Returns:

the enforcementSupport value.

recommendationAction

public RecommendationAction recommendationAction()

Get the recommendationAction property: The recommendation action of the machine or rule.

Returns:

the recommendationAction value.

resourceId

public String resourceId()

Get the resourceId property: The full resource id of the machine.

Returns:

the resourceId value.

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:

configurationStatus - the configurationStatus value to set.

Returns:

the VmRecommendation object itself.

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.

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.

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.

Applies to