Class MicrosoftGraphManagedAppPolicy

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphManagedAppPolicy

public final class MicrosoftGraphManagedAppPolicy extends MicrosoftGraphEntity
managedAppPolicy

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

  • Constructor Details

    • MicrosoftGraphManagedAppPolicy

      public MicrosoftGraphManagedAppPolicy()
      Creates an instance of MicrosoftGraphManagedAppPolicy class.
  • Method Details

    • createdDateTime

      public OffsetDateTime createdDateTime()
      Get the createdDateTime property: The date and time the policy was created.
      Returns:
      the createdDateTime value.
    • 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.
    • description

      public String description()
      Get the description property: The policy's description.
      Returns:
      the description value.
    • 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.
    • displayName

      public String displayName()
      Get the displayName property: Policy display name.
      Returns:
      the displayName value.
    • 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.
    • lastModifiedDateTime

      public OffsetDateTime lastModifiedDateTime()
      Get the lastModifiedDateTime property: Last time the policy was modified.
      Returns:
      the lastModifiedDateTime value.
    • 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.
    • version

      public String version()
      Get the version property: Version of the entity.
      Returns:
      the version value.
    • 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.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: The ManagedAppPolicy resource represents a base type for platform specific policies.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphManagedAppPolicy withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: The ManagedAppPolicy resource represents a base type for platform specific policies.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphManagedAppPolicy object itself.
    • withId

      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.