Package odata.msgraph.client.beta.entity
Class RichLongRunningOperation
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.LongRunningOperation
-
- odata.msgraph.client.beta.entity.RichLongRunningOperation
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class RichLongRunningOperation extends LongRunningOperation implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRichLongRunningOperation.Builder
-
Field Summary
Fields Modifier and Type Field Description protected PublicErrorerrorprotected IntegerpercentageCompleteprotected StringresourceIdprotected Stringtype-
Fields inherited from class odata.msgraph.client.beta.entity.LongRunningOperation
createdDateTime, lastActionDateTime, resourceLocation, status, statusDetail
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRichLongRunningOperation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RichLongRunningOperation.BuilderbuilderRichLongRunningOperation()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<PublicError>getError()Optional<Integer>getPercentageComplete()Optional<String>getResourceId()Optional<String>getType()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()RichLongRunningOperationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)RichLongRunningOperationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()RichLongRunningOperationwithError(PublicError error)RichLongRunningOperationwithPercentageComplete(Integer percentageComplete)RichLongRunningOperationwithResourceId(String resourceId)RichLongRunningOperationwithType(String type)RichLongRunningOperationwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.LongRunningOperation
builderLongRunningOperation, getCreatedDateTime, getLastActionDateTime, getResourceLocation, getStatus, getStatusDetail, withCreatedDateTime, withLastActionDateTime, withResourceLocation, withStatus, withStatusDetail
-
-
-
-
Field Detail
-
error
protected PublicError error
-
percentageComplete
protected Integer percentageComplete
-
resourceId
protected String resourceId
-
type
protected String type
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classLongRunningOperation
-
builderRichLongRunningOperation
public static RichLongRunningOperation.Builder builderRichLongRunningOperation()
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 classLongRunningOperation
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classLongRunningOperation
-
getError
public Optional<PublicError> getError()
-
withError
public RichLongRunningOperation withError(PublicError error)
-
withPercentageComplete
public RichLongRunningOperation withPercentageComplete(Integer percentageComplete)
-
withResourceId
public RichLongRunningOperation withResourceId(String resourceId)
-
withType
public RichLongRunningOperation withType(String type)
-
withUnmappedField
public RichLongRunningOperation withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classLongRunningOperation
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classLongRunningOperation
-
patch
public RichLongRunningOperation patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classLongRunningOperation- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public RichLongRunningOperation put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classLongRunningOperation- 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 classLongRunningOperation
-
-