MicrosoftGraphPolicyBase Class

public class MicrosoftGraphPolicyBase
extends MicrosoftGraphDirectoryObjectInner

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

Constructor Summary

Constructor Description
MicrosoftGraphPolicyBase()

Creates an instance of MicrosoftGraphPolicyBase 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: Description for this policy.

String displayName()

Get the displayName property: Display name for this policy.

static MicrosoftGraphPolicyBase fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPolicyBase from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphPolicyBase withAdditionalProperties(Map<String,Object> additionalProperties)

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

MicrosoftGraphPolicyBase withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphPolicyBase withDescription(String description)

Set the description property: Description for this policy.

MicrosoftGraphPolicyBase withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

MicrosoftGraphPolicyBase withId(String id)

Set the id property: Read-only.

Methods inherited from MicrosoftGraphDirectoryObjectInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPolicyBase

public MicrosoftGraphPolicyBase()

Creates an instance of MicrosoftGraphPolicyBase 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:

MicrosoftGraphPolicyBase.additionalProperties()

Returns:

the additionalProperties value.

description

public String description()

Get the description property: Description for this policy.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Display name for this policy.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphPolicyBase fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPolicyBase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphPolicyBase.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphPolicyBase.validate()

withAdditionalProperties

public MicrosoftGraphPolicyBase 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:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPolicyBase object itself.

withDeletedDateTime

public MicrosoftGraphPolicyBase withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphPolicyBase.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDescription

public MicrosoftGraphPolicyBase withDescription(String description)

Set the description property: Description for this policy.

Parameters:

description - the description value to set.

Returns:

the MicrosoftGraphPolicyBase object itself.

withDisplayName

public MicrosoftGraphPolicyBase withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphPolicyBase object itself.

withId

public MicrosoftGraphPolicyBase withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphPolicyBase.withId(String id)

Parameters:

id

Applies to