Package odata.msgraph.client.beta.entity
Class AndroidForWorkMobileAppConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ManagedDeviceMobileAppConfiguration
-
- odata.msgraph.client.beta.entity.AndroidForWorkMobileAppConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AndroidForWorkMobileAppConfiguration extends ManagedDeviceMobileAppConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties, inherited properties and actions for AFW mobile app configurations.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidForWorkMobileAppConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanconnectedAppsEnabledprotected StringpackageIdprotected StringpayloadJsonprotected List<AndroidPermissionAction>permissionActionsprotected StringpermissionActionsNextLinkprotected AndroidProfileApplicabilityprofileApplicability-
Fields inherited from class odata.msgraph.client.beta.entity.ManagedDeviceMobileAppConfiguration
createdDateTime, description, displayName, lastModifiedDateTime, roleScopeTagIds, roleScopeTagIdsNextLink, targetedMobileApps, targetedMobileAppsNextLink, version
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidForWorkMobileAppConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidForWorkMobileAppConfiguration.BuilderbuilderAndroidForWorkMobileAppConfiguration()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<Boolean>getConnectedAppsEnabled()“Setting to specify whether to allow ConnectedApps experience for this app.”Optional<String>getPackageId()“Android For Work app configuration package id.”Optional<String>getPayloadJson()“Android For Work app configuration JSON payload.”com.github.davidmoten.odata.client.CollectionPage<AndroidPermissionAction>getPermissionActions()“List of Android app permissions and corresponding permission actions.”com.github.davidmoten.odata.client.CollectionPage<AndroidPermissionAction>getPermissionActions(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of Android app permissions and corresponding permission actions.”Optional<AndroidProfileApplicability>getProfileApplicability()“Android Enterprise profile applicability (AndroidWorkProfile, DeviceOwner, or default (applies to both)).”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AndroidForWorkMobileAppConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidForWorkMobileAppConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidForWorkMobileAppConfigurationwithConnectedAppsEnabled(Boolean connectedAppsEnabled)Returns an immutable copy ofthiswith just theconnectedAppsEnabledfield changed.AndroidForWorkMobileAppConfigurationwithPackageId(String packageId)Returns an immutable copy ofthiswith just thepackageIdfield changed.AndroidForWorkMobileAppConfigurationwithPayloadJson(String payloadJson)Returns an immutable copy ofthiswith just thepayloadJsonfield changed.AndroidForWorkMobileAppConfigurationwithPermissionActions(List<AndroidPermissionAction> permissionActions)Returns an immutable copy ofthiswith just thepermissionActionsfield changed.AndroidForWorkMobileAppConfigurationwithProfileApplicability(AndroidProfileApplicability profileApplicability)Returns an immutable copy ofthiswith just theprofileApplicabilityfield changed.AndroidForWorkMobileAppConfigurationwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.ManagedDeviceMobileAppConfiguration
assign, getAssignments, getCreatedDateTime, getDescription, getDeviceStatuses, getDeviceStatusSummary, getDisplayName, getLastModifiedDateTime, getRoleScopeTagIds, getRoleScopeTagIds, getTargetedMobileApps, getTargetedMobileApps, getUserStatuses, getUserStatusSummary, getVersion, withCreatedDateTime, withDescription, withDisplayName, withLastModifiedDateTime, withRoleScopeTagIds, withTargetedMobileApps, withVersion
-
-
-
-
Field Detail
-
connectedAppsEnabled
protected Boolean connectedAppsEnabled
-
packageId
protected String packageId
-
payloadJson
protected String payloadJson
-
permissionActions
protected List<AndroidPermissionAction> permissionActions
-
permissionActionsNextLink
protected String permissionActionsNextLink
-
profileApplicability
protected AndroidProfileApplicability profileApplicability
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classManagedDeviceMobileAppConfiguration
-
builderAndroidForWorkMobileAppConfiguration
public static AndroidForWorkMobileAppConfiguration.Builder builderAndroidForWorkMobileAppConfiguration()
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 classManagedDeviceMobileAppConfiguration
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classManagedDeviceMobileAppConfiguration
-
getConnectedAppsEnabled
public Optional<Boolean> getConnectedAppsEnabled()
“Setting to specify whether to allow ConnectedApps experience for this app.”- Returns:
- property connectedAppsEnabled
-
withConnectedAppsEnabled
public AndroidForWorkMobileAppConfiguration withConnectedAppsEnabled(Boolean connectedAppsEnabled)
Returns an immutable copy ofthiswith just theconnectedAppsEnabledfield 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.“Setting to specify whether to allow ConnectedApps experience for this app.”
- Parameters:
connectedAppsEnabled- new value ofconnectedAppsEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theconnectedAppsEnabledfield changed
-
getPackageId
public Optional<String> getPackageId()
“Android For Work app configuration package id.”- Returns:
- property packageId
-
withPackageId
public AndroidForWorkMobileAppConfiguration withPackageId(String packageId)
Returns an immutable copy ofthiswith just thepackageIdfield 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.“Android For Work app configuration package id.”
- Parameters:
packageId- new value ofpackageIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepackageIdfield changed
-
getPayloadJson
public Optional<String> getPayloadJson()
“Android For Work app configuration JSON payload.”- Returns:
- property payloadJson
-
withPayloadJson
public AndroidForWorkMobileAppConfiguration withPayloadJson(String payloadJson)
Returns an immutable copy ofthiswith just thepayloadJsonfield 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.“Android For Work app configuration JSON payload.”
- Parameters:
payloadJson- new value ofpayloadJsonfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepayloadJsonfield changed
-
getPermissionActions
public com.github.davidmoten.odata.client.CollectionPage<AndroidPermissionAction> getPermissionActions()
“List of Android app permissions and corresponding permission actions.”- Returns:
- property permissionActions
-
withPermissionActions
public AndroidForWorkMobileAppConfiguration withPermissionActions(List<AndroidPermissionAction> permissionActions)
Returns an immutable copy ofthiswith just thepermissionActionsfield 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.“List of Android app permissions and corresponding permission actions.”
- Parameters:
permissionActions- new value ofpermissionActionsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepermissionActionsfield changed
-
getPermissionActions
public com.github.davidmoten.odata.client.CollectionPage<AndroidPermissionAction> getPermissionActions(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of Android app permissions and corresponding permission actions.”- Parameters:
options- specify connect and read timeouts- Returns:
- property permissionActions
-
getProfileApplicability
public Optional<AndroidProfileApplicability> getProfileApplicability()
“Android Enterprise profile applicability (AndroidWorkProfile, DeviceOwner, or default (applies to both)).”- Returns:
- property profileApplicability
-
withProfileApplicability
public AndroidForWorkMobileAppConfiguration withProfileApplicability(AndroidProfileApplicability profileApplicability)
Returns an immutable copy ofthiswith just theprofileApplicabilityfield 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.“Android Enterprise profile applicability (AndroidWorkProfile, DeviceOwner, or default (applies to both)).”
- Parameters:
profileApplicability- new value ofprofileApplicabilityfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theprofileApplicabilityfield changed
-
withUnmappedField
public AndroidForWorkMobileAppConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classManagedDeviceMobileAppConfiguration
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classManagedDeviceMobileAppConfiguration
-
patch
public AndroidForWorkMobileAppConfiguration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classManagedDeviceMobileAppConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public AndroidForWorkMobileAppConfiguration put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classManagedDeviceMobileAppConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classManagedDeviceMobileAppConfiguration
-
-