MicrosoftGraphManagedAppPolicy Class

public final class MicrosoftGraphManagedAppPolicy
extends MicrosoftGraphEntity

managedAppPolicy The ManagedAppPolicy resource represents a base type for platform specific policies.

Constructor Summary

Constructor Description
MicrosoftGraphManagedAppPolicy()

Creates an instance of MicrosoftGraphManagedAppPolicy class.

Method Summary

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

Get the additionalProperties property: The ManagedAppPolicy resource represents a base type for platform specific policies.

OffsetDateTime createdDateTime()

Get the createdDateTime property: The date and time the policy was created.

String description()

Get the description property: The policy's description.

String displayName()

Get the displayName property: Policy display name.

static MicrosoftGraphManagedAppPolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphManagedAppPolicy from the JsonReader.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: Last time the policy was modified.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: Version of the entity.

MicrosoftGraphManagedAppPolicy withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: The ManagedAppPolicy resource represents a base type for platform specific policies.

MicrosoftGraphManagedAppPolicy withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The date and time the policy was created.

MicrosoftGraphManagedAppPolicy withDescription(String description)

Set the description property: The policy's description.

MicrosoftGraphManagedAppPolicy withDisplayName(String displayName)

Set the displayName property: Policy display name.

MicrosoftGraphManagedAppPolicy withId(String id)

Set the id property: Read-only.

MicrosoftGraphManagedAppPolicy withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: Last time the policy was modified.

MicrosoftGraphManagedAppPolicy withVersion(String version)

Set the version property: Version of the entity.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphManagedAppPolicy

public MicrosoftGraphManagedAppPolicy()

Creates an instance of MicrosoftGraphManagedAppPolicy class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: The ManagedAppPolicy resource represents a base type for platform specific policies.

Overrides:

MicrosoftGraphManagedAppPolicy.additionalProperties()

Returns:

the additionalProperties value.

createdDateTime

public OffsetDateTime createdDateTime()

Get the createdDateTime property: The date and time the policy was created.

Returns:

the createdDateTime value.

description

public String description()

Get the description property: The policy's description.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Policy display name.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphManagedAppPolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphManagedAppPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: Last time the policy was modified.

Returns:

the lastModifiedDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphManagedAppPolicy.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphManagedAppPolicy.validate()

version

public String version()

Get the version property: Version of the entity.

Returns:

the version value.

withAdditionalProperties

public MicrosoftGraphManagedAppPolicy withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: The ManagedAppPolicy resource represents a base type for platform specific policies.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphManagedAppPolicy object itself.

withCreatedDateTime

public MicrosoftGraphManagedAppPolicy withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The date and time the policy was created.

Parameters:

createdDateTime - the createdDateTime value to set.

Returns:

the MicrosoftGraphManagedAppPolicy object itself.

withDescription

public MicrosoftGraphManagedAppPolicy withDescription(String description)

Set the description property: The policy's description.

Parameters:

description - the description value to set.

Returns:

the MicrosoftGraphManagedAppPolicy object itself.

withDisplayName

public MicrosoftGraphManagedAppPolicy withDisplayName(String displayName)

Set the displayName property: Policy display name.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphManagedAppPolicy object itself.

withId

public MicrosoftGraphManagedAppPolicy withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphManagedAppPolicy.withId(String id)

Parameters:

id

withLastModifiedDateTime

public MicrosoftGraphManagedAppPolicy withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: Last time the policy was modified.

Parameters:

lastModifiedDateTime - the lastModifiedDateTime value to set.

Returns:

the MicrosoftGraphManagedAppPolicy object itself.

withVersion

public MicrosoftGraphManagedAppPolicy withVersion(String version)

Set the version property: Version of the entity.

Parameters:

version - the version value to set.

Returns:

the MicrosoftGraphManagedAppPolicy object itself.

Applies to