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 java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
Role definition.
/**
* Role definition.
*/
@JsonFlatten
public class RoleDefinitionInner {
The role definition ID.
/**
* The role definition ID.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
The role definition name.
/**
* The role definition name.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
The role definition type.
/**
* The role definition type.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
The role name.
/**
* The role name.
*/
@JsonProperty(value = "properties.roleName")
private String roleName;
The role definition description.
/**
* The role definition description.
*/
@JsonProperty(value = "properties.description")
private String description;
The role type.
/**
* The role type.
*/
@JsonProperty(value = "properties.type")
private String roleType;
Role definition permissions.
/**
* Role definition permissions.
*/
@JsonProperty(value = "properties.permissions")
private List<PermissionInner> permissions;
Role definition assignable scopes.
/**
* Role definition assignable scopes.
*/
@JsonProperty(value = "properties.assignableScopes")
private List<String> assignableScopes;
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 roleName value.
Returns: the roleName value
/**
* Get the roleName value.
*
* @return the roleName value
*/
public String roleName() {
return this.roleName;
}
Set the roleName value.
Params: - roleName – the roleName value to set
Returns: the RoleDefinitionInner object itself.
/**
* Set the roleName value.
*
* @param roleName the roleName value to set
* @return the RoleDefinitionInner object itself.
*/
public RoleDefinitionInner withRoleName(String roleName) {
this.roleName = roleName;
return this;
}
Get the description value.
Returns: the description value
/**
* Get the description value.
*
* @return the description value
*/
public String description() {
return this.description;
}
Set the description value.
Params: - description – the description value to set
Returns: the RoleDefinitionInner object itself.
/**
* Set the description value.
*
* @param description the description value to set
* @return the RoleDefinitionInner object itself.
*/
public RoleDefinitionInner withDescription(String description) {
this.description = description;
return this;
}
Get the roleType value.
Returns: the roleType value
/**
* Get the roleType value.
*
* @return the roleType value
*/
public String roleType() {
return this.roleType;
}
Set the roleType value.
Params: - roleType – the roleType value to set
Returns: the RoleDefinitionInner object itself.
/**
* Set the roleType value.
*
* @param roleType the roleType value to set
* @return the RoleDefinitionInner object itself.
*/
public RoleDefinitionInner withRoleType(String roleType) {
this.roleType = roleType;
return this;
}
Get the permissions value.
Returns: the permissions value
/**
* Get the permissions value.
*
* @return the permissions value
*/
public List<PermissionInner> permissions() {
return this.permissions;
}
Set the permissions value.
Params: - permissions – the permissions value to set
Returns: the RoleDefinitionInner object itself.
/**
* Set the permissions value.
*
* @param permissions the permissions value to set
* @return the RoleDefinitionInner object itself.
*/
public RoleDefinitionInner withPermissions(List<PermissionInner> permissions) {
this.permissions = permissions;
return this;
}
Get the assignableScopes value.
Returns: the assignableScopes value
/**
* Get the assignableScopes value.
*
* @return the assignableScopes value
*/
public List<String> assignableScopes() {
return this.assignableScopes;
}
Set the assignableScopes value.
Params: - assignableScopes – the assignableScopes value to set
Returns: the RoleDefinitionInner object itself.
/**
* Set the assignableScopes value.
*
* @param assignableScopes the assignableScopes value to set
* @return the RoleDefinitionInner object itself.
*/
public RoleDefinitionInner withAssignableScopes(List<String> assignableScopes) {
this.assignableScopes = assignableScopes;
return this;
}
}