Package odata.msgraph.client.beta.entity
Class WindowsInformationProtectionDeviceRegistration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.WindowsInformationProtectionDeviceRegistration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class WindowsInformationProtectionDeviceRegistration extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Represents device registration records for Bring-Your-Own-Device(BYOD) Windows devices.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsInformationProtectionDeviceRegistration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceMacAddressprotected StringdeviceNameprotected StringdeviceRegistrationIdprotected StringdeviceTypeprotected OffsetDateTimelastCheckInDateTimeprotected StringuserId-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsInformationProtectionDeviceRegistration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsInformationProtectionDeviceRegistration.BuilderbuilderWindowsInformationProtectionDeviceRegistration()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>getDeviceMacAddress()“Device Mac address.”Optional<String>getDeviceName()“Device name.”Optional<String>getDeviceRegistrationId()“Device identifier for this device registration record.”Optional<String>getDeviceType()“Device type, for example, Windows laptop VS Windows phone.”Optional<OffsetDateTime>getLastCheckInDateTime()“Last checkin time of the device.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserId()“UserId associated with this device registration record.”StringodataTypeName()WindowsInformationProtectionDeviceRegistrationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsInformationProtectionDeviceRegistrationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnwipe()WindowsInformationProtectionDeviceRegistrationwithDeviceMacAddress(String deviceMacAddress)Returns an immutable copy ofthiswith just thedeviceMacAddressfield changed.WindowsInformationProtectionDeviceRegistrationwithDeviceName(String deviceName)Returns an immutable copy ofthiswith just thedeviceNamefield changed.WindowsInformationProtectionDeviceRegistrationwithDeviceRegistrationId(String deviceRegistrationId)Returns an immutable copy ofthiswith just thedeviceRegistrationIdfield changed.WindowsInformationProtectionDeviceRegistrationwithDeviceType(String deviceType)Returns an immutable copy ofthiswith just thedeviceTypefield changed.WindowsInformationProtectionDeviceRegistrationwithLastCheckInDateTime(OffsetDateTime lastCheckInDateTime)Returns an immutable copy ofthiswith just thelastCheckInDateTimefield changed.WindowsInformationProtectionDeviceRegistrationwithUnmappedField(String name, String value)WindowsInformationProtectionDeviceRegistrationwithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderWindowsInformationProtectionDeviceRegistration
public static WindowsInformationProtectionDeviceRegistration.Builder builderWindowsInformationProtectionDeviceRegistration()
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
-
getDeviceMacAddress
public Optional<String> getDeviceMacAddress()
“Device Mac address.”- Returns:
- property deviceMacAddress
-
withDeviceMacAddress
public WindowsInformationProtectionDeviceRegistration withDeviceMacAddress(String deviceMacAddress)
Returns an immutable copy ofthiswith just thedeviceMacAddressfield 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.“Device Mac address.”
- Parameters:
deviceMacAddress- new value ofdeviceMacAddressfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceMacAddressfield changed
-
withDeviceName
public WindowsInformationProtectionDeviceRegistration withDeviceName(String deviceName)
Returns an immutable copy ofthiswith just thedeviceNamefield 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.“Device name.”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
getDeviceRegistrationId
public Optional<String> getDeviceRegistrationId()
“Device identifier for this device registration record.”- Returns:
- property deviceRegistrationId
-
withDeviceRegistrationId
public WindowsInformationProtectionDeviceRegistration withDeviceRegistrationId(String deviceRegistrationId)
Returns an immutable copy ofthiswith just thedeviceRegistrationIdfield 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.“Device identifier for this device registration record.”
- Parameters:
deviceRegistrationId- new value ofdeviceRegistrationIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceRegistrationIdfield changed
-
getDeviceType
public Optional<String> getDeviceType()
“Device type, for example, Windows laptop VS Windows phone.”- Returns:
- property deviceType
-
withDeviceType
public WindowsInformationProtectionDeviceRegistration withDeviceType(String deviceType)
Returns an immutable copy ofthiswith just thedeviceTypefield 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.“Device type, for example, Windows laptop VS Windows phone.”
- Parameters:
deviceType- new value ofdeviceTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceTypefield changed
-
getLastCheckInDateTime
public Optional<OffsetDateTime> getLastCheckInDateTime()
“Last checkin time of the device.”- Returns:
- property lastCheckInDateTime
-
withLastCheckInDateTime
public WindowsInformationProtectionDeviceRegistration withLastCheckInDateTime(OffsetDateTime lastCheckInDateTime)
Returns an immutable copy ofthiswith just thelastCheckInDateTimefield 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.“Last checkin time of the device.”
- Parameters:
lastCheckInDateTime- new value oflastCheckInDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastCheckInDateTimefield changed
-
getUserId
public Optional<String> getUserId()
“UserId associated with this device registration record.”- Returns:
- property userId
-
withUserId
public WindowsInformationProtectionDeviceRegistration withUserId(String userId)
Returns an immutable copy ofthiswith just theuserIdfield 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.“UserId associated with this device registration record.”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
withUnmappedField
public WindowsInformationProtectionDeviceRegistration withUnmappedField(String name, String 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 WindowsInformationProtectionDeviceRegistration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public WindowsInformationProtectionDeviceRegistration put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
wipe
public com.github.davidmoten.odata.client.ActionRequestNoReturn wipe()
-
-