Share via


MicrosoftGraphContentType Class

public final class MicrosoftGraphContentType
extends MicrosoftGraphEntity

Represents a content type.

Constructor Summary

Constructor Description
MicrosoftGraphContentType()

Creates an instance of MicrosoftGraphContentType class.

Method Summary

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

Get the additionalProperties property: contentType.

List<MicrosoftGraphColumnLink> columnLinks()

Get the columnLinks property: The collection of columns that are required by this content type.

String description()

Get the description property: The descriptive text for the item.

static MicrosoftGraphContentType fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphContentType from the JsonReader.

String group()

Get the group property: The name of the group this content type belongs to.

Boolean hidden()

Get the hidden property: Indicates whether the content type is hidden in the list's 'New' menu.

MicrosoftGraphItemReference inheritedFrom()

Get the inheritedFrom property: itemReference.

String name()

Get the name property: The name of the content type.

MicrosoftGraphContentTypeOrder order()

Get the order property: contentTypeOrder.

String parentId()

Get the parentId property: The unique identifier of the content type.

Boolean readOnly()

Get the readOnly property: If true, the content type cannot be modified unless this value is first set to false.

Boolean sealed()

Get the sealed property: If true, the content type cannot be modified by users or through push-down operations.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphContentType withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: contentType.

MicrosoftGraphContentType withColumnLinks(List<MicrosoftGraphColumnLink> columnLinks)

Set the columnLinks property: The collection of columns that are required by this content type.

MicrosoftGraphContentType withDescription(String description)

Set the description property: The descriptive text for the item.

MicrosoftGraphContentType withGroup(String group)

Set the group property: The name of the group this content type belongs to.

MicrosoftGraphContentType withHidden(Boolean hidden)

Set the hidden property: Indicates whether the content type is hidden in the list's 'New' menu.

MicrosoftGraphContentType withId(String id)

Set the id property: Read-only.

MicrosoftGraphContentType withInheritedFrom(MicrosoftGraphItemReference inheritedFrom)

Set the inheritedFrom property: itemReference.

MicrosoftGraphContentType withName(String name)

Set the name property: The name of the content type.

MicrosoftGraphContentType withOrder(MicrosoftGraphContentTypeOrder order)

Set the order property: contentTypeOrder.

MicrosoftGraphContentType withParentId(String parentId)

Set the parentId property: The unique identifier of the content type.

MicrosoftGraphContentType withReadOnly(Boolean readOnly)

Set the readOnly property: If true, the content type cannot be modified unless this value is first set to false.

MicrosoftGraphContentType withSealed(Boolean sealed)

Set the sealed property: If true, the content type cannot be modified by users or through push-down operations.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphContentType

public MicrosoftGraphContentType()

Creates an instance of MicrosoftGraphContentType class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: contentType.

Overrides:

MicrosoftGraphContentType.additionalProperties()

Returns:

the additionalProperties value.

columnLinks

public List<MicrosoftGraphColumnLink> columnLinks()

Get the columnLinks property: The collection of columns that are required by this content type.

Returns:

the columnLinks value.

description

public String description()

Get the description property: The descriptive text for the item.

Returns:

the description value.

fromJson

public static MicrosoftGraphContentType fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphContentType from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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.

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.

inheritedFrom

public MicrosoftGraphItemReference inheritedFrom()

Get the inheritedFrom property: itemReference.

Returns:

the inheritedFrom value.

name

public String name()

Get the name property: The name of the content type.

Returns:

the name value.

order

public MicrosoftGraphContentTypeOrder order()

Get the order property: contentTypeOrder.

Returns:

the order value.

parentId

public String parentId()

Get the parentId property: The unique identifier of the content type.

Returns:

the parentId value.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphContentType.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphContentType.validate()

withAdditionalProperties

public MicrosoftGraphContentType withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: contentType.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphContentType object itself.

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.

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.

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.

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.

withId

public MicrosoftGraphContentType withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphContentType.withId(String id)

Parameters:

id

withInheritedFrom

public MicrosoftGraphContentType withInheritedFrom(MicrosoftGraphItemReference inheritedFrom)

Set the inheritedFrom property: itemReference.

Parameters:

inheritedFrom - the inheritedFrom value to set.

Returns:

the MicrosoftGraphContentType object itself.

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.

withOrder

public MicrosoftGraphContentType withOrder(MicrosoftGraphContentTypeOrder order)

Set the order property: contentTypeOrder.

Parameters:

order - the order value to set.

Returns:

the MicrosoftGraphContentType object itself.

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.

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.

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.

Applies to