RoleDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. RoleDefinition
- com.
Implements
public final class RoleDefinition
implements JsonSerializable<RoleDefinition>
Role definition properties.
Constructor Summary
Constructor | Description |
---|---|
RoleDefinition() |
Creates an instance of Role |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role |
String |
id()
Get the id property: The role definition ID. |
Boolean |
isServiceRole()
Get the is |
String |
name()
Get the name property: The role definition name. |
List<Permission> |
permissions()
Get the permissions property: Role definition permissions. |
List<String> |
scopes()
Get the scopes property: Role definition assignable scopes. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Role |
withId(String id)
Set the id property: The role definition ID. |
Role |
withIsServiceRole(Boolean isServiceRole)
Set the is |
Role |
withName(String name)
Set the name property: The role definition name. |
Role |
withPermissions(List<Permission> permissions)
Set the permissions property: Role definition permissions. |
Role |
withScopes(List<String> scopes)
Set the scopes property: Role definition assignable scopes. |
Methods inherited from java.lang.Object
Constructor Details
RoleDefinition
public RoleDefinition()
Creates an instance of RoleDefinition class.
Method Details
fromJson
public static RoleDefinition fromJson(JsonReader jsonReader)
Reads an instance of RoleDefinition from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The role definition ID.
Returns:
isServiceRole
public Boolean isServiceRole()
Get the isServiceRole property: If this is a service role.
Returns:
name
public String name()
Get the name property: The role definition name.
Returns:
permissions
public List
Get the permissions property: Role definition permissions.
Returns:
scopes
public List
Get the scopes property: Role definition assignable scopes.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public RoleDefinition withId(String id)
Set the id property: The role definition ID.
Parameters:
Returns:
withIsServiceRole
public RoleDefinition withIsServiceRole(Boolean isServiceRole)
Set the isServiceRole property: If this is a service role.
Parameters:
Returns:
withName
public RoleDefinition withName(String name)
Set the name property: The role definition name.
Parameters:
Returns:
withPermissions
public RoleDefinition withPermissions(List
Set the permissions property: Role definition permissions.
Parameters:
Returns:
withScopes
public RoleDefinition withScopes(List
Set the scopes property: Role definition assignable scopes.
Parameters:
Returns:
Applies to
Azure SDK for Java