Package odata.msgraph.client.beta.entity
Class PlannerPlan
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.PlannerDelta
-
- odata.msgraph.client.beta.entity.PlannerPlan
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class PlannerPlan extends PlannerDelta implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlannerPlan.Builder
-
Field Summary
Fields Modifier and Type Field Description protected PlannerPlanContainercontainerprotected PlannerPlanContextCollectioncontextsprotected IdentitySetcreatedByprotected OffsetDateTimecreatedDateTimeprotected Stringownerprotected Stringtitle-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlannerPlan()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PlannerPlan.BuilderbuilderPlannerPlan()Returns a builder which is used to create a new instance of this class (given that this class is immutable).PlannerBucketCollectionRequestgetBuckets()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<PlannerPlanContainer>getContainer()Optional<PlannerPlanContextCollection>getContexts()Optional<IdentitySet>getCreatedBy()Optional<OffsetDateTime>getCreatedDateTime()PlannerPlanDetailsRequestgetDetails()Optional<String>getOwner()Org.OData.Core.V1.RevisionsPlannerTaskCollectionRequestgetTasks()Optional<String>getTitle()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()PlannerPlanpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)PlannerPlanput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()PlannerPlanwithContainer(PlannerPlanContainer container)PlannerPlanwithContexts(PlannerPlanContextCollection contexts)PlannerPlanwithCreatedBy(IdentitySet createdBy)PlannerPlanwithCreatedDateTime(OffsetDateTime createdDateTime)PlannerPlanwithOwner(String owner)Returns an immutable copy ofthiswith just theownerfield changed.PlannerPlanwithTitle(String title)PlannerPlanwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.PlannerDelta
builderPlannerDelta
-
-
-
-
Field Detail
-
container
protected PlannerPlanContainer container
-
contexts
protected PlannerPlanContextCollection contexts
-
createdBy
protected IdentitySet createdBy
-
createdDateTime
protected OffsetDateTime createdDateTime
-
owner
protected String owner
-
title
protected String title
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classPlannerDelta
-
builderPlannerPlan
public static PlannerPlan.Builder builderPlannerPlan()
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 classPlannerDelta
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classPlannerDelta
-
getContainer
public Optional<PlannerPlanContainer> getContainer()
-
withContainer
public PlannerPlan withContainer(PlannerPlanContainer container)
-
getContexts
public Optional<PlannerPlanContextCollection> getContexts()
-
withContexts
public PlannerPlan withContexts(PlannerPlanContextCollection contexts)
-
getCreatedBy
public Optional<IdentitySet> getCreatedBy()
-
withCreatedBy
public PlannerPlan withCreatedBy(IdentitySet createdBy)
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
-
withCreatedDateTime
public PlannerPlan withCreatedDateTime(OffsetDateTime createdDateTime)
-
withOwner
public PlannerPlan withOwner(String owner)
Returns an immutable copy ofthiswith just theownerfield 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.Revisions
- Parameters:
owner- new value ofownerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theownerfield changed
-
withTitle
public PlannerPlan withTitle(String title)
-
withUnmappedField
public PlannerPlan withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classPlannerDelta
-
getBuckets
public PlannerBucketCollectionRequest getBuckets()
-
getDetails
public PlannerPlanDetailsRequest getDetails()
-
getTasks
public PlannerTaskCollectionRequest getTasks()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classPlannerDelta
-
patch
public PlannerPlan patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classPlannerDelta- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public PlannerPlan put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classPlannerDelta- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classPlannerDelta
-
-