Package odata.msgraph.client.entity
Class ProtectionUnitBase
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ProtectionUnitBase
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
DriveProtectionUnit,MailboxProtectionUnit,SiteProtectionUnit
public class ProtectionUnitBase extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Field Summary
Fields Modifier and Type Field Description protected IdentitySetcreatedByprotected OffsetDateTimecreatedDateTimeprotected PublicErrorerrorprotected IdentitySetlastModifiedByprotected OffsetDateTimelastModifiedDateTimeprotected StringpolicyIdprotected ProtectionUnitStatusstatus-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProtectionUnitBase()
-
Method Summary
-
-
-
Field Detail
-
createdBy
protected IdentitySet createdBy
-
createdDateTime
protected OffsetDateTime createdDateTime
-
error
protected PublicError error
-
lastModifiedBy
protected IdentitySet lastModifiedBy
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
policyId
protected String policyId
-
status
protected ProtectionUnitStatus status
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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()
-
withCreatedBy
public ProtectionUnitBase withCreatedBy(IdentitySet createdBy)
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
-
withCreatedDateTime
public ProtectionUnitBase withCreatedDateTime(OffsetDateTime createdDateTime)
-
getError
public Optional<PublicError> getError()
-
withError
public ProtectionUnitBase withError(PublicError error)
-
getLastModifiedBy
public Optional<IdentitySet> getLastModifiedBy()
-
withLastModifiedBy
public ProtectionUnitBase withLastModifiedBy(IdentitySet lastModifiedBy)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public ProtectionUnitBase withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withPolicyId
public ProtectionUnitBase withPolicyId(String policyId)
-
getStatus
public Optional<ProtectionUnitStatus> getStatus()
-
withStatus
public ProtectionUnitBase withStatus(ProtectionUnitStatus status)
-
withUnmappedField
public ProtectionUnitBase withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public ProtectionUnitBase patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ProtectionUnitBase put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-