Class UserRecommendation

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

public final class UserRecommendation extends Object
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

      public String username()
      Get the username property: Represents a user that is recommended to be allowed for a certain rule.
      Returns:
      the username value.
    • withUsername

      public UserRecommendation withUsername(String username)
      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

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

      public UserRecommendation withRecommendationAction(RecommendationAction recommendationAction)
      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.