Package odata.msgraph.client.beta.entity
Class ComanagementEligibleDevice
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ComanagementEligibleDevice
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ComanagementEligibleDevice extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Device Co-Management eligibility state”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComanagementEligibleDevice.Builder
-
Field Summary
Fields Modifier and Type Field Description protected DeviceRegistrationStateclientRegistrationStatusprotected StringdeviceNameprotected DeviceTypedeviceTypeprotected IntegerentitySourceprotected ManagementAgentTypemanagementAgentsprotected ManagementStatemanagementStateprotected Stringmanufacturerprotected StringmdmStatusprotected Stringmodelprotected StringosDescriptionprotected StringosVersionprotected OwnerTypeownerTypeprotected StringreferenceIdprotected StringserialNumberprotected ComanagementEligibleTypestatusprotected Stringupnprotected StringuserEmailprotected StringuserIdprotected StringuserName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedComanagementEligibleDevice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComanagementEligibleDevice.BuilderbuilderComanagementEligibleDevice()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<DeviceRegistrationState>getClientRegistrationStatus()“ClientRegistrationStatus”Optional<String>getDeviceName()“DeviceName”Optional<DeviceType>getDeviceType()“DeviceType”Optional<Integer>getEntitySource()“EntitySource”Optional<ManagementAgentType>getManagementAgents()“ManagementAgents”Optional<ManagementState>getManagementState()“ManagementState”Optional<String>getManufacturer()“Manufacturer”Optional<String>getMdmStatus()“MDMStatus”Optional<String>getModel()“Model”Optional<String>getOsDescription()“OSDescription”Optional<String>getOsVersion()“OSVersion”Optional<OwnerType>getOwnerType()“OwnerType”Optional<String>getReferenceId()“ReferenceId”Optional<String>getSerialNumber()“SerialNumber”Optional<ComanagementEligibleType>getStatus()“ComanagementEligibleStatus”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUpn()“UPN”Optional<String>getUserEmail()“UserEmail”Optional<String>getUserId()“UserId”Optional<String>getUserName()“UserName”StringodataTypeName()ComanagementEligibleDevicepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ComanagementEligibleDeviceput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ComanagementEligibleDevicewithClientRegistrationStatus(DeviceRegistrationState clientRegistrationStatus)Returns an immutable copy ofthiswith just theclientRegistrationStatusfield changed.ComanagementEligibleDevicewithDeviceName(String deviceName)Returns an immutable copy ofthiswith just thedeviceNamefield changed.ComanagementEligibleDevicewithDeviceType(DeviceType deviceType)Returns an immutable copy ofthiswith just thedeviceTypefield changed.ComanagementEligibleDevicewithEntitySource(Integer entitySource)Returns an immutable copy ofthiswith just theentitySourcefield changed.ComanagementEligibleDevicewithManagementAgents(ManagementAgentType managementAgents)Returns an immutable copy ofthiswith just themanagementAgentsfield changed.ComanagementEligibleDevicewithManagementState(ManagementState managementState)Returns an immutable copy ofthiswith just themanagementStatefield changed.ComanagementEligibleDevicewithManufacturer(String manufacturer)Returns an immutable copy ofthiswith just themanufacturerfield changed.ComanagementEligibleDevicewithMdmStatus(String mdmStatus)Returns an immutable copy ofthiswith just themdmStatusfield changed.ComanagementEligibleDevicewithModel(String model)Returns an immutable copy ofthiswith just themodelfield changed.ComanagementEligibleDevicewithOsDescription(String osDescription)Returns an immutable copy ofthiswith just theosDescriptionfield changed.ComanagementEligibleDevicewithOsVersion(String osVersion)Returns an immutable copy ofthiswith just theosVersionfield changed.ComanagementEligibleDevicewithOwnerType(OwnerType ownerType)Returns an immutable copy ofthiswith just theownerTypefield changed.ComanagementEligibleDevicewithReferenceId(String referenceId)Returns an immutable copy ofthiswith just thereferenceIdfield changed.ComanagementEligibleDevicewithSerialNumber(String serialNumber)Returns an immutable copy ofthiswith just theserialNumberfield changed.ComanagementEligibleDevicewithStatus(ComanagementEligibleType status)Returns an immutable copy ofthiswith just thestatusfield changed.ComanagementEligibleDevicewithUnmappedField(String name, String value)ComanagementEligibleDevicewithUpn(String upn)Returns an immutable copy ofthiswith just theupnfield changed.ComanagementEligibleDevicewithUserEmail(String userEmail)Returns an immutable copy ofthiswith just theuserEmailfield changed.ComanagementEligibleDevicewithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.ComanagementEligibleDevicewithUserName(String userName)Returns an immutable copy ofthiswith just theuserNamefield changed.
-
-
-
Field Detail
-
clientRegistrationStatus
protected DeviceRegistrationState clientRegistrationStatus
-
deviceName
protected String deviceName
-
deviceType
protected DeviceType deviceType
-
entitySource
protected Integer entitySource
-
managementAgents
protected ManagementAgentType managementAgents
-
managementState
protected ManagementState managementState
-
manufacturer
protected String manufacturer
-
mdmStatus
protected String mdmStatus
-
model
protected String model
-
osDescription
protected String osDescription
-
osVersion
protected String osVersion
-
ownerType
protected OwnerType ownerType
-
referenceId
protected String referenceId
-
serialNumber
protected String serialNumber
-
status
protected ComanagementEligibleType status
-
upn
protected String upn
-
userEmail
protected String userEmail
-
userId
protected String userId
-
userName
protected String userName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderComanagementEligibleDevice
public static ComanagementEligibleDevice.Builder builderComanagementEligibleDevice()
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
-
getClientRegistrationStatus
public Optional<DeviceRegistrationState> getClientRegistrationStatus()
“ClientRegistrationStatus”- Returns:
- property clientRegistrationStatus
-
withClientRegistrationStatus
public ComanagementEligibleDevice withClientRegistrationStatus(DeviceRegistrationState clientRegistrationStatus)
Returns an immutable copy ofthiswith just theclientRegistrationStatusfield 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.“ClientRegistrationStatus”
- Parameters:
clientRegistrationStatus- new value ofclientRegistrationStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theclientRegistrationStatusfield changed
-
withDeviceName
public ComanagementEligibleDevice 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.“DeviceName”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
getDeviceType
public Optional<DeviceType> getDeviceType()
“DeviceType”- Returns:
- property deviceType
-
withDeviceType
public ComanagementEligibleDevice withDeviceType(DeviceType 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.“DeviceType”
- Parameters:
deviceType- new value ofdeviceTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceTypefield changed
-
getEntitySource
public Optional<Integer> getEntitySource()
“EntitySource”- Returns:
- property entitySource
-
withEntitySource
public ComanagementEligibleDevice withEntitySource(Integer entitySource)
Returns an immutable copy ofthiswith just theentitySourcefield 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.“EntitySource”
- Parameters:
entitySource- new value ofentitySourcefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theentitySourcefield changed
-
getManagementAgents
public Optional<ManagementAgentType> getManagementAgents()
“ManagementAgents”- Returns:
- property managementAgents
-
withManagementAgents
public ComanagementEligibleDevice withManagementAgents(ManagementAgentType managementAgents)
Returns an immutable copy ofthiswith just themanagementAgentsfield 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.“ManagementAgents”
- Parameters:
managementAgents- new value ofmanagementAgentsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagementAgentsfield changed
-
getManagementState
public Optional<ManagementState> getManagementState()
“ManagementState”- Returns:
- property managementState
-
withManagementState
public ComanagementEligibleDevice withManagementState(ManagementState managementState)
Returns an immutable copy ofthiswith just themanagementStatefield 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.“ManagementState”
- Parameters:
managementState- new value ofmanagementStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagementStatefield changed
-
getManufacturer
public Optional<String> getManufacturer()
“Manufacturer”- Returns:
- property manufacturer
-
withManufacturer
public ComanagementEligibleDevice withManufacturer(String manufacturer)
Returns an immutable copy ofthiswith just themanufacturerfield 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.“Manufacturer”
- Parameters:
manufacturer- new value ofmanufacturerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanufacturerfield changed
-
withMdmStatus
public ComanagementEligibleDevice withMdmStatus(String mdmStatus)
Returns an immutable copy ofthiswith just themdmStatusfield 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.“MDMStatus”
- Parameters:
mdmStatus- new value ofmdmStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themdmStatusfield changed
-
withModel
public ComanagementEligibleDevice withModel(String model)
Returns an immutable copy ofthiswith just themodelfield 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.“Model”
- Parameters:
model- new value ofmodelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themodelfield changed
-
getOsDescription
public Optional<String> getOsDescription()
“OSDescription”- Returns:
- property osDescription
-
withOsDescription
public ComanagementEligibleDevice withOsDescription(String osDescription)
Returns an immutable copy ofthiswith just theosDescriptionfield 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.“OSDescription”
- Parameters:
osDescription- new value ofosDescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosDescriptionfield changed
-
withOsVersion
public ComanagementEligibleDevice withOsVersion(String osVersion)
Returns an immutable copy ofthiswith just theosVersionfield 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.“OSVersion”
- Parameters:
osVersion- new value ofosVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosVersionfield changed
-
withOwnerType
public ComanagementEligibleDevice withOwnerType(OwnerType ownerType)
Returns an immutable copy ofthiswith just theownerTypefield 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.“OwnerType”
- Parameters:
ownerType- new value ofownerTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theownerTypefield changed
-
withReferenceId
public ComanagementEligibleDevice withReferenceId(String referenceId)
Returns an immutable copy ofthiswith just thereferenceIdfield 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.“ReferenceId”
- Parameters:
referenceId- new value ofreferenceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thereferenceIdfield changed
-
getSerialNumber
public Optional<String> getSerialNumber()
“SerialNumber”- Returns:
- property serialNumber
-
withSerialNumber
public ComanagementEligibleDevice withSerialNumber(String serialNumber)
Returns an immutable copy ofthiswith just theserialNumberfield 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.“SerialNumber”
- Parameters:
serialNumber- new value ofserialNumberfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theserialNumberfield changed
-
getStatus
public Optional<ComanagementEligibleType> getStatus()
“ComanagementEligibleStatus”- Returns:
- property status
-
withStatus
public ComanagementEligibleDevice withStatus(ComanagementEligibleType status)
Returns an immutable copy ofthiswith just thestatusfield 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.“ComanagementEligibleStatus”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUpn
public ComanagementEligibleDevice withUpn(String upn)
Returns an immutable copy ofthiswith just theupnfield 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.“UPN”
- Parameters:
upn- new value ofupnfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theupnfield changed
-
withUserEmail
public ComanagementEligibleDevice withUserEmail(String userEmail)
Returns an immutable copy ofthiswith just theuserEmailfield 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.“UserEmail”
- Parameters:
userEmail- new value ofuserEmailfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserEmailfield changed
-
withUserId
public ComanagementEligibleDevice 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”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
withUserName
public ComanagementEligibleDevice withUserName(String userName)
Returns an immutable copy ofthiswith just theuserNamefield 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.“UserName”
- Parameters:
userName- new value ofuserNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserNamefield changed
-
withUnmappedField
public ComanagementEligibleDevice 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 ComanagementEligibleDevice patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ComanagementEligibleDevice put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-