RoleManagementPolicyRuleTarget Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.RoleManagementPolicyRuleTarget

Implements

public final class RoleManagementPolicyRuleTarget
implements JsonSerializable<RoleManagementPolicyRuleTarget>

The role management policy rule target.

Constructor Summary

Constructor Description
RoleManagementPolicyRuleTarget()

Creates an instance of RoleManagementPolicyRuleTarget class.

Method Summary

Modifier and Type Method and Description
String caller()

Get the caller property: The caller of the setting.

List<String> enforcedSettings()

Get the enforcedSettings property: The list of enforced settings.

static RoleManagementPolicyRuleTarget fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyRuleTarget from the JsonReader.

List<String> inheritableSettings()

Get the inheritableSettings property: The list of inheritable settings.

String level()

Get the level property: The assignment level to which rule is applied.

List<String> operations()

Get the operations property: The type of operation.

List<String> targetObjects()

Get the targetObjects property: The list of target objects.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleManagementPolicyRuleTarget withCaller(String caller)

Set the caller property: The caller of the setting.

RoleManagementPolicyRuleTarget withEnforcedSettings(List<String> enforcedSettings)

Set the enforcedSettings property: The list of enforced settings.

RoleManagementPolicyRuleTarget withInheritableSettings(List<String> inheritableSettings)

Set the inheritableSettings property: The list of inheritable settings.

RoleManagementPolicyRuleTarget withLevel(String level)

Set the level property: The assignment level to which rule is applied.

RoleManagementPolicyRuleTarget withOperations(List<String> operations)

Set the operations property: The type of operation.

RoleManagementPolicyRuleTarget withTargetObjects(List<String> targetObjects)

Set the targetObjects property: The list of target objects.

Methods inherited from java.lang.Object

Constructor Details

RoleManagementPolicyRuleTarget

public RoleManagementPolicyRuleTarget()

Creates an instance of RoleManagementPolicyRuleTarget class.

Method Details

caller

public String caller()

Get the caller property: The caller of the setting.

Returns:

the caller value.

enforcedSettings

public List enforcedSettings()

Get the enforcedSettings property: The list of enforced settings.

Returns:

the enforcedSettings value.

fromJson

public static RoleManagementPolicyRuleTarget fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyRuleTarget from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

inheritableSettings

public List inheritableSettings()

Get the inheritableSettings property: The list of inheritable settings.

Returns:

the inheritableSettings value.

level

public String level()

Get the level property: The assignment level to which rule is applied.

Returns:

the level value.

operations

public List operations()

Get the operations property: The type of operation.

Returns:

the operations value.

targetObjects

public List targetObjects()

Get the targetObjects property: The list of target objects.

Returns:

the targetObjects value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCaller

public RoleManagementPolicyRuleTarget withCaller(String caller)

Set the caller property: The caller of the setting.

Parameters:

caller - the caller value to set.

Returns:

the RoleManagementPolicyRuleTarget object itself.

withEnforcedSettings

public RoleManagementPolicyRuleTarget withEnforcedSettings(List enforcedSettings)

Set the enforcedSettings property: The list of enforced settings.

Parameters:

enforcedSettings - the enforcedSettings value to set.

Returns:

the RoleManagementPolicyRuleTarget object itself.

withInheritableSettings

public RoleManagementPolicyRuleTarget withInheritableSettings(List inheritableSettings)

Set the inheritableSettings property: The list of inheritable settings.

Parameters:

inheritableSettings - the inheritableSettings value to set.

Returns:

the RoleManagementPolicyRuleTarget object itself.

withLevel

public RoleManagementPolicyRuleTarget withLevel(String level)

Set the level property: The assignment level to which rule is applied.

Parameters:

level - the level value to set.

Returns:

the RoleManagementPolicyRuleTarget object itself.

withOperations

public RoleManagementPolicyRuleTarget withOperations(List operations)

Set the operations property: The type of operation.

Parameters:

operations - the operations value to set.

Returns:

the RoleManagementPolicyRuleTarget object itself.

withTargetObjects

public RoleManagementPolicyRuleTarget withTargetObjects(List targetObjects)

Set the targetObjects property: The list of target objects.

Parameters:

targetObjects - the targetObjects value to set.

Returns:

the RoleManagementPolicyRuleTarget object itself.

Applies to