Package odata.msgraph.client.beta.entity
Class ImportedDeviceIdentity
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ImportedDeviceIdentity
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
ImportedDeviceIdentityResult
public class ImportedDeviceIdentity extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The importedDeviceIdentity resource represents a unique hardware identity of a device that has been pre-staged for pre-enrollment configuration.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImportedDeviceIdentity.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected EnrollmentStateenrollmentStateprotected StringimportedDeviceIdentifierprotected ImportedDeviceIdentityTypeimportedDeviceIdentityTypeprotected OffsetDateTimelastContactedDateTimeprotected OffsetDateTimelastModifiedDateTimeprotected Platformplatform-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedImportedDeviceIdentity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImportedDeviceIdentity.BuilderbuilderImportedDeviceIdentity()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<OffsetDateTime>getCreatedDateTime()“Created Date Time of the device”Optional<String>getDescription()“The description of the device”Optional<EnrollmentState>getEnrollmentState()“The state of the device in Intune”Optional<String>getImportedDeviceIdentifier()“Imported Device Identifier”Optional<ImportedDeviceIdentityType>getImportedDeviceIdentityType()“Type of Imported Device Identity”Optional<OffsetDateTime>getLastContactedDateTime()“Last Contacted Date Time of the device”Optional<OffsetDateTime>getLastModifiedDateTime()“Last Modified DateTime of the description”Optional<Platform>getPlatform()“The platform of the Device.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ImportedDeviceIdentitypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ImportedDeviceIdentityput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ImportedDeviceIdentitywithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.ImportedDeviceIdentitywithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.ImportedDeviceIdentitywithEnrollmentState(EnrollmentState enrollmentState)Returns an immutable copy ofthiswith just theenrollmentStatefield changed.ImportedDeviceIdentitywithImportedDeviceIdentifier(String importedDeviceIdentifier)Returns an immutable copy ofthiswith just theimportedDeviceIdentifierfield changed.ImportedDeviceIdentitywithImportedDeviceIdentityType(ImportedDeviceIdentityType importedDeviceIdentityType)Returns an immutable copy ofthiswith just theimportedDeviceIdentityTypefield changed.ImportedDeviceIdentitywithLastContactedDateTime(OffsetDateTime lastContactedDateTime)Returns an immutable copy ofthiswith just thelastContactedDateTimefield changed.ImportedDeviceIdentitywithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.ImportedDeviceIdentitywithPlatform(Platform platform)Returns an immutable copy ofthiswith just theplatformfield changed.ImportedDeviceIdentitywithUnmappedField(String name, String value)
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
enrollmentState
protected EnrollmentState enrollmentState
-
importedDeviceIdentifier
protected String importedDeviceIdentifier
-
importedDeviceIdentityType
protected ImportedDeviceIdentityType importedDeviceIdentityType
-
lastContactedDateTime
protected OffsetDateTime lastContactedDateTime
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
platform
protected Platform platform
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderImportedDeviceIdentity
public static ImportedDeviceIdentity.Builder builderImportedDeviceIdentity()
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
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“Created Date Time of the device”- Returns:
- property createdDateTime
-
withCreatedDateTime
public ImportedDeviceIdentity withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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.“Created Date Time of the device”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“The description of the device”- Returns:
- property description
-
withDescription
public ImportedDeviceIdentity withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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 description of the device”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getEnrollmentState
public Optional<EnrollmentState> getEnrollmentState()
“The state of the device in Intune”- Returns:
- property enrollmentState
-
withEnrollmentState
public ImportedDeviceIdentity 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.“The state of the device in Intune”
- Parameters:
enrollmentState- new value ofenrollmentStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenrollmentStatefield changed
-
getImportedDeviceIdentifier
public Optional<String> getImportedDeviceIdentifier()
“Imported Device Identifier”- Returns:
- property importedDeviceIdentifier
-
withImportedDeviceIdentifier
public ImportedDeviceIdentity withImportedDeviceIdentifier(String importedDeviceIdentifier)
Returns an immutable copy ofthiswith just theimportedDeviceIdentifierfield 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.“Imported Device Identifier”
- Parameters:
importedDeviceIdentifier- new value ofimportedDeviceIdentifierfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theimportedDeviceIdentifierfield changed
-
getImportedDeviceIdentityType
public Optional<ImportedDeviceIdentityType> getImportedDeviceIdentityType()
“Type of Imported Device Identity”- Returns:
- property importedDeviceIdentityType
-
withImportedDeviceIdentityType
public ImportedDeviceIdentity withImportedDeviceIdentityType(ImportedDeviceIdentityType importedDeviceIdentityType)
Returns an immutable copy ofthiswith just theimportedDeviceIdentityTypefield 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.“Type of Imported Device Identity”
- Parameters:
importedDeviceIdentityType- new value ofimportedDeviceIdentityTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theimportedDeviceIdentityTypefield changed
-
getLastContactedDateTime
public Optional<OffsetDateTime> getLastContactedDateTime()
“Last Contacted Date Time of the device”- Returns:
- property lastContactedDateTime
-
withLastContactedDateTime
public ImportedDeviceIdentity 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.“Last Contacted Date Time of the device”
- Parameters:
lastContactedDateTime- new value oflastContactedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastContactedDateTimefield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“Last Modified DateTime of the description”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public ImportedDeviceIdentity withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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 Modified DateTime of the description”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getPlatform
public Optional<Platform> getPlatform()
“The platform of the Device.”- Returns:
- property platform
-
withPlatform
public ImportedDeviceIdentity withPlatform(Platform platform)
Returns an immutable copy ofthiswith just theplatformfield 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 platform of the Device.”
- Parameters:
platform- new value ofplatformfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformfield changed
-
withUnmappedField
public ImportedDeviceIdentity 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 ImportedDeviceIdentity patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ImportedDeviceIdentity put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-