RoleManagementPolicyAuthenticationContextRule Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. models. RoleManagementPolicyRule - com.
azure. resourcemanager. authorization. models. RoleManagementPolicyAuthenticationContextRule
- com.
- com.
public final class RoleManagementPolicyAuthenticationContextRule
extends RoleManagementPolicyRule
The role management policy authentication context rule.
Constructor Summary
| Constructor | Description |
|---|---|
| RoleManagementPolicyAuthenticationContextRule() |
Creates an instance of Role |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
claimValue()
Get the claim |
|
static
Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role |
| Boolean |
isEnabled()
Get the is |
|
Role |
ruleType()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Role |
withClaimValue(String claimValue)
Set the claim |
|
Role |
withId(String id)
Set the id property: The id of the rule. |
|
Role |
withIsEnabled(Boolean isEnabled)
Set the is |
|
Role |
withTarget(RoleManagementPolicyRuleTarget target)
Set the target property: The target of the current rule. |
Methods inherited from RoleManagementPolicyRule
Methods inherited from java.lang.Object
Constructor Details
RoleManagementPolicyAuthenticationContextRule
public RoleManagementPolicyAuthenticationContextRule()
Creates an instance of RoleManagementPolicyAuthenticationContextRule class.
Method Details
claimValue
public String claimValue()
Get the claimValue property: The claim value.
Returns:
fromJson
public static RoleManagementPolicyAuthenticationContextRule fromJson(JsonReader jsonReader)
Reads an instance of RoleManagementPolicyAuthenticationContextRule from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: The value indicating if rule is enabled.
Returns:
ruleType
public RoleManagementPolicyRuleType ruleType()
Get the ruleType property: The type of rule.
Overrides:
RoleManagementPolicyAuthenticationContextRule.ruleType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RoleManagementPolicyAuthenticationContextRule.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
RoleManagementPolicyAuthenticationContextRule.validate()withClaimValue
public RoleManagementPolicyAuthenticationContextRule withClaimValue(String claimValue)
Set the claimValue property: The claim value.
Parameters:
Returns:
withId
public RoleManagementPolicyAuthenticationContextRule withId(String id)
Set the id property: The id of the rule.
Overrides:
RoleManagementPolicyAuthenticationContextRule.withId(String id)Parameters:
withIsEnabled
public RoleManagementPolicyAuthenticationContextRule withIsEnabled(Boolean isEnabled)
Set the isEnabled property: The value indicating if rule is enabled.
Parameters:
Returns:
withTarget
public RoleManagementPolicyAuthenticationContextRule withTarget(RoleManagementPolicyRuleTarget target)
Set the target property: The target of the current rule.
Overrides:
RoleManagementPolicyAuthenticationContextRule.withTarget(RoleManagementPolicyRuleTarget target)Parameters: