Package com.microsoft.graph.models
Class ContentType
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ContentType
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class ContentType
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentTypecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the associatedHubsUrls property value.getBase()Gets the base property value.Gets the baseTypes property value.Gets the columnLinks property value.Gets the columnPositions property value.Gets the columns property value.Gets the description property value.Gets the documentSet property value.Gets the documentTemplate property value.The deserialization information for the current modelgetGroup()Gets the group property value.Gets the hidden property value.Gets the inheritedFrom property value.Gets the isBuiltIn property value.getName()Gets the name property value.getOrder()Gets the order property value.Gets the parentId property value.Gets the propagateChanges property value.Gets the readOnly property value.Gets the sealed property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAssociatedHubsUrls(List<String> value) Sets the associatedHubsUrls property value.voidsetBase(ContentType value) Sets the base property value.voidsetBaseTypes(List<ContentType> value) Sets the baseTypes property value.voidsetColumnLinks(List<ColumnLink> value) Sets the columnLinks property value.voidsetColumnPositions(List<ColumnDefinition> value) Sets the columnPositions property value.voidsetColumns(List<ColumnDefinition> value) Sets the columns property value.voidsetDescription(String value) Sets the description property value.voidsetDocumentSet(DocumentSet value) Sets the documentSet property value.voidSets the documentTemplate property value.voidSets the group property value.voidSets the hidden property value.voidsetInheritedFrom(ItemReference value) Sets the inheritedFrom property value.voidsetIsBuiltIn(Boolean value) Sets the isBuiltIn property value.voidSets the name property value.voidsetOrder(ContentTypeOrder value) Sets the order property value.voidsetParentId(String value) Sets the parentId property value.voidsetPropagateChanges(Boolean value) Sets the propagateChanges property value.voidsetReadOnly(Boolean value) Sets the readOnly property value.voidSets the sealed property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ContentType
public ContentType()Instantiates a newContentTypeand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static ContentType createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
ContentType
-
getAssociatedHubsUrls
Gets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This will contain all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type is applied to the lists in the enforced sites. -
getBase
Gets the base property value. Parent contentType from which this content type is derived.- Returns:
- a
ContentType
-
getBaseTypes
Gets the baseTypes property value. The collection of content types that are ancestors of this content type.- Returns:
- a
List<ContentType>
-
getColumnLinks
Gets the columnLinks property value. The collection of columns that are required by this content type.- Returns:
- a
List<ColumnLink>
-
getColumnPositions
Gets the columnPositions property value. Column order information in a content type.- Returns:
- a
List<ColumnDefinition>
-
getColumns
Gets the columns property value. The collection of column definitions for this content type.- Returns:
- a
List<ColumnDefinition>
-
getDescription
Gets the description property value. The descriptive text for the item.- Returns:
- a
String
-
getDocumentSet
Gets the documentSet property value. Document Set metadata.- Returns:
- a
DocumentSet
-
getDocumentTemplate
Gets the documentTemplate property value. Document template metadata. To make sure that documents have consistent content across a site and its subsites, you can associate a Word, Excel, or PowerPoint template with a site content type.- Returns:
- a
DocumentSetContent
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getGroup
Gets the group property value. The name of the group this content type belongs to. Helps organize related content types.- Returns:
- a
String
-
getHidden
Gets the hidden property value. Indicates whether the content type is hidden in the list's 'New' menu.- Returns:
- a
Boolean
-
getInheritedFrom
Gets the inheritedFrom property value. If this content type is inherited from another scope (like a site), provides a reference to the item where the content type is defined.- Returns:
- a
ItemReference
-
getIsBuiltIn
Gets the isBuiltIn property value. Specifies if a content type is a built-in content type.- Returns:
- a
Boolean
-
getName
Gets the name property value. The name of the content type.- Returns:
- a
String
-
getOrder
Gets the order property value. Specifies the order in which the content type appears in the selection UI.- Returns:
- a
ContentTypeOrder
-
getParentId
Gets the parentId property value. The unique identifier of the content type.- Returns:
- a
String
-
getPropagateChanges
Gets the propagateChanges property value. If true, any changes made to the content type are pushed to inherited content types and lists that implement the content type.- Returns:
- a
Boolean
-
getReadOnly
Gets the readOnly property value. If true, the content type can't be modified unless this value is first set to false.- Returns:
- a
Boolean
-
getSealed
Gets the sealed property value. If true, the content type can't be modified by users or through push-down operations. Only site collection administrators can seal or unseal content types.- Returns:
- a
Boolean
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAssociatedHubsUrls
Sets the associatedHubsUrls property value. List of canonical URLs for hub sites with which this content type is associated to. This will contain all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type is applied to the lists in the enforced sites.- Parameters:
value- Value to set for the associatedHubsUrls property.
-
setBase
Sets the base property value. Parent contentType from which this content type is derived.- Parameters:
value- Value to set for the base property.
-
setBaseTypes
Sets the baseTypes property value. The collection of content types that are ancestors of this content type.- Parameters:
value- Value to set for the baseTypes property.
-
setColumnLinks
Sets the columnLinks property value. The collection of columns that are required by this content type.- Parameters:
value- Value to set for the columnLinks property.
-
setColumnPositions
Sets the columnPositions property value. Column order information in a content type.- Parameters:
value- Value to set for the columnPositions property.
-
setColumns
Sets the columns property value. The collection of column definitions for this content type.- Parameters:
value- Value to set for the columns property.
-
setDescription
Sets the description property value. The descriptive text for the item.- Parameters:
value- Value to set for the description property.
-
setDocumentSet
Sets the documentSet property value. Document Set metadata.- Parameters:
value- Value to set for the documentSet property.
-
setDocumentTemplate
Sets the documentTemplate property value. Document template metadata. To make sure that documents have consistent content across a site and its subsites, you can associate a Word, Excel, or PowerPoint template with a site content type.- Parameters:
value- Value to set for the documentTemplate property.
-
setGroup
Sets the group property value. The name of the group this content type belongs to. Helps organize related content types.- Parameters:
value- Value to set for the group property.
-
setHidden
Sets the hidden property value. Indicates whether the content type is hidden in the list's 'New' menu.- Parameters:
value- Value to set for the hidden property.
-
setInheritedFrom
Sets the inheritedFrom property value. If this content type is inherited from another scope (like a site), provides a reference to the item where the content type is defined.- Parameters:
value- Value to set for the inheritedFrom property.
-
setIsBuiltIn
Sets the isBuiltIn property value. Specifies if a content type is a built-in content type.- Parameters:
value- Value to set for the isBuiltIn property.
-
setName
Sets the name property value. The name of the content type.- Parameters:
value- Value to set for the name property.
-
setOrder
Sets the order property value. Specifies the order in which the content type appears in the selection UI.- Parameters:
value- Value to set for the order property.
-
setParentId
Sets the parentId property value. The unique identifier of the content type.- Parameters:
value- Value to set for the parentId property.
-
setPropagateChanges
Sets the propagateChanges property value. If true, any changes made to the content type are pushed to inherited content types and lists that implement the content type.- Parameters:
value- Value to set for the propagateChanges property.
-
setReadOnly
Sets the readOnly property value. If true, the content type can't be modified unless this value is first set to false.- Parameters:
value- Value to set for the readOnly property.
-
setSealed
Sets the sealed property value. If true, the content type can't be modified by users or through push-down operations. Only site collection administrators can seal or unseal content types.- Parameters:
value- Value to set for the sealed property.
-