你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphAdministrativeUnit Class

public final class MicrosoftGraphAdministrativeUnit
extends MicrosoftGraphDirectoryObjectInner

administrativeUnit Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Constructor Summary

Constructor Description
MicrosoftGraphAdministrativeUnit()

Creates an instance of MicrosoftGraphAdministrativeUnit class.

Method Summary

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

Get the additionalProperties property: Represents an Azure Active Directory object.

String description()

Get the description property: An optional description for the administrative unit.

String displayName()

Get the displayName property: Display name for the administrative unit.

List<MicrosoftGraphExtension> extensions()

Get the extensions property: The extensions property.

static MicrosoftGraphAdministrativeUnit fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAdministrativeUnit from the JsonReader.

List<MicrosoftGraphDirectoryObjectInner> members()

Get the members property: Users and groups that are members of this Adminsitrative Unit.

List<MicrosoftGraphScopedRoleMembership> scopedRoleMembers()

Get the scopedRoleMembers property: Scoped-role members of this Administrative Unit.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String visibility()

Get the visibility property: Controls whether the administrative unit and its members are hidden or public.

MicrosoftGraphAdministrativeUnit withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object.

MicrosoftGraphAdministrativeUnit withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphAdministrativeUnit withDescription(String description)

Set the description property: An optional description for the administrative unit.

MicrosoftGraphAdministrativeUnit withDisplayName(String displayName)

Set the displayName property: Display name for the administrative unit.

MicrosoftGraphAdministrativeUnit withExtensions(List<MicrosoftGraphExtension> extensions)

Set the extensions property: The extensions property.

MicrosoftGraphAdministrativeUnit withId(String id)

Set the id property: Read-only.

MicrosoftGraphAdministrativeUnit withMembers(List<MicrosoftGraphDirectoryObjectInner> members)

Set the members property: Users and groups that are members of this Adminsitrative Unit.

MicrosoftGraphAdministrativeUnit withScopedRoleMembers(List<MicrosoftGraphScopedRoleMembership> scopedRoleMembers)

Set the scopedRoleMembers property: Scoped-role members of this Administrative Unit.

MicrosoftGraphAdministrativeUnit withVisibility(String visibility)

Set the visibility property: Controls whether the administrative unit and its members are hidden or public.

Methods inherited from MicrosoftGraphDirectoryObjectInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphAdministrativeUnit

public MicrosoftGraphAdministrativeUnit()

Creates an instance of MicrosoftGraphAdministrativeUnit class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

MicrosoftGraphAdministrativeUnit.additionalProperties()

Returns:

the additionalProperties value.

description

public String description()

Get the description property: An optional description for the administrative unit.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Display name for the administrative unit.

Returns:

the displayName value.

extensions

public List extensions()

Get the extensions property: The extensions property.

Returns:

the extensions value.

fromJson

public static MicrosoftGraphAdministrativeUnit fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAdministrativeUnit from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphAdministrativeUnit 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 MicrosoftGraphAdministrativeUnit.

members

public List members()

Get the members property: Users and groups that are members of this Adminsitrative Unit. HTTP Methods: GET (list members), POST (add members), DELETE (remove members).

Returns:

the members value.

scopedRoleMembers

public List scopedRoleMembers()

Get the scopedRoleMembers property: Scoped-role members of this Administrative Unit. HTTP Methods: GET (list scopedRoleMemberships), POST (add scopedRoleMembership), DELETE (remove scopedRoleMembership).

Returns:

the scopedRoleMembers value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphAdministrativeUnit.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphAdministrativeUnit.validate()

visibility

public String visibility()

Get the visibility property: Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the adminstrative unit.

Returns:

the visibility value.

withAdditionalProperties

public MicrosoftGraphAdministrativeUnit withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphAdministrativeUnit object itself.

withDeletedDateTime

public MicrosoftGraphAdministrativeUnit withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphAdministrativeUnit.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDescription

public MicrosoftGraphAdministrativeUnit withDescription(String description)

Set the description property: An optional description for the administrative unit.

Parameters:

description - the description value to set.

Returns:

the MicrosoftGraphAdministrativeUnit object itself.

withDisplayName

public MicrosoftGraphAdministrativeUnit withDisplayName(String displayName)

Set the displayName property: Display name for the administrative unit.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphAdministrativeUnit object itself.

withExtensions

public MicrosoftGraphAdministrativeUnit withExtensions(List extensions)

Set the extensions property: The extensions property.

Parameters:

extensions - the extensions value to set.

Returns:

the MicrosoftGraphAdministrativeUnit object itself.

withId

public MicrosoftGraphAdministrativeUnit withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphAdministrativeUnit.withId(String id)

Parameters:

id

withMembers

public MicrosoftGraphAdministrativeUnit withMembers(List members)

Set the members property: Users and groups that are members of this Adminsitrative Unit. HTTP Methods: GET (list members), POST (add members), DELETE (remove members).

Parameters:

members - the members value to set.

Returns:

the MicrosoftGraphAdministrativeUnit object itself.

withScopedRoleMembers

public MicrosoftGraphAdministrativeUnit withScopedRoleMembers(List scopedRoleMembers)

Set the scopedRoleMembers property: Scoped-role members of this Administrative Unit. HTTP Methods: GET (list scopedRoleMemberships), POST (add scopedRoleMembership), DELETE (remove scopedRoleMembership).

Parameters:

scopedRoleMembers - the scopedRoleMembers value to set.

Returns:

the MicrosoftGraphAdministrativeUnit object itself.

withVisibility

public MicrosoftGraphAdministrativeUnit withVisibility(String visibility)

Set the visibility property: Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the adminstrative unit.

Parameters:

visibility - the visibility value to set.

Returns:

the MicrosoftGraphAdministrativeUnit object itself.

Applies to