MicrosoftGraphScopedRoleMembership Class

public final class MicrosoftGraphScopedRoleMembership
extends MicrosoftGraphEntity

scopedRoleMembership.

Constructor Summary

Constructor Description
MicrosoftGraphScopedRoleMembership()

Creates an instance of MicrosoftGraphScopedRoleMembership class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: scopedRoleMembership.

String administrativeUnitId()

Get the administrativeUnitId property: Unique identifier for the administrative unit that the directory role is scoped to.

static MicrosoftGraphScopedRoleMembership fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphScopedRoleMembership from the JsonReader.

String roleId()

Get the roleId property: Unique identifier for the directory role that the member is in.

MicrosoftGraphIdentity roleMemberInfo()

Get the roleMemberInfo property: identity.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphScopedRoleMembership withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: scopedRoleMembership.

MicrosoftGraphScopedRoleMembership withAdministrativeUnitId(String administrativeUnitId)

Set the administrativeUnitId property: Unique identifier for the administrative unit that the directory role is scoped to.

MicrosoftGraphScopedRoleMembership withId(String id)

Set the id property: Read-only.

MicrosoftGraphScopedRoleMembership withRoleId(String roleId)

Set the roleId property: Unique identifier for the directory role that the member is in.

MicrosoftGraphScopedRoleMembership withRoleMemberInfo(MicrosoftGraphIdentity roleMemberInfo)

Set the roleMemberInfo property: identity.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphScopedRoleMembership

public MicrosoftGraphScopedRoleMembership()

Creates an instance of MicrosoftGraphScopedRoleMembership class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: scopedRoleMembership.

Overrides:

MicrosoftGraphScopedRoleMembership.additionalProperties()

Returns:

the additionalProperties value.

administrativeUnitId

public String administrativeUnitId()

Get the administrativeUnitId property: Unique identifier for the administrative unit that the directory role is scoped to.

Returns:

the administrativeUnitId value.

fromJson

public static MicrosoftGraphScopedRoleMembership fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphScopedRoleMembership from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphScopedRoleMembership if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphScopedRoleMembership.

roleId

public String roleId()

Get the roleId property: Unique identifier for the directory role that the member is in.

Returns:

the roleId value.

roleMemberInfo

public MicrosoftGraphIdentity roleMemberInfo()

Get the roleMemberInfo property: identity.

Returns:

the roleMemberInfo value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphScopedRoleMembership.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphScopedRoleMembership.validate()

withAdditionalProperties

public MicrosoftGraphScopedRoleMembership withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: scopedRoleMembership.

Overrides:

MicrosoftGraphScopedRoleMembership.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphScopedRoleMembership object itself.

withAdministrativeUnitId

public MicrosoftGraphScopedRoleMembership withAdministrativeUnitId(String administrativeUnitId)

Set the administrativeUnitId property: Unique identifier for the administrative unit that the directory role is scoped to.

Parameters:

administrativeUnitId - the administrativeUnitId value to set.

Returns:

the MicrosoftGraphScopedRoleMembership object itself.

withId

public MicrosoftGraphScopedRoleMembership withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphScopedRoleMembership.withId(String id)

Parameters:

id

withRoleId

public MicrosoftGraphScopedRoleMembership withRoleId(String roleId)

Set the roleId property: Unique identifier for the directory role that the member is in.

Parameters:

roleId - the roleId value to set.

Returns:

the MicrosoftGraphScopedRoleMembership object itself.

withRoleMemberInfo

public MicrosoftGraphScopedRoleMembership withRoleMemberInfo(MicrosoftGraphIdentity roleMemberInfo)

Set the roleMemberInfo property: identity.

Parameters:

roleMemberInfo - the roleMemberInfo value to set.

Returns:

the MicrosoftGraphScopedRoleMembership object itself.

Applies to