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 Assignments.
/** * Role Assignments. */
@JsonFlatten public class RoleAssignmentInner {
The role assignment ID.
/** * The role assignment ID. */
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id;
The role assignment name.
/** * The role assignment name. */
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name;
The role assignment type.
/** * The role assignment type. */
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type;
The role assignment scope.
/** * The role assignment scope. */
@JsonProperty(value = "properties.scope") private String scope;
The role definition ID.
/** * The role definition ID. */
@JsonProperty(value = "properties.roleDefinitionId") private String roleDefinitionId;
The principal ID.
/** * The principal ID. */
@JsonProperty(value = "properties.principalId") private String principalId;
The Delegation flag for the roleassignment.
/** * The Delegation flag for the roleassignment. */
@JsonProperty(value = "properties.canDelegate") private Boolean canDelegate;
Get the id value.
Returns:the id value
/** * Get the id value. * * @return the id value */
public String id() { return this.id; }
Get the name value.
Returns:the name value
/** * Get the name value. * * @return the name value */
public String name() { return this.name; }
Get the type value.
Returns:the type value
/** * Get the type value. * * @return the type value */
public String type() { return this.type; }
Get the scope value.
Returns:the scope value
/** * Get the scope value. * * @return the scope value */
public String scope() { return this.scope; }
Set the scope value.
Params:
  • scope – the scope value to set
Returns:the RoleAssignmentInner object itself.
/** * Set the scope value. * * @param scope the scope value to set * @return the RoleAssignmentInner object itself. */
public RoleAssignmentInner withScope(String scope) { this.scope = scope; return this; }
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 RoleAssignmentInner object itself.
/** * Set the roleDefinitionId value. * * @param roleDefinitionId the roleDefinitionId value to set * @return the RoleAssignmentInner object itself. */
public RoleAssignmentInner 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 RoleAssignmentInner object itself.
/** * Set the principalId value. * * @param principalId the principalId value to set * @return the RoleAssignmentInner object itself. */
public RoleAssignmentInner 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 RoleAssignmentInner object itself.
/** * Set the canDelegate value. * * @param canDelegate the canDelegate value to set * @return the RoleAssignmentInner object itself. */
public RoleAssignmentInner withCanDelegate(Boolean canDelegate) { this.canDelegate = canDelegate; return this; } }