Package odata.msgraph.client.entity
Class DetectedApp
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DetectedApp
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DetectedApp extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“A managed or unmanaged app that is installed on a managed device. Unmanaged apps will only appear for devices marked as corporate owned.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDetectedApp.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegerdeviceCountprotected StringdisplayNameprotected DetectedAppPlatformTypeplatformprotected Stringpublisherprotected LongsizeInByteprotected Stringversion-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDetectedApp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DetectedApp.BuilderbuilderDetectedApp()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<Integer>getDeviceCount()“The number of devices that have installed this application”Optional<String>getDisplayName()“Name of the discovered application.ManagedDeviceCollectionRequestgetManagedDevices()“The devices that have the discovered application installed”Optional<DetectedAppPlatformType>getPlatform()“Indicates the operating system / platform of the discovered application.Optional<String>getPublisher()“Indicates the publisher of the discovered application.Optional<Long>getSizeInByte()“Discovered application size in bytes.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersion()“Version of the discovered application.StringodataTypeName()DetectedApppatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DetectedAppput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DetectedAppwithDeviceCount(Integer deviceCount)Returns an immutable copy ofthiswith just thedeviceCountfield changed.DetectedAppwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DetectedAppwithPlatform(DetectedAppPlatformType platform)Returns an immutable copy ofthiswith just theplatformfield changed.DetectedAppwithPublisher(String publisher)Returns an immutable copy ofthiswith just thepublisherfield changed.DetectedAppwithSizeInByte(Long sizeInByte)Returns an immutable copy ofthiswith just thesizeInBytefield changed.DetectedAppwithUnmappedField(String name, Object value)DetectedAppwithVersion(String version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDetectedApp
public static DetectedApp.Builder builderDetectedApp()
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
-
getDeviceCount
public Optional<Integer> getDeviceCount()
“The number of devices that have installed this application”- Returns:
- property deviceCount
-
withDeviceCount
public DetectedApp withDeviceCount(Integer deviceCount)
Returns an immutable copy ofthiswith just thedeviceCountfield 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 number of devices that have installed this application”
- Parameters:
deviceCount- new value ofdeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceCountfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Name of the discovered application. Read-only”- Returns:
- property displayName
-
withDisplayName
public DetectedApp 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.“Name of the discovered application. Read-only”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getPlatform
public Optional<DetectedAppPlatformType> getPlatform()
“Indicates the operating system / platform of the discovered application. Some possible values are Windows, iOS, macOS. The default value is unknown (0).”- Returns:
- property platform
-
withPlatform
public DetectedApp withPlatform(DetectedAppPlatformType 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.“Indicates the operating system / platform of the discovered application. Some possible values are Windows, iOS, macOS. The default value is unknown (0).”
- Parameters:
platform- new value ofplatformfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformfield changed
-
getPublisher
public Optional<String> getPublisher()
“Indicates the publisher of the discovered application. For example: 'Microsoft'. The default value is an empty string.”- Returns:
- property publisher
-
withPublisher
public DetectedApp withPublisher(String publisher)
Returns an immutable copy ofthiswith just thepublisherfield 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.“Indicates the publisher of the discovered application. For example: 'Microsoft'. The default value is an empty string.”
- Parameters:
publisher- new value ofpublisherfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepublisherfield changed
-
getSizeInByte
public Optional<Long> getSizeInByte()
“Discovered application size in bytes. Read-only”- Returns:
- property sizeInByte
-
withSizeInByte
public DetectedApp withSizeInByte(Long sizeInByte)
Returns an immutable copy ofthiswith just thesizeInBytefield 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.“Discovered application size in bytes. Read-only”
- Parameters:
sizeInByte- new value ofsizeInBytefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesizeInBytefield changed
-
getVersion
public Optional<String> getVersion()
“Version of the discovered application. Read-only”- Returns:
- property version
-
withVersion
public DetectedApp withVersion(String version)
Returns an immutable copy ofthiswith just theversionfield 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.“Version of the discovered application. Read-only”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public DetectedApp withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getManagedDevices
public ManagedDeviceCollectionRequest getManagedDevices()
“The devices that have the discovered application installed”- Returns:
- navigational property managedDevices
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DetectedApp patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DetectedApp put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-