Class RoleManagementPolicyAuthenticationContextRule
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
com.azure.resourcemanager.authorization.models.RoleManagementPolicyAuthenticationContextRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleManagementPolicyRule>
The role management policy authentication context rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleManagementPolicyAuthenticationContextRule class. -
Method Summary
Modifier and TypeMethodDescriptionGet the claimValue property: The claim value.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleManagementPolicyAuthenticationContextRule from the JsonReader.Get the isEnabled property: The value indicating if rule is enabled.ruleType()Get the ruleType property: The type of rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClaimValue(String claimValue) Set the claimValue property: The claim value.Set the id property: The id of the rule.withIsEnabled(Boolean isEnabled) Set the isEnabled property: The value indicating if rule is enabled.Set the target property: The target of the current rule.Methods inherited from class com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
id, targetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RoleManagementPolicyAuthenticationContextRule
public RoleManagementPolicyAuthenticationContextRule()Creates an instance of RoleManagementPolicyAuthenticationContextRule class.
-
-
Method Details
-
ruleType
Get the ruleType property: The type of rule.- Overrides:
ruleTypein classRoleManagementPolicyRule- Returns:
- the ruleType value.
-
isEnabled
Get the isEnabled property: The value indicating if rule is enabled.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: The value indicating if rule is enabled.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the RoleManagementPolicyAuthenticationContextRule object itself.
-
claimValue
Get the claimValue property: The claim value.- Returns:
- the claimValue value.
-
withClaimValue
Set the claimValue property: The claim value.- Parameters:
claimValue- the claimValue value to set.- Returns:
- the RoleManagementPolicyAuthenticationContextRule object itself.
-
withId
Set the id property: The id of the rule.- Overrides:
withIdin classRoleManagementPolicyRule- Parameters:
id- the id value to set.- Returns:
- the RoleManagementPolicyRule object itself.
-
withTarget
public RoleManagementPolicyAuthenticationContextRule withTarget(RoleManagementPolicyRuleTarget target) Set the target property: The target of the current rule.- Overrides:
withTargetin classRoleManagementPolicyRule- Parameters:
target- the target value to set.- Returns:
- the RoleManagementPolicyRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRoleManagementPolicyRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RoleManagementPolicyRule>- Overrides:
toJsonin classRoleManagementPolicyRule- Throws:
IOException
-
fromJson
public static RoleManagementPolicyAuthenticationContextRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RoleManagementPolicyAuthenticationContextRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RoleManagementPolicyAuthenticationContextRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the RoleManagementPolicyAuthenticationContextRule.
-