Class UserRecommendation
java.lang.Object
com.azure.resourcemanager.security.models.UserRecommendation
Represents a user that is recommended to be allowed for a certain rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the recommendationAction property: The recommendation action of the machine or rule.username()
Get the username property: Represents a user that is recommended to be allowed for a certain rule.void
validate()
Validates the instance.withRecommendationAction
(RecommendationAction recommendationAction) Set the recommendationAction property: The recommendation action of the machine or rule.withUsername
(String username) Set the username property: Represents a user that is recommended to be allowed for a certain rule.
-
Constructor Details
-
UserRecommendation
public UserRecommendation()Creates an instance of UserRecommendation class.
-
-
Method Details
-
username
Get the username property: Represents a user that is recommended to be allowed for a certain rule.- Returns:
- the username value.
-
withUsername
Set the username property: Represents a user that is recommended to be allowed for a certain rule.- Parameters:
username
- the username value to set.- Returns:
- the UserRecommendation 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 UserRecommendation object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-