com.microsoft.azure.management.graphrbac.implementation.RoleDefinitionInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-graph-rbac Show documentation
Show all versions of azure-mgmt-graph-rbac Show documentation
This package contains Microsoft Azure Graph RBAC Management SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-authorization is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* 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.
*/
@JsonFlatten
public class RoleDefinitionInner {
/**
* The role definition ID.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/**
* The role definition name.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/**
* The role definition type.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
* The role name.
*/
@JsonProperty(value = "properties.roleName")
private String roleName;
/**
* The role definition description.
*/
@JsonProperty(value = "properties.description")
private String description;
/**
* The role type.
*/
@JsonProperty(value = "properties.type")
private String roleType;
/**
* Role definition permissions.
*/
@JsonProperty(value = "properties.permissions")
private List permissions;
/**
* Role definition assignable scopes.
*/
@JsonProperty(value = "properties.assignableScopes")
private List assignableScopes;
/**
* Get the id value.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Get the type value.
*
* @return the type value
*/
public String type() {
return this.type;
}
/**
* Get the roleName value.
*
* @return the roleName value
*/
public String roleName() {
return this.roleName;
}
/**
* 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.
*
* @return the description value
*/
public String description() {
return this.description;
}
/**
* 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.
*
* @return the roleType value
*/
public String roleType() {
return this.roleType;
}
/**
* 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.
*
* @return the permissions value
*/
public List permissions() {
return this.permissions;
}
/**
* Set the permissions value.
*
* @param permissions the permissions value to set
* @return the RoleDefinitionInner object itself.
*/
public RoleDefinitionInner withPermissions(List permissions) {
this.permissions = permissions;
return this;
}
/**
* Get the assignableScopes value.
*
* @return the assignableScopes value
*/
public List assignableScopes() {
return this.assignableScopes;
}
/**
* Set the assignableScopes value.
*
* @param assignableScopes the assignableScopes value to set
* @return the RoleDefinitionInner object itself.
*/
public RoleDefinitionInner withAssignableScopes(List assignableScopes) {
this.assignableScopes = assignableScopes;
return this;
}
}