Package odata.msgraph.client.entity
Class ImportedWindowsAutopilotDeviceIdentity
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ImportedWindowsAutopilotDeviceIdentity
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ImportedWindowsAutopilotDeviceIdentity extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Imported windows autopilot devices.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImportedWindowsAutopilotDeviceIdentity.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringassignedUserPrincipalNameprotected StringgroupTagprotected byte[]hardwareIdentifierprotected StringimportIdprotected StringproductKeyprotected StringserialNumberprotected ImportedWindowsAutopilotDeviceIdentityStatestate-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedImportedWindowsAutopilotDeviceIdentity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImportedWindowsAutopilotDeviceIdentity.BuilderbuilderImportedWindowsAutopilotDeviceIdentity()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAssignedUserPrincipalName()“UPN of the user the device will be assigned”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getGroupTag()“Group Tag of the Windows autopilot device.”Optional<byte[]>getHardwareIdentifier()“Hardware Blob of the Windows autopilot device.”Optional<String>getImportId()“The Import Id of the Windows autopilot device.”Optional<String>getProductKey()“Product Key of the Windows autopilot device.”Optional<String>getSerialNumber()“Serial number of the Windows autopilot device.”Optional<ImportedWindowsAutopilotDeviceIdentityState>getState()“Current state of the imported device.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ImportedWindowsAutopilotDeviceIdentitypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ImportedWindowsAutopilotDeviceIdentityput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ImportedWindowsAutopilotDeviceIdentitywithAssignedUserPrincipalName(String assignedUserPrincipalName)Returns an immutable copy ofthiswith just theassignedUserPrincipalNamefield changed.ImportedWindowsAutopilotDeviceIdentitywithGroupTag(String groupTag)Returns an immutable copy ofthiswith just thegroupTagfield changed.ImportedWindowsAutopilotDeviceIdentitywithHardwareIdentifier(byte[] hardwareIdentifier)Returns an immutable copy ofthiswith just thehardwareIdentifierfield changed.ImportedWindowsAutopilotDeviceIdentitywithImportId(String importId)Returns an immutable copy ofthiswith just theimportIdfield changed.ImportedWindowsAutopilotDeviceIdentitywithProductKey(String productKey)Returns an immutable copy ofthiswith just theproductKeyfield changed.ImportedWindowsAutopilotDeviceIdentitywithSerialNumber(String serialNumber)Returns an immutable copy ofthiswith just theserialNumberfield changed.ImportedWindowsAutopilotDeviceIdentitywithState(ImportedWindowsAutopilotDeviceIdentityState state)Returns an immutable copy ofthiswith just thestatefield changed.ImportedWindowsAutopilotDeviceIdentitywithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
assignedUserPrincipalName
protected String assignedUserPrincipalName
-
groupTag
protected String groupTag
-
hardwareIdentifier
protected byte[] hardwareIdentifier
-
importId
protected String importId
-
productKey
protected String productKey
-
serialNumber
protected String serialNumber
-
state
protected ImportedWindowsAutopilotDeviceIdentityState state
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderImportedWindowsAutopilotDeviceIdentity
public static ImportedWindowsAutopilotDeviceIdentity.Builder builderImportedWindowsAutopilotDeviceIdentity()
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
-
getAssignedUserPrincipalName
public Optional<String> getAssignedUserPrincipalName()
“UPN of the user the device will be assigned”- Returns:
- property assignedUserPrincipalName
-
withAssignedUserPrincipalName
public ImportedWindowsAutopilotDeviceIdentity withAssignedUserPrincipalName(String assignedUserPrincipalName)
Returns an immutable copy ofthiswith just theassignedUserPrincipalNamefield 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 of the user the device will be assigned”
- Parameters:
assignedUserPrincipalName- new value ofassignedUserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theassignedUserPrincipalNamefield changed
-
getGroupTag
public Optional<String> getGroupTag()
“Group Tag of the Windows autopilot device.”- Returns:
- property groupTag
-
withGroupTag
public ImportedWindowsAutopilotDeviceIdentity 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
-
getHardwareIdentifier
public Optional<byte[]> getHardwareIdentifier()
“Hardware Blob of the Windows autopilot device.”- Returns:
- property hardwareIdentifier
-
withHardwareIdentifier
public ImportedWindowsAutopilotDeviceIdentity withHardwareIdentifier(byte[] hardwareIdentifier)
Returns an immutable copy ofthiswith just thehardwareIdentifierfield 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.“Hardware Blob of the Windows autopilot device.”
- Parameters:
hardwareIdentifier- new value ofhardwareIdentifierfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehardwareIdentifierfield changed
-
getImportId
public Optional<String> getImportId()
“The Import Id of the Windows autopilot device.”- Returns:
- property importId
-
withImportId
public ImportedWindowsAutopilotDeviceIdentity withImportId(String importId)
Returns an immutable copy ofthiswith just theimportIdfield 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.“The Import Id of the Windows autopilot device.”
- Parameters:
importId- new value ofimportIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theimportIdfield changed
-
getProductKey
public Optional<String> getProductKey()
“Product Key of the Windows autopilot device.”- Returns:
- property productKey
-
withProductKey
public ImportedWindowsAutopilotDeviceIdentity 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
-
getSerialNumber
public Optional<String> getSerialNumber()
“Serial number of the Windows autopilot device.”- Returns:
- property serialNumber
-
withSerialNumber
public ImportedWindowsAutopilotDeviceIdentity 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
-
getState
public Optional<ImportedWindowsAutopilotDeviceIdentityState> getState()
“Current state of the imported device.”- Returns:
- property state
-
withState
public ImportedWindowsAutopilotDeviceIdentity withState(ImportedWindowsAutopilotDeviceIdentityState state)
Returns an immutable copy ofthiswith just thestatefield 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.“Current state of the imported device.”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
withUnmappedField
public ImportedWindowsAutopilotDeviceIdentity 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 ImportedWindowsAutopilotDeviceIdentity patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ImportedWindowsAutopilotDeviceIdentity put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-