Package odata.msgraph.client.entity
Class MailboxProtectionUnit
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ProtectionUnitBase
-
- odata.msgraph.client.entity.MailboxProtectionUnit
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MailboxProtectionUnit extends ProtectionUnitBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMailboxProtectionUnit.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdirectoryObjectIdprotected StringdisplayNameprotected Stringemail-
Fields inherited from class odata.msgraph.client.entity.ProtectionUnitBase
createdBy, createdDateTime, error, lastModifiedBy, lastModifiedDateTime, policyId, status
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMailboxProtectionUnit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MailboxProtectionUnit.BuilderbuilderMailboxProtectionUnit()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<String>getDirectoryObjectId()Optional<String>getDisplayName()Org.OData.Core.V1.ComputedOptional<String>getEmail()Org.OData.Core.V1.Computedcom.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()MailboxProtectionUnitpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MailboxProtectionUnitput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MailboxProtectionUnitwithDirectoryObjectId(String directoryObjectId)MailboxProtectionUnitwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.MailboxProtectionUnitwithEmail(String email)Returns an immutable copy ofthiswith just theemailfield changed.MailboxProtectionUnitwithUnmappedField(String name, Object value)-
Methods inherited from class odata.msgraph.client.entity.ProtectionUnitBase
getCreatedBy, getCreatedDateTime, getError, getLastModifiedBy, getLastModifiedDateTime, getPolicyId, getStatus, withCreatedBy, withCreatedDateTime, withError, withLastModifiedBy, withLastModifiedDateTime, withPolicyId, withStatus
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classProtectionUnitBase
-
builderMailboxProtectionUnit
public static MailboxProtectionUnit.Builder builderMailboxProtectionUnit()
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 classProtectionUnitBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classProtectionUnitBase
-
withDirectoryObjectId
public MailboxProtectionUnit withDirectoryObjectId(String directoryObjectId)
-
getDisplayName
public Optional<String> getDisplayName()
Org.OData.Core.V1.Computed
true
- Returns:
- property displayName
-
withDisplayName
public MailboxProtectionUnit withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
withEmail
public MailboxProtectionUnit withEmail(String email)
Returns an immutable copy ofthiswith just theemailfield 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:
email- new value ofemailfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theemailfield changed
-
withUnmappedField
public MailboxProtectionUnit withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classProtectionUnitBase
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classProtectionUnitBase
-
patch
public MailboxProtectionUnit patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classProtectionUnitBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public MailboxProtectionUnit put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classProtectionUnitBase- 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 classProtectionUnitBase
-
-