UserRecommendation Class

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

public final class UserRecommendation

Represents a user that is recommended to be allowed for a certain rule.

Constructor Summary

Constructor Description
UserRecommendation()

Creates an instance of UserRecommendation class.

Method Summary

Modifier and Type Method and Description
RecommendationAction recommendationAction()

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

String username()

Get the username property: Represents a user that is recommended to be allowed for a certain rule.

void validate()

Validates the instance.

UserRecommendation withRecommendationAction(RecommendationAction recommendationAction)

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

UserRecommendation withUsername(String username)

Set the username property: Represents a user that is recommended to be allowed for a certain rule.

Methods inherited from java.lang.Object

Constructor Details

UserRecommendation

public UserRecommendation()

Creates an instance of UserRecommendation class.

Method Details

recommendationAction

public RecommendationAction recommendationAction()

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

Returns:

the recommendationAction value.

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.

validate

public void validate()

Validates the instance.

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.

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.

Applies to