Class MicrosoftGraphPolicyBase

Direct Known Subclasses:
MicrosoftGraphStsPolicy

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 Details

    • MicrosoftGraphPolicyBase

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

    • description

      public String description()
      Get the description property: Description for this policy.
      Returns:
      the description value.
    • 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.
    • displayName

      public String displayName()
      Get the displayName property: Display name for this policy.
      Returns:
      the displayName value.
    • 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.
    • additionalProperties

      public Map<String,Object> 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:
      additionalProperties in class MicrosoftGraphDirectoryObjectInner
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphPolicyBase withAdditionalProperties(Map<String,Object> 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:
      withAdditionalProperties in class MicrosoftGraphDirectoryObjectInner
      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:
      withDeletedDateTime in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      deletedDateTime - the deletedDateTime value to set.
      Returns:
      the MicrosoftGraphDirectoryObjectInner object itself.
    • withId

      public MicrosoftGraphPolicyBase withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

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