Package odata.msgraph.client.entity
Class WindowsAutopilotDeviceIdentity
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.WindowsAutopilotDeviceIdentity
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class WindowsAutopilotDeviceIdentity extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The windowsAutopilotDeviceIdentity resource represents a Windows Autopilot Device.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsAutopilotDeviceIdentity.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringaddressableUserNameprotected StringazureActiveDirectoryDeviceIdprotected StringdisplayNameprotected EnrollmentStateenrollmentStateprotected StringgroupTagprotected OffsetDateTimelastContactedDateTimeprotected StringmanagedDeviceIdprotected Stringmanufacturerprotected Stringmodelprotected StringproductKeyprotected StringpurchaseOrderIdentifierprotected StringresourceNameprotected StringserialNumberprotected StringskuNumberprotected StringsystemFamilyprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsAutopilotDeviceIdentity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.ActionRequestNoReturnassignUserToDevice(String userPrincipalName, String addressableUserName)static WindowsAutopilotDeviceIdentity.BuilderbuilderWindowsAutopilotDeviceIdentity()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAddressableUserName()“Addressable user name.”Optional<String>getAzureActiveDirectoryDeviceId()“AAD Device ID - to be deprecated”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDisplayName()“Display Name”Optional<EnrollmentState>getEnrollmentState()“Intune enrollment state of the Windows autopilot device.”Optional<String>getGroupTag()“Group Tag of the Windows autopilot device.”Optional<OffsetDateTime>getLastContactedDateTime()“Intune Last Contacted Date Time of the Windows autopilot device.”Optional<String>getManagedDeviceId()“Managed Device ID”Optional<String>getManufacturer()“Oem manufacturer of the Windows autopilot device.”Optional<String>getModel()“Model name of the Windows autopilot device.”Optional<String>getProductKey()“Product Key of the Windows autopilot device.”Optional<String>getPurchaseOrderIdentifier()“Purchase Order Identifier of the Windows autopilot device.”Optional<String>getResourceName()“Resource Name.”Optional<String>getSerialNumber()“Serial number of the Windows autopilot device.”Optional<String>getSkuNumber()“SKU Number”Optional<String>getSystemFamily()“System Family”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserPrincipalName()“User Principal Name.”StringodataTypeName()WindowsAutopilotDeviceIdentitypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsAutopilotDeviceIdentityput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnunassignUserFromDevice()com.github.davidmoten.odata.client.ActionRequestNoReturnupdateDeviceProperties(String userPrincipalName, String addressableUserName, String groupTag, String displayName)WindowsAutopilotDeviceIdentitywithAddressableUserName(String addressableUserName)Returns an immutable copy ofthiswith just theaddressableUserNamefield changed.WindowsAutopilotDeviceIdentitywithAzureActiveDirectoryDeviceId(String azureActiveDirectoryDeviceId)Returns an immutable copy ofthiswith just theazureActiveDirectoryDeviceIdfield changed.WindowsAutopilotDeviceIdentitywithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.WindowsAutopilotDeviceIdentitywithEnrollmentState(EnrollmentState enrollmentState)Returns an immutable copy ofthiswith just theenrollmentStatefield changed.WindowsAutopilotDeviceIdentitywithGroupTag(String groupTag)Returns an immutable copy ofthiswith just thegroupTagfield changed.WindowsAutopilotDeviceIdentitywithLastContactedDateTime(OffsetDateTime lastContactedDateTime)Returns an immutable copy ofthiswith just thelastContactedDateTimefield changed.WindowsAutopilotDeviceIdentitywithManagedDeviceId(String managedDeviceId)Returns an immutable copy ofthiswith just themanagedDeviceIdfield changed.WindowsAutopilotDeviceIdentitywithManufacturer(String manufacturer)Returns an immutable copy ofthiswith just themanufacturerfield changed.WindowsAutopilotDeviceIdentitywithModel(String model)Returns an immutable copy ofthiswith just themodelfield changed.WindowsAutopilotDeviceIdentitywithProductKey(String productKey)Returns an immutable copy ofthiswith just theproductKeyfield changed.WindowsAutopilotDeviceIdentitywithPurchaseOrderIdentifier(String purchaseOrderIdentifier)Returns an immutable copy ofthiswith just thepurchaseOrderIdentifierfield changed.WindowsAutopilotDeviceIdentitywithResourceName(String resourceName)Returns an immutable copy ofthiswith just theresourceNamefield changed.WindowsAutopilotDeviceIdentitywithSerialNumber(String serialNumber)Returns an immutable copy ofthiswith just theserialNumberfield changed.WindowsAutopilotDeviceIdentitywithSkuNumber(String skuNumber)Returns an immutable copy ofthiswith just theskuNumberfield changed.WindowsAutopilotDeviceIdentitywithSystemFamily(String systemFamily)Returns an immutable copy ofthiswith just thesystemFamilyfield changed.WindowsAutopilotDeviceIdentitywithUnmappedField(String name, Object value)WindowsAutopilotDeviceIdentitywithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Field Detail
-
addressableUserName
protected String addressableUserName
-
azureActiveDirectoryDeviceId
protected String azureActiveDirectoryDeviceId
-
displayName
protected String displayName
-
enrollmentState
protected EnrollmentState enrollmentState
-
groupTag
protected String groupTag
-
lastContactedDateTime
protected OffsetDateTime lastContactedDateTime
-
managedDeviceId
protected String managedDeviceId
-
manufacturer
protected String manufacturer
-
model
protected String model
-
productKey
protected String productKey
-
purchaseOrderIdentifier
protected String purchaseOrderIdentifier
-
resourceName
protected String resourceName
-
serialNumber
protected String serialNumber
-
skuNumber
protected String skuNumber
-
systemFamily
protected String systemFamily
-
userPrincipalName
protected String userPrincipalName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderWindowsAutopilotDeviceIdentity
public static WindowsAutopilotDeviceIdentity.Builder builderWindowsAutopilotDeviceIdentity()
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
-
getAddressableUserName
public Optional<String> getAddressableUserName()
“Addressable user name.”- Returns:
- property addressableUserName
-
withAddressableUserName
public WindowsAutopilotDeviceIdentity withAddressableUserName(String addressableUserName)
Returns an immutable copy ofthiswith just theaddressableUserNamefield 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.“Addressable user name.”
- Parameters:
addressableUserName- new value ofaddressableUserNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaddressableUserNamefield changed
-
getAzureActiveDirectoryDeviceId
public Optional<String> getAzureActiveDirectoryDeviceId()
“AAD Device ID - to be deprecated”- Returns:
- property azureActiveDirectoryDeviceId
-
withAzureActiveDirectoryDeviceId
public WindowsAutopilotDeviceIdentity withAzureActiveDirectoryDeviceId(String azureActiveDirectoryDeviceId)
Returns an immutable copy ofthiswith just theazureActiveDirectoryDeviceIdfield 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.“AAD Device ID - to be deprecated”
- Parameters:
azureActiveDirectoryDeviceId- new value ofazureActiveDirectoryDeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theazureActiveDirectoryDeviceIdfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Display Name”- Returns:
- property displayName
-
withDisplayName
public WindowsAutopilotDeviceIdentity 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.“Display Name”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getEnrollmentState
public Optional<EnrollmentState> getEnrollmentState()
“Intune enrollment state of the Windows autopilot device.”- Returns:
- property enrollmentState
-
withEnrollmentState
public WindowsAutopilotDeviceIdentity withEnrollmentState(EnrollmentState enrollmentState)
Returns an immutable copy ofthiswith just theenrollmentStatefield 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.“Intune enrollment state of the Windows autopilot device.”
- Parameters:
enrollmentState- new value ofenrollmentStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenrollmentStatefield changed
-
getGroupTag
public Optional<String> getGroupTag()
“Group Tag of the Windows autopilot device.”- Returns:
- property groupTag
-
withGroupTag
public WindowsAutopilotDeviceIdentity withGroupTag(String groupTag)
Returns an immutable copy ofthiswith just thegroupTagfield 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.“Group Tag of the Windows autopilot device.”
- Parameters:
groupTag- new value ofgroupTagfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegroupTagfield changed
-
getLastContactedDateTime
public Optional<OffsetDateTime> getLastContactedDateTime()
“Intune Last Contacted Date Time of the Windows autopilot device.”- Returns:
- property lastContactedDateTime
-
withLastContactedDateTime
public WindowsAutopilotDeviceIdentity withLastContactedDateTime(OffsetDateTime lastContactedDateTime)
Returns an immutable copy ofthiswith just thelastContactedDateTimefield 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.“Intune Last Contacted Date Time of the Windows autopilot device.”
- Parameters:
lastContactedDateTime- new value oflastContactedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastContactedDateTimefield changed
-
getManagedDeviceId
public Optional<String> getManagedDeviceId()
“Managed Device ID”- Returns:
- property managedDeviceId
-
withManagedDeviceId
public WindowsAutopilotDeviceIdentity withManagedDeviceId(String managedDeviceId)
Returns an immutable copy ofthiswith just themanagedDeviceIdfield 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.“Managed Device ID”
- Parameters:
managedDeviceId- new value ofmanagedDeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagedDeviceIdfield changed
-
getManufacturer
public Optional<String> getManufacturer()
“Oem manufacturer of the Windows autopilot device.”- Returns:
- property manufacturer
-
withManufacturer
public WindowsAutopilotDeviceIdentity 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.“Oem manufacturer of the Windows autopilot device.”
- Parameters:
manufacturer- new value ofmanufacturerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanufacturerfield changed
-
getModel
public Optional<String> getModel()
“Model name of the Windows autopilot device.”- Returns:
- property model
-
withModel
public WindowsAutopilotDeviceIdentity 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 name of the Windows autopilot device.”
- Parameters:
model- new value ofmodelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themodelfield changed
-
getProductKey
public Optional<String> getProductKey()
“Product Key of the Windows autopilot device.”- Returns:
- property productKey
-
withProductKey
public WindowsAutopilotDeviceIdentity withProductKey(String productKey)
Returns an immutable copy ofthiswith just theproductKeyfield 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.“Product Key of the Windows autopilot device.”
- Parameters:
productKey- new value ofproductKeyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproductKeyfield changed
-
getPurchaseOrderIdentifier
public Optional<String> getPurchaseOrderIdentifier()
“Purchase Order Identifier of the Windows autopilot device.”- Returns:
- property purchaseOrderIdentifier
-
withPurchaseOrderIdentifier
public WindowsAutopilotDeviceIdentity withPurchaseOrderIdentifier(String purchaseOrderIdentifier)
Returns an immutable copy ofthiswith just thepurchaseOrderIdentifierfield 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.“Purchase Order Identifier of the Windows autopilot device.”
- Parameters:
purchaseOrderIdentifier- new value ofpurchaseOrderIdentifierfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepurchaseOrderIdentifierfield changed
-
getResourceName
public Optional<String> getResourceName()
“Resource Name.”- Returns:
- property resourceName
-
withResourceName
public WindowsAutopilotDeviceIdentity withResourceName(String resourceName)
Returns an immutable copy ofthiswith just theresourceNamefield 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.“Resource Name.”
- Parameters:
resourceName- new value ofresourceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresourceNamefield changed
-
getSerialNumber
public Optional<String> getSerialNumber()
“Serial number of the Windows autopilot device.”- Returns:
- property serialNumber
-
withSerialNumber
public WindowsAutopilotDeviceIdentity 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.“Serial number of the Windows autopilot device.”
- Parameters:
serialNumber- new value ofserialNumberfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theserialNumberfield changed
-
withSkuNumber
public WindowsAutopilotDeviceIdentity withSkuNumber(String skuNumber)
Returns an immutable copy ofthiswith just theskuNumberfield 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.“SKU Number”
- Parameters:
skuNumber- new value ofskuNumberfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theskuNumberfield changed
-
getSystemFamily
public Optional<String> getSystemFamily()
“System Family”- Returns:
- property systemFamily
-
withSystemFamily
public WindowsAutopilotDeviceIdentity withSystemFamily(String systemFamily)
Returns an immutable copy ofthiswith just thesystemFamilyfield 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.“System Family”
- Parameters:
systemFamily- new value ofsystemFamilyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesystemFamilyfield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“User Principal Name.”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public WindowsAutopilotDeviceIdentity withUserPrincipalName(String userPrincipalName)
Returns an immutable copy ofthiswith just theuserPrincipalNamefield 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.“User Principal Name.”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public WindowsAutopilotDeviceIdentity 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 WindowsAutopilotDeviceIdentity patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public WindowsAutopilotDeviceIdentity put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
assignUserToDevice
public com.github.davidmoten.odata.client.ActionRequestNoReturn assignUserToDevice(String userPrincipalName, String addressableUserName)
-
unassignUserFromDevice
public com.github.davidmoten.odata.client.ActionRequestNoReturn unassignUserFromDevice()
-
updateDeviceProperties
public com.github.davidmoten.odata.client.ActionRequestNoReturn updateDeviceProperties(String userPrincipalName, String addressableUserName, String groupTag, String displayName)
-
-