RoleManagementPolicyEnablementRule Class

public final class RoleManagementPolicyEnablementRule
extends RoleManagementPolicyRule

The role management policy enablement rule.

Constructor Summary

Constructor Description
RoleManagementPolicyEnablementRule()

Creates an instance of RoleManagementPolicyEnablementRule class.

Method Summary

Modifier and Type Method and Description
List<EnablementRules> enabledRules()

Get the enabledRules property: The list of enabled rules.

static RoleManagementPolicyEnablementRule fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyEnablementRule from the JsonReader.

RoleManagementPolicyRuleType ruleType()

Get the ruleType property: The type of rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleManagementPolicyEnablementRule withEnabledRules(List<EnablementRules> enabledRules)

Set the enabledRules property: The list of enabled rules.

RoleManagementPolicyEnablementRule withId(String id)

Set the id property: The id of the rule.

RoleManagementPolicyEnablementRule 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

RoleManagementPolicyEnablementRule

public RoleManagementPolicyEnablementRule()

Creates an instance of RoleManagementPolicyEnablementRule class.

Method Details

enabledRules

public List<EnablementRules> enabledRules()

Get the enabledRules property: The list of enabled rules.

Returns:

the enabledRules value.

fromJson

public static RoleManagementPolicyEnablementRule fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyEnablementRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoleManagementPolicyEnablementRule 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 RoleManagementPolicyEnablementRule.

ruleType

public RoleManagementPolicyRuleType ruleType()

Get the ruleType property: The type of rule.

Overrides:

RoleManagementPolicyEnablementRule.ruleType()

Returns:

the ruleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RoleManagementPolicyEnablementRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

RoleManagementPolicyEnablementRule.validate()

withEnabledRules

public RoleManagementPolicyEnablementRule withEnabledRules(List<EnablementRules> enabledRules)

Set the enabledRules property: The list of enabled rules.

Parameters:

enabledRules - the enabledRules value to set.

Returns:

the RoleManagementPolicyEnablementRule object itself.

withId

public RoleManagementPolicyEnablementRule withId(String id)

Set the id property: The id of the rule.

Overrides:

RoleManagementPolicyEnablementRule.withId(String id)

Parameters:

id

withTarget

public RoleManagementPolicyEnablementRule withTarget(RoleManagementPolicyRuleTarget target)

Set the target property: The target of the current rule.

Overrides:

RoleManagementPolicyEnablementRule.withTarget(RoleManagementPolicyRuleTarget target)

Parameters:

target

Applies to