Package odata.msgraph.client.entity
Class EducationModule
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.EducationModule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class EducationModule extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEducationModule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IdentitySetcreatedByprotected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected BooleanisPinnedprotected IdentitySetlastModifiedByprotected OffsetDateTimelastModifiedDateTimeprotected List<EducationModuleResource>resourcesprotected StringresourcesFolderUrlprotected EducationModuleStatusstatus-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEducationModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EducationModule.BuilderbuilderEducationModule()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.internal.ChangedFieldsgetChangedFields()Optional<IdentitySet>getCreatedBy()Org.OData.Core.V1.ComputedOptional<OffsetDateTime>getCreatedDateTime()Org.OData.Core.V1.ComputedOptional<String>getDescription()Optional<String>getDisplayName()Optional<Boolean>getIsPinned()Optional<IdentitySet>getLastModifiedBy()Org.OData.Core.V1.ComputedOptional<OffsetDateTime>getLastModifiedDateTime()Org.OData.Core.V1.ComputedEducationModuleResourceCollectionRequestgetResources()Optional<String>getResourcesFolderUrl()Org.OData.Core.V1.ComputedOptional<EducationModuleStatus>getStatus()Org.OData.Core.V1.Computedcom.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()EducationModulepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<EducationModule>pin()voidpostInject(boolean addKeysToContextPath)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<EducationModule>publish()EducationModuleput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<EducationModule>setUpResourcesFolder()StringtoString()com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<EducationModule>unpin()EducationModulewithCreatedBy(IdentitySet createdBy)Returns an immutable copy ofthiswith just thecreatedByfield changed.EducationModulewithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.EducationModulewithDescription(String description)EducationModulewithDisplayName(String displayName)EducationModulewithIsPinned(Boolean isPinned)EducationModulewithLastModifiedBy(IdentitySet lastModifiedBy)Returns an immutable copy ofthiswith just thelastModifiedByfield changed.EducationModulewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.EducationModulewithResources(List<EducationModuleResource> resources)EducationModulewithResourcesFolderUrl(String resourcesFolderUrl)Returns an immutable copy ofthiswith just theresourcesFolderUrlfield changed.EducationModulewithStatus(EducationModuleStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.EducationModulewithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
createdBy
protected IdentitySet createdBy
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
isPinned
protected Boolean isPinned
-
lastModifiedBy
protected IdentitySet lastModifiedBy
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
resourcesFolderUrl
protected String resourcesFolderUrl
-
status
protected EducationModuleStatus status
-
resources
protected List<EducationModuleResource> resources
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderEducationModule
public static EducationModule.Builder builderEducationModule()
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
-
getCreatedBy
public Optional<IdentitySet> getCreatedBy()
Org.OData.Core.V1.Computed
true
- Returns:
- property createdBy
-
withCreatedBy
public EducationModule withCreatedBy(IdentitySet createdBy)
Returns an immutable copy ofthiswith just thecreatedByfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
createdBy- new value ofcreatedByfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedByfield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
Org.OData.Core.V1.Computed
true
- Returns:
- property createdDateTime
-
withCreatedDateTime
public EducationModule withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
withDescription
public EducationModule withDescription(String description)
-
withDisplayName
public EducationModule withDisplayName(String displayName)
-
withIsPinned
public EducationModule withIsPinned(Boolean isPinned)
-
getLastModifiedBy
public Optional<IdentitySet> getLastModifiedBy()
Org.OData.Core.V1.Computed
true
- Returns:
- property lastModifiedBy
-
withLastModifiedBy
public EducationModule withLastModifiedBy(IdentitySet lastModifiedBy)
Returns an immutable copy ofthiswith just thelastModifiedByfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
lastModifiedBy- new value oflastModifiedByfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedByfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
Org.OData.Core.V1.Computed
true
- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public EducationModule withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getResourcesFolderUrl
public Optional<String> getResourcesFolderUrl()
Org.OData.Core.V1.Computed
true
- Returns:
- property resourcesFolderUrl
-
withResourcesFolderUrl
public EducationModule withResourcesFolderUrl(String resourcesFolderUrl)
Returns an immutable copy ofthiswith just theresourcesFolderUrlfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
resourcesFolderUrl- new value ofresourcesFolderUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresourcesFolderUrlfield changed
-
getStatus
public Optional<EducationModuleStatus> getStatus()
Org.OData.Core.V1.Computed
true
- Returns:
- property status
-
withStatus
public EducationModule withStatus(EducationModuleStatus status)
Returns an immutable copy ofthiswith just thestatusfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUnmappedField
public EducationModule withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getResources
public EducationModuleResourceCollectionRequest getResources()
-
withResources
public EducationModule withResources(List<EducationModuleResource> resources)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public EducationModule patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public EducationModule 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.ActionRequestReturningNonCollectionUnwrapped<EducationModule> publish()
-
setUpResourcesFolder
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<EducationModule> setUpResourcesFolder()
-
pin
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<EducationModule> pin()
-
unpin
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<EducationModule> unpin()
-
-