Package odata.msgraph.client.beta.entity
Class ContentType
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ContentType
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ContentType extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContentType.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<String>associatedHubsUrlsprotected StringassociatedHubsUrlsNextLinkprotected Stringdescriptionprotected DocumentSetdocumentSetprotected DocumentSetContentdocumentTemplateprotected Stringgroupprotected Booleanhiddenprotected ItemReferenceinheritedFromprotected BooleanisBuiltInprotected Stringnameprotected ContentTypeOrderorderprotected StringparentIdprotected BooleanpropagateChangesprotected BooleanreadOnlyprotected Booleansealed-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContentType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.ActionRequestNoReturnassociateWithHubSites(List<String> hubSiteUrls, Boolean propagateToExistingLists)static ContentType.BuilderbuilderContentType()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.ActionRequestNoReturncopyToDefaultContentLocation(ItemReference sourceFile, String destinationFileName)com.github.davidmoten.odata.client.CollectionPage<String>getAssociatedHubsUrls()com.github.davidmoten.odata.client.CollectionPage<String>getAssociatedHubsUrls(com.github.davidmoten.odata.client.HttpRequestOptions options)ContentTypeRequestgetBase()ContentTypeCollectionRequestgetBaseTypes()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()ColumnLinkCollectionRequestgetColumnLinks()ColumnDefinitionCollectionRequestgetColumnPositions()ColumnDefinitionCollectionRequestgetColumns()Optional<String>getDescription()Optional<DocumentSet>getDocumentSet()Optional<DocumentSetContent>getDocumentTemplate()Optional<String>getGroup()Optional<Boolean>getHidden()Optional<ItemReference>getInheritedFrom()Optional<Boolean>getIsBuiltIn()Optional<String>getName()Optional<ContentTypeOrder>getOrder()Optional<String>getParentId()Optional<Boolean>getPropagateChanges()Optional<Boolean>getReadOnly()Optional<Boolean>getSealed()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()com.github.davidmoten.odata.client.FunctionRequestReturningNonCollection<Boolean>isPublished()StringodataTypeName()ContentTypepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)com.github.davidmoten.odata.client.ActionRequestNoReturnpublish()ContentTypeput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnunpublish()ContentTypewithAssociatedHubsUrls(List<String> associatedHubsUrls)ContentTypewithDescription(String description)ContentTypewithDocumentSet(DocumentSet documentSet)ContentTypewithDocumentTemplate(DocumentSetContent documentTemplate)ContentTypewithGroup(String group)ContentTypewithHidden(Boolean hidden)ContentTypewithInheritedFrom(ItemReference inheritedFrom)ContentTypewithIsBuiltIn(Boolean isBuiltIn)ContentTypewithName(String name)ContentTypewithOrder(ContentTypeOrder order)ContentTypewithParentId(String parentId)ContentTypewithPropagateChanges(Boolean propagateChanges)ContentTypewithReadOnly(Boolean readOnly)ContentTypewithSealed(Boolean sealed)ContentTypewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
associatedHubsUrlsNextLink
protected String associatedHubsUrlsNextLink
-
description
protected String description
-
documentSet
protected DocumentSet documentSet
-
documentTemplate
protected DocumentSetContent documentTemplate
-
group
protected String group
-
hidden
protected Boolean hidden
-
inheritedFrom
protected ItemReference inheritedFrom
-
isBuiltIn
protected Boolean isBuiltIn
-
name
protected String name
-
order
protected ContentTypeOrder order
-
parentId
protected String parentId
-
propagateChanges
protected Boolean propagateChanges
-
readOnly
protected Boolean readOnly
-
sealed
protected Boolean sealed
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderContentType
public static ContentType.Builder builderContentType()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getAssociatedHubsUrls
public com.github.davidmoten.odata.client.CollectionPage<String> getAssociatedHubsUrls()
-
withAssociatedHubsUrls
public ContentType withAssociatedHubsUrls(List<String> associatedHubsUrls)
-
getAssociatedHubsUrls
public com.github.davidmoten.odata.client.CollectionPage<String> getAssociatedHubsUrls(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withDescription
public ContentType withDescription(String description)
-
getDocumentSet
public Optional<DocumentSet> getDocumentSet()
-
withDocumentSet
public ContentType withDocumentSet(DocumentSet documentSet)
-
getDocumentTemplate
public Optional<DocumentSetContent> getDocumentTemplate()
-
withDocumentTemplate
public ContentType withDocumentTemplate(DocumentSetContent documentTemplate)
-
withGroup
public ContentType withGroup(String group)
-
withHidden
public ContentType withHidden(Boolean hidden)
-
getInheritedFrom
public Optional<ItemReference> getInheritedFrom()
-
withInheritedFrom
public ContentType withInheritedFrom(ItemReference inheritedFrom)
-
withIsBuiltIn
public ContentType withIsBuiltIn(Boolean isBuiltIn)
-
withName
public ContentType withName(String name)
-
getOrder
public Optional<ContentTypeOrder> getOrder()
-
withOrder
public ContentType withOrder(ContentTypeOrder order)
-
withParentId
public ContentType withParentId(String parentId)
-
withPropagateChanges
public ContentType withPropagateChanges(Boolean propagateChanges)
-
withReadOnly
public ContentType withReadOnly(Boolean readOnly)
-
withSealed
public ContentType withSealed(Boolean sealed)
-
withUnmappedField
public ContentType withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getBase
public ContentTypeRequest getBase()
-
getBaseTypes
public ContentTypeCollectionRequest getBaseTypes()
-
getColumnLinks
public ColumnLinkCollectionRequest getColumnLinks()
-
getColumnPositions
public ColumnDefinitionCollectionRequest getColumnPositions()
-
getColumns
public ColumnDefinitionCollectionRequest getColumns()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public ContentType patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ContentType put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
publish
public com.github.davidmoten.odata.client.ActionRequestNoReturn publish()
-
unpublish
public com.github.davidmoten.odata.client.ActionRequestNoReturn unpublish()
-
associateWithHubSites
public com.github.davidmoten.odata.client.ActionRequestNoReturn associateWithHubSites(List<String> hubSiteUrls, Boolean propagateToExistingLists)
-
copyToDefaultContentLocation
public com.github.davidmoten.odata.client.ActionRequestNoReturn copyToDefaultContentLocation(ItemReference sourceFile, String destinationFileName)
-
isPublished
public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollection<Boolean> isPublished()
-
-