Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class UnifiedRoleAssignment extends Entity implements Parsable {
/**
* Instantiates a new {@link UnifiedRoleAssignment} and sets the default values.
*/
public UnifiedRoleAssignment() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link UnifiedRoleAssignment}
*/
@jakarta.annotation.Nonnull
public static UnifiedRoleAssignment createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new UnifiedRoleAssignment();
}
/**
* Gets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only.
* @return a {@link AppScope}
*/
@jakarta.annotation.Nullable
public AppScope getAppScope() {
return this.backingStore.get("appScope");
}
/**
* Gets the appScopeId property value. Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog. For example, /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example, /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAppScopeId() {
return this.backingStore.get("appScopeId");
}
/**
* Gets the condition property value. The condition property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCondition() {
return this.backingStore.get("condition");
}
/**
* Gets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider.
* @return a {@link DirectoryObject}
*/
@jakarta.annotation.Nullable
public DirectoryObject getDirectoryScope() {
return this.backingStore.get("directoryScope");
}
/**
* Gets the directoryScopeId property value. Identifier of the directory object representing the scope of the assignment. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications, unlike app scopes that are defined and understood by a resource application only. Supports $filter (eq, in).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDirectoryScopeId() {
return this.backingStore.get("directoryScopeId");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("appScope", (n) -> { this.setAppScope(n.getObjectValue(AppScope::createFromDiscriminatorValue)); });
deserializerMap.put("appScopeId", (n) -> { this.setAppScopeId(n.getStringValue()); });
deserializerMap.put("condition", (n) -> { this.setCondition(n.getStringValue()); });
deserializerMap.put("directoryScope", (n) -> { this.setDirectoryScope(n.getObjectValue(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("directoryScopeId", (n) -> { this.setDirectoryScopeId(n.getStringValue()); });
deserializerMap.put("principal", (n) -> { this.setPrincipal(n.getObjectValue(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("principalId", (n) -> { this.setPrincipalId(n.getStringValue()); });
deserializerMap.put("roleDefinition", (n) -> { this.setRoleDefinition(n.getObjectValue(UnifiedRoleDefinition::createFromDiscriminatorValue)); });
deserializerMap.put("roleDefinitionId", (n) -> { this.setRoleDefinitionId(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider.
* @return a {@link DirectoryObject}
*/
@jakarta.annotation.Nullable
public DirectoryObject getPrincipal() {
return this.backingStore.get("principal");
}
/**
* Gets the principalId property value. Identifier of the principal to which the assignment is granted. Supported principals are users, role-assignable groups, and service principals. Supports $filter (eq, in).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPrincipalId() {
return this.backingStore.get("principalId");
}
/**
* Gets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand.
* @return a {@link UnifiedRoleDefinition}
*/
@jakarta.annotation.Nullable
public UnifiedRoleDefinition getRoleDefinition() {
return this.backingStore.get("roleDefinition");
}
/**
* Gets the roleDefinitionId property value. Identifier of the unifiedRoleDefinition the assignment is for. Read-only. Supports $filter (eq, in).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getRoleDefinitionId() {
return this.backingStore.get("roleDefinitionId");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeObjectValue("appScope", this.getAppScope());
writer.writeStringValue("appScopeId", this.getAppScopeId());
writer.writeStringValue("condition", this.getCondition());
writer.writeObjectValue("directoryScope", this.getDirectoryScope());
writer.writeStringValue("directoryScopeId", this.getDirectoryScopeId());
writer.writeObjectValue("principal", this.getPrincipal());
writer.writeStringValue("principalId", this.getPrincipalId());
writer.writeObjectValue("roleDefinition", this.getRoleDefinition());
writer.writeStringValue("roleDefinitionId", this.getRoleDefinitionId());
}
/**
* Sets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only.
* @param value Value to set for the appScope property.
*/
public void setAppScope(@jakarta.annotation.Nullable final AppScope value) {
this.backingStore.set("appScope", value);
}
/**
* Sets the appScopeId property value. Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog. For example, /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example, /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'.
* @param value Value to set for the appScopeId property.
*/
public void setAppScopeId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("appScopeId", value);
}
/**
* Sets the condition property value. The condition property
* @param value Value to set for the condition property.
*/
public void setCondition(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("condition", value);
}
/**
* Sets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider.
* @param value Value to set for the directoryScope property.
*/
public void setDirectoryScope(@jakarta.annotation.Nullable final DirectoryObject value) {
this.backingStore.set("directoryScope", value);
}
/**
* Sets the directoryScopeId property value. Identifier of the directory object representing the scope of the assignment. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications, unlike app scopes that are defined and understood by a resource application only. Supports $filter (eq, in).
* @param value Value to set for the directoryScopeId property.
*/
public void setDirectoryScopeId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("directoryScopeId", value);
}
/**
* Sets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider.
* @param value Value to set for the principal property.
*/
public void setPrincipal(@jakarta.annotation.Nullable final DirectoryObject value) {
this.backingStore.set("principal", value);
}
/**
* Sets the principalId property value. Identifier of the principal to which the assignment is granted. Supported principals are users, role-assignable groups, and service principals. Supports $filter (eq, in).
* @param value Value to set for the principalId property.
*/
public void setPrincipalId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("principalId", value);
}
/**
* Sets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand.
* @param value Value to set for the roleDefinition property.
*/
public void setRoleDefinition(@jakarta.annotation.Nullable final UnifiedRoleDefinition value) {
this.backingStore.set("roleDefinition", value);
}
/**
* Sets the roleDefinitionId property value. Identifier of the unifiedRoleDefinition the assignment is for. Read-only. Supports $filter (eq, in).
* @param value Value to set for the roleDefinitionId property.
*/
public void setRoleDefinitionId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("roleDefinitionId", value);
}
}