Package odata.msgraph.client.entity
Class Workbook
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.Workbook
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Workbook extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkbook.Builder
-
Field Summary
Fields Modifier and Type Field Description protected WorkbookApplicationapplicationprotected List<WorkbookComment>commentsprotected WorkbookFunctionsfunctionsprotected List<WorkbookNamedItem>namesprotected List<WorkbookOperation>operationsprotected List<WorkbookTable>tablesprotected List<WorkbookWorksheet>worksheets-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWorkbook()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Workbook.BuilderbuilderWorkbook()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.ActionRequestNoReturncloseSession()com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<WorkbookSessionInfo>createSession(Boolean persistChanges)WorkbookApplicationRequestgetApplication()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()WorkbookCommentCollectionRequestgetComments()WorkbookFunctionsRequestgetFunctions()WorkbookNamedItemCollectionRequestgetNames()WorkbookOperationCollectionRequestgetOperations()Org.OData.Capabilities.V1.CountRestrictionsWorkbookTableCollectionRequestgetTables()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()WorkbookWorksheetCollectionRequestgetWorksheets()StringodataTypeName()Workbookpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Workbookput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnrefreshSession()com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<WorkbookSessionInfo>sessionInfoResource(String key)com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<WorkbookTableRow>tableRowOperationResult(String key)StringtoString()WorkbookwithApplication(WorkbookApplication application)WorkbookwithComments(List<WorkbookComment> comments)WorkbookwithFunctions(WorkbookFunctions functions)WorkbookwithNames(List<WorkbookNamedItem> names)WorkbookwithOperations(List<WorkbookOperation> operations)Returns an immutable copy ofthiswith just theoperationsfield changed.WorkbookwithTables(List<WorkbookTable> tables)WorkbookwithUnmappedField(String name, Object value)WorkbookwithWorksheets(List<WorkbookWorksheet> worksheets)
-
-
-
Field Detail
-
application
protected WorkbookApplication application
-
comments
protected List<WorkbookComment> comments
-
functions
protected WorkbookFunctions functions
-
names
protected List<WorkbookNamedItem> names
-
operations
protected List<WorkbookOperation> operations
-
tables
protected List<WorkbookTable> tables
-
worksheets
protected List<WorkbookWorksheet> worksheets
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderWorkbook
public static Workbook.Builder builderWorkbook()
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
-
withUnmappedField
public Workbook withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getApplication
public WorkbookApplicationRequest getApplication()
-
getComments
public WorkbookCommentCollectionRequest getComments()
-
getFunctions
public WorkbookFunctionsRequest getFunctions()
-
getNames
public WorkbookNamedItemCollectionRequest getNames()
-
getOperations
public WorkbookOperationCollectionRequest getOperations()
Org.OData.Capabilities.V1.CountRestrictions
Countable = false
Org.OData.Capabilities.V1.FilterRestrictions
Filterable = false
Org.OData.Capabilities.V1.SkipSupported
false
Org.OData.Capabilities.V1.TopSupported
false
- Returns:
- navigational property operations
-
getTables
public WorkbookTableCollectionRequest getTables()
-
getWorksheets
public WorkbookWorksheetCollectionRequest getWorksheets()
-
withApplication
public Workbook withApplication(WorkbookApplication application)
-
withComments
public Workbook withComments(List<WorkbookComment> comments)
-
withFunctions
public Workbook withFunctions(WorkbookFunctions functions)
-
withNames
public Workbook withNames(List<WorkbookNamedItem> names)
-
withOperations
public Workbook withOperations(List<WorkbookOperation> operations)
Returns an immutable copy ofthiswith just theoperationsfield 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.Capabilities.V1.CountRestrictions
Countable = false
Org.OData.Capabilities.V1.FilterRestrictions
Filterable = false
Org.OData.Capabilities.V1.SkipSupported
false
Org.OData.Capabilities.V1.TopSupported
false
- Parameters:
operations- new value ofoperationsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoperationsfield changed
-
withTables
public Workbook withTables(List<WorkbookTable> tables)
-
withWorksheets
public Workbook withWorksheets(List<WorkbookWorksheet> worksheets)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public Workbook patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Workbook put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
closeSession
public com.github.davidmoten.odata.client.ActionRequestNoReturn closeSession()
-
createSession
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<WorkbookSessionInfo> createSession(Boolean persistChanges)
-
refreshSession
public com.github.davidmoten.odata.client.ActionRequestNoReturn refreshSession()
-
sessionInfoResource
public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<WorkbookSessionInfo> sessionInfoResource(String key)
-
tableRowOperationResult
public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<WorkbookTableRow> tableRowOperationResult(String key)
-
-