Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.graphrbac.implementation; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
Role assignment create parameters.
/** * Role assignment create parameters. */
@JsonFlatten public class RoleAssignmentCreateParametersInner {
The role definition ID used in the role assignment.
/** * The role definition ID used in the role assignment. */
@JsonProperty(value = "properties.roleDefinitionId") private String roleDefinitionId;
The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group.
/** * The principal ID assigned to the role. This maps to the ID inside the * Active Directory. It can point to a user, service principal, or security * group. */
@JsonProperty(value = "properties.principalId") private String principalId;
The delgation flag used for creating a role assignment.
/** * The delgation flag used for creating a role assignment. */
@JsonProperty(value = "properties.canDelegate") private Boolean canDelegate;
Get the roleDefinitionId value.
Returns:the roleDefinitionId value
/** * Get the roleDefinitionId value. * * @return the roleDefinitionId value */
public String roleDefinitionId() { return this.roleDefinitionId; }
Set the roleDefinitionId value.
Params:
  • roleDefinitionId – the roleDefinitionId value to set
Returns:the RoleAssignmentCreateParametersInner object itself.
/** * Set the roleDefinitionId value. * * @param roleDefinitionId the roleDefinitionId value to set * @return the RoleAssignmentCreateParametersInner object itself. */
public RoleAssignmentCreateParametersInner withRoleDefinitionId(String roleDefinitionId) { this.roleDefinitionId = roleDefinitionId; return this; }
Get the principalId value.
Returns:the principalId value
/** * Get the principalId value. * * @return the principalId value */
public String principalId() { return this.principalId; }
Set the principalId value.
Params:
  • principalId – the principalId value to set
Returns:the RoleAssignmentCreateParametersInner object itself.
/** * Set the principalId value. * * @param principalId the principalId value to set * @return the RoleAssignmentCreateParametersInner object itself. */
public RoleAssignmentCreateParametersInner withPrincipalId(String principalId) { this.principalId = principalId; return this; }
Get the canDelegate value.
Returns:the canDelegate value
/** * Get the canDelegate value. * * @return the canDelegate value */
public Boolean canDelegate() { return this.canDelegate; }
Set the canDelegate value.
Params:
  • canDelegate – the canDelegate value to set
Returns:the RoleAssignmentCreateParametersInner object itself.
/** * Set the canDelegate value. * * @param canDelegate the canDelegate value to set * @return the RoleAssignmentCreateParametersInner object itself. */
public RoleAssignmentCreateParametersInner withCanDelegate(Boolean canDelegate) { this.canDelegate = canDelegate; return this; } }