Class MicrosoftGraphContentType

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

public final class MicrosoftGraphContentType extends MicrosoftGraphEntity
contentType.
  • Constructor Details

    • MicrosoftGraphContentType

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

    • description

      public String description()
      Get the description property: The descriptive text for the item.
      Returns:
      the description value.
    • withDescription

      public MicrosoftGraphContentType withDescription(String description)
      Set the description property: The descriptive text for the item.
      Parameters:
      description - the description value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • group

      public String group()
      Get the group property: The name of the group this content type belongs to. Helps organize related content types.
      Returns:
      the group value.
    • withGroup

      public MicrosoftGraphContentType withGroup(String group)
      Set the group property: The name of the group this content type belongs to. Helps organize related content types.
      Parameters:
      group - the group value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • hidden

      public Boolean hidden()
      Get the hidden property: Indicates whether the content type is hidden in the list's 'New' menu.
      Returns:
      the hidden value.
    • withHidden

      public MicrosoftGraphContentType withHidden(Boolean hidden)
      Set the hidden property: Indicates whether the content type is hidden in the list's 'New' menu.
      Parameters:
      hidden - the hidden value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • inheritedFrom

      public MicrosoftGraphItemReference inheritedFrom()
      Get the inheritedFrom property: itemReference.
      Returns:
      the inheritedFrom value.
    • withInheritedFrom

      public MicrosoftGraphContentType withInheritedFrom(MicrosoftGraphItemReference inheritedFrom)
      Set the inheritedFrom property: itemReference.
      Parameters:
      inheritedFrom - the inheritedFrom value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • name

      public String name()
      Get the name property: The name of the content type.
      Returns:
      the name value.
    • withName

      public MicrosoftGraphContentType withName(String name)
      Set the name property: The name of the content type.
      Parameters:
      name - the name value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • order

      Get the order property: contentTypeOrder.
      Returns:
      the order value.
    • withOrder

      Set the order property: contentTypeOrder.
      Parameters:
      order - the order value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • parentId

      public String parentId()
      Get the parentId property: The unique identifier of the content type.
      Returns:
      the parentId value.
    • withParentId

      public MicrosoftGraphContentType withParentId(String parentId)
      Set the parentId property: The unique identifier of the content type.
      Parameters:
      parentId - the parentId value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • readOnly

      public Boolean readOnly()
      Get the readOnly property: If true, the content type cannot be modified unless this value is first set to false.
      Returns:
      the readOnly value.
    • withReadOnly

      public MicrosoftGraphContentType withReadOnly(Boolean readOnly)
      Set the readOnly property: If true, the content type cannot be modified unless this value is first set to false.
      Parameters:
      readOnly - the readOnly value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • sealed

      public Boolean sealed()
      Get the sealed property: If true, the content type cannot be modified by users or through push-down operations. Only site collection administrators can seal or unseal content types.
      Returns:
      the sealed value.
    • withSealed

      public MicrosoftGraphContentType withSealed(Boolean sealed)
      Set the sealed property: If true, the content type cannot be modified by users or through push-down operations. Only site collection administrators can seal or unseal content types.
      Parameters:
      sealed - the sealed value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • columnLinks

      public List<MicrosoftGraphColumnLink> columnLinks()
      Get the columnLinks property: The collection of columns that are required by this content type.
      Returns:
      the columnLinks value.
    • withColumnLinks

      public MicrosoftGraphContentType withColumnLinks(List<MicrosoftGraphColumnLink> columnLinks)
      Set the columnLinks property: The collection of columns that are required by this content type.
      Parameters:
      columnLinks - the columnLinks value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: contentType.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphContentType withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: contentType.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphContentType object itself.
    • withId

      public MicrosoftGraphContentType withId(String id)
      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.