Class ManagedAppRegistration
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ManagedAppRegistration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
AndroidManagedAppRegistration,IosManagedAppRegistration
public class ManagedAppRegistration extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The ManagedAppRegistration resource represents the details of an app, with management capability, used by a member of the organization.”
-
-
Field Summary
Fields Modifier and Type Field Description protected MobileAppIdentifierappIdentifierprotected StringapplicationVersionprotected List<ManagedAppPolicy>appliedPoliciesprotected OffsetDateTimecreatedDateTimeprotected StringdeviceNameprotected StringdeviceTagprotected StringdeviceTypeprotected List<ManagedAppFlaggedReason>flaggedReasonsprotected StringflaggedReasonsNextLinkprotected List<ManagedAppPolicy>intendedPoliciesprotected OffsetDateTimelastSyncDateTimeprotected StringmanagementSdkVersionprotected List<ManagedAppOperation>operationsprotected StringplatformVersionprotected StringuserIdprotected Stringversion-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedManagedAppRegistration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<MobileAppIdentifier>getAppIdentifier()“The app package Identifier”Optional<String>getApplicationVersion()“App version”ManagedAppPolicyCollectionRequestgetAppliedPolicies()“Zero or more policys already applied on the registered app when it last synchronized with managment service.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“Date and time of creation”Optional<String>getDeviceName()“Host device name”Optional<String>getDeviceTag()“App management SDK generated tag, which helps relate apps hosted on the same device.Optional<String>getDeviceType()“Host device type”com.github.davidmoten.odata.client.CollectionPage<ManagedAppFlaggedReason>getFlaggedReasons()“Zero or more reasons an app registration is flagged.com.github.davidmoten.odata.client.CollectionPage<ManagedAppFlaggedReason>getFlaggedReasons(com.github.davidmoten.odata.client.HttpRequestOptions options)“Zero or more reasons an app registration is flagged.ManagedAppPolicyCollectionRequestgetIntendedPolicies()“Zero or more policies admin intended for the app as of now.”Optional<OffsetDateTime>getLastSyncDateTime()“Date and time of last the app synced with management service.”Optional<String>getManagementSdkVersion()“App management SDK version”ManagedAppOperationCollectionRequestgetOperations()“Zero or more long running operations triggered on the app registration.”Optional<String>getPlatformVersion()“Operating System version”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserId()“The user Id to who this app registration belongs.”Optional<String>getVersion()“Version of the entity.”StringodataTypeName()ManagedAppRegistrationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ManagedAppRegistrationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ManagedAppRegistrationwithAppIdentifier(MobileAppIdentifier appIdentifier)Returns an immutable copy ofthiswith just theappIdentifierfield changed.ManagedAppRegistrationwithApplicationVersion(String applicationVersion)Returns an immutable copy ofthiswith just theapplicationVersionfield changed.ManagedAppRegistrationwithAppliedPolicies(List<ManagedAppPolicy> appliedPolicies)Returns an immutable copy ofthiswith just theappliedPoliciesfield changed.ManagedAppRegistrationwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.ManagedAppRegistrationwithDeviceName(String deviceName)Returns an immutable copy ofthiswith just thedeviceNamefield changed.ManagedAppRegistrationwithDeviceTag(String deviceTag)Returns an immutable copy ofthiswith just thedeviceTagfield changed.ManagedAppRegistrationwithDeviceType(String deviceType)Returns an immutable copy ofthiswith just thedeviceTypefield changed.ManagedAppRegistrationwithFlaggedReasons(List<ManagedAppFlaggedReason> flaggedReasons)Returns an immutable copy ofthiswith just theflaggedReasonsfield changed.ManagedAppRegistrationwithIntendedPolicies(List<ManagedAppPolicy> intendedPolicies)Returns an immutable copy ofthiswith just theintendedPoliciesfield changed.ManagedAppRegistrationwithLastSyncDateTime(OffsetDateTime lastSyncDateTime)Returns an immutable copy ofthiswith just thelastSyncDateTimefield changed.ManagedAppRegistrationwithManagementSdkVersion(String managementSdkVersion)Returns an immutable copy ofthiswith just themanagementSdkVersionfield changed.ManagedAppRegistrationwithOperations(List<ManagedAppOperation> operations)Returns an immutable copy ofthiswith just theoperationsfield changed.ManagedAppRegistrationwithPlatformVersion(String platformVersion)Returns an immutable copy ofthiswith just theplatformVersionfield changed.ManagedAppRegistrationwithUnmappedField(String name, Object value)ManagedAppRegistrationwithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.ManagedAppRegistrationwithVersion(String version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
appIdentifier
protected MobileAppIdentifier appIdentifier
-
applicationVersion
protected String applicationVersion
-
createdDateTime
protected OffsetDateTime createdDateTime
-
deviceName
protected String deviceName
-
deviceTag
protected String deviceTag
-
deviceType
protected String deviceType
-
flaggedReasons
protected List<ManagedAppFlaggedReason> flaggedReasons
-
flaggedReasonsNextLink
protected String flaggedReasonsNextLink
-
lastSyncDateTime
protected OffsetDateTime lastSyncDateTime
-
managementSdkVersion
protected String managementSdkVersion
-
platformVersion
protected String platformVersion
-
userId
protected String userId
-
version
protected String version
-
appliedPolicies
protected List<ManagedAppPolicy> appliedPolicies
-
intendedPolicies
protected List<ManagedAppPolicy> intendedPolicies
-
operations
protected List<ManagedAppOperation> operations
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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
-
getAppIdentifier
public Optional<MobileAppIdentifier> getAppIdentifier()
“The app package Identifier”- Returns:
- property appIdentifier
-
withAppIdentifier
public ManagedAppRegistration withAppIdentifier(MobileAppIdentifier appIdentifier)
Returns an immutable copy ofthiswith just theappIdentifierfield 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 app package Identifier”
- Parameters:
appIdentifier- new value ofappIdentifierfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappIdentifierfield changed
-
getApplicationVersion
public Optional<String> getApplicationVersion()
“App version”- Returns:
- property applicationVersion
-
withApplicationVersion
public ManagedAppRegistration withApplicationVersion(String applicationVersion)
Returns an immutable copy ofthiswith just theapplicationVersionfield 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.“App version”
- Parameters:
applicationVersion- new value ofapplicationVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theapplicationVersionfield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“Date and time of creation”- Returns:
- property createdDateTime
-
withCreatedDateTime
public ManagedAppRegistration 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.“Date and time of creation”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDeviceName
public Optional<String> getDeviceName()
“Host device name”- Returns:
- property deviceName
-
withDeviceName
public ManagedAppRegistration 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.“Host device name”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
getDeviceTag
public Optional<String> getDeviceTag()
“App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions.”- Returns:
- property deviceTag
-
withDeviceTag
public ManagedAppRegistration withDeviceTag(String deviceTag)
Returns an immutable copy ofthiswith just thedeviceTagfield 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.“App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions.”
- Parameters:
deviceTag- new value ofdeviceTagfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceTagfield changed
-
getDeviceType
public Optional<String> getDeviceType()
“Host device type”- Returns:
- property deviceType
-
withDeviceType
public ManagedAppRegistration withDeviceType(String 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.“Host device type”
- Parameters:
deviceType- new value ofdeviceTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceTypefield changed
-
getFlaggedReasons
public com.github.davidmoten.odata.client.CollectionPage<ManagedAppFlaggedReason> getFlaggedReasons()
“Zero or more reasons an app registration is flagged. E.g. app running on rooted device”- Returns:
- property flaggedReasons
-
withFlaggedReasons
public ManagedAppRegistration withFlaggedReasons(List<ManagedAppFlaggedReason> flaggedReasons)
Returns an immutable copy ofthiswith just theflaggedReasonsfield 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.“Zero or more reasons an app registration is flagged. E.g. app running on rooted device”
- Parameters:
flaggedReasons- new value offlaggedReasonsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theflaggedReasonsfield changed
-
getFlaggedReasons
public com.github.davidmoten.odata.client.CollectionPage<ManagedAppFlaggedReason> getFlaggedReasons(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Zero or more reasons an app registration is flagged. E.g. app running on rooted device”- Parameters:
options- specify connect and read timeouts- Returns:
- property flaggedReasons
-
getLastSyncDateTime
public Optional<OffsetDateTime> getLastSyncDateTime()
“Date and time of last the app synced with management service.”- Returns:
- property lastSyncDateTime
-
withLastSyncDateTime
public ManagedAppRegistration withLastSyncDateTime(OffsetDateTime lastSyncDateTime)
Returns an immutable copy ofthiswith just thelastSyncDateTimefield 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.“Date and time of last the app synced with management service.”
- Parameters:
lastSyncDateTime- new value oflastSyncDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastSyncDateTimefield changed
-
getManagementSdkVersion
public Optional<String> getManagementSdkVersion()
“App management SDK version”- Returns:
- property managementSdkVersion
-
withManagementSdkVersion
public ManagedAppRegistration withManagementSdkVersion(String managementSdkVersion)
Returns an immutable copy ofthiswith just themanagementSdkVersionfield 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.“App management SDK version”
- Parameters:
managementSdkVersion- new value ofmanagementSdkVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagementSdkVersionfield changed
-
getPlatformVersion
public Optional<String> getPlatformVersion()
“Operating System version”- Returns:
- property platformVersion
-
withPlatformVersion
public ManagedAppRegistration withPlatformVersion(String platformVersion)
Returns an immutable copy ofthiswith just theplatformVersionfield 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.“Operating System version”
- Parameters:
platformVersion- new value ofplatformVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformVersionfield changed
-
getUserId
public Optional<String> getUserId()
“The user Id to who this app registration belongs.”- Returns:
- property userId
-
withUserId
public ManagedAppRegistration 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.“The user Id to who this app registration belongs.”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
withVersion
public ManagedAppRegistration 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 entity.”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public ManagedAppRegistration withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getAppliedPolicies
public ManagedAppPolicyCollectionRequest getAppliedPolicies()
“Zero or more policys already applied on the registered app when it last synchronized with managment service.”- Returns:
- navigational property appliedPolicies
-
getIntendedPolicies
public ManagedAppPolicyCollectionRequest getIntendedPolicies()
“Zero or more policies admin intended for the app as of now.”- Returns:
- navigational property intendedPolicies
-
getOperations
public ManagedAppOperationCollectionRequest getOperations()
“Zero or more long running operations triggered on the app registration.”- Returns:
- navigational property operations
-
withAppliedPolicies
public ManagedAppRegistration withAppliedPolicies(List<ManagedAppPolicy> appliedPolicies)
Returns an immutable copy ofthiswith just theappliedPoliciesfield 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.“Zero or more policys already applied on the registered app when it last synchronized with managment service.”
- Parameters:
appliedPolicies- new value ofappliedPoliciesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappliedPoliciesfield changed
-
withIntendedPolicies
public ManagedAppRegistration withIntendedPolicies(List<ManagedAppPolicy> intendedPolicies)
Returns an immutable copy ofthiswith just theintendedPoliciesfield 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.“Zero or more policies admin intended for the app as of now.”
- Parameters:
intendedPolicies- new value ofintendedPoliciesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theintendedPoliciesfield changed
-
withOperations
public ManagedAppRegistration withOperations(List<ManagedAppOperation> operations)
Returns an immutable copy ofthiswith just theoperationsfield 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.“Zero or more long running operations triggered on the app registration.”
- Parameters:
operations- new value ofoperationsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoperationsfield changed
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public ManagedAppRegistration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ManagedAppRegistration put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-