Package odata.msgraph.client.beta.entity
Class RestrictedAppsViolation
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.RestrictedAppsViolation
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class RestrictedAppsViolation extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Violation of restricted apps configuration profile per device per user”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestrictedAppsViolation.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceConfigurationIdprotected StringdeviceConfigurationNameprotected StringdeviceNameprotected StringmanagedDeviceIdprotected PolicyPlatformTypeplatformTypeprotected List<ManagedDeviceReportedApp>restrictedAppsprotected StringrestrictedAppsNextLinkprotected RestrictedAppsStaterestrictedAppsStateprotected StringuserIdprotected StringuserName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRestrictedAppsViolation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestrictedAppsViolation.BuilderbuilderRestrictedAppsViolation()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<String>getDeviceConfigurationId()“Device configuration profile unique identifier, must be Guid”Optional<String>getDeviceConfigurationName()“Device configuration profile name”Optional<String>getDeviceName()“Device name”Optional<String>getManagedDeviceId()“Managed device unique identifier, must be Guid”Optional<PolicyPlatformType>getPlatformType()“Platform type”com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceReportedApp>getRestrictedApps()“List of violated restricted apps”com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceReportedApp>getRestrictedApps(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of violated restricted apps”Optional<RestrictedAppsState>getRestrictedAppsState()“Restricted apps state”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserId()“User unique identifier, must be Guid”Optional<String>getUserName()“User name”StringodataTypeName()RestrictedAppsViolationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)RestrictedAppsViolationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()RestrictedAppsViolationwithDeviceConfigurationId(String deviceConfigurationId)Returns an immutable copy ofthiswith just thedeviceConfigurationIdfield changed.RestrictedAppsViolationwithDeviceConfigurationName(String deviceConfigurationName)Returns an immutable copy ofthiswith just thedeviceConfigurationNamefield changed.RestrictedAppsViolationwithDeviceName(String deviceName)Returns an immutable copy ofthiswith just thedeviceNamefield changed.RestrictedAppsViolationwithManagedDeviceId(String managedDeviceId)Returns an immutable copy ofthiswith just themanagedDeviceIdfield changed.RestrictedAppsViolationwithPlatformType(PolicyPlatformType platformType)Returns an immutable copy ofthiswith just theplatformTypefield changed.RestrictedAppsViolationwithRestrictedApps(List<ManagedDeviceReportedApp> restrictedApps)Returns an immutable copy ofthiswith just therestrictedAppsfield changed.RestrictedAppsViolationwithRestrictedAppsState(RestrictedAppsState restrictedAppsState)Returns an immutable copy ofthiswith just therestrictedAppsStatefield changed.RestrictedAppsViolationwithUnmappedField(String name, String value)RestrictedAppsViolationwithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.RestrictedAppsViolationwithUserName(String userName)Returns an immutable copy ofthiswith just theuserNamefield changed.
-
-
-
Field Detail
-
deviceConfigurationId
protected String deviceConfigurationId
-
deviceConfigurationName
protected String deviceConfigurationName
-
deviceName
protected String deviceName
-
managedDeviceId
protected String managedDeviceId
-
platformType
protected PolicyPlatformType platformType
-
restrictedApps
protected List<ManagedDeviceReportedApp> restrictedApps
-
restrictedAppsNextLink
protected String restrictedAppsNextLink
-
restrictedAppsState
protected RestrictedAppsState restrictedAppsState
-
userId
protected String userId
-
userName
protected String userName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderRestrictedAppsViolation
public static RestrictedAppsViolation.Builder builderRestrictedAppsViolation()
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
-
getDeviceConfigurationId
public Optional<String> getDeviceConfigurationId()
“Device configuration profile unique identifier, must be Guid”- Returns:
- property deviceConfigurationId
-
withDeviceConfigurationId
public RestrictedAppsViolation withDeviceConfigurationId(String deviceConfigurationId)
Returns an immutable copy ofthiswith just thedeviceConfigurationIdfield 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.“Device configuration profile unique identifier, must be Guid”
- Parameters:
deviceConfigurationId- new value ofdeviceConfigurationIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceConfigurationIdfield changed
-
getDeviceConfigurationName
public Optional<String> getDeviceConfigurationName()
“Device configuration profile name”- Returns:
- property deviceConfigurationName
-
withDeviceConfigurationName
public RestrictedAppsViolation withDeviceConfigurationName(String deviceConfigurationName)
Returns an immutable copy ofthiswith just thedeviceConfigurationNamefield 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.“Device configuration profile name”
- Parameters:
deviceConfigurationName- new value ofdeviceConfigurationNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceConfigurationNamefield changed
-
withDeviceName
public RestrictedAppsViolation 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.“Device name”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
getManagedDeviceId
public Optional<String> getManagedDeviceId()
“Managed device unique identifier, must be Guid”- Returns:
- property managedDeviceId
-
withManagedDeviceId
public RestrictedAppsViolation withManagedDeviceId(String managedDeviceId)
Returns an immutable copy ofthiswith just themanagedDeviceIdfield 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.“Managed device unique identifier, must be Guid”
- Parameters:
managedDeviceId- new value ofmanagedDeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagedDeviceIdfield changed
-
getPlatformType
public Optional<PolicyPlatformType> getPlatformType()
“Platform type”- Returns:
- property platformType
-
withPlatformType
public RestrictedAppsViolation withPlatformType(PolicyPlatformType platformType)
Returns an immutable copy ofthiswith just theplatformTypefield 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.“Platform type”
- Parameters:
platformType- new value ofplatformTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformTypefield changed
-
getRestrictedApps
public com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceReportedApp> getRestrictedApps()
“List of violated restricted apps”- Returns:
- property restrictedApps
-
withRestrictedApps
public RestrictedAppsViolation withRestrictedApps(List<ManagedDeviceReportedApp> restrictedApps)
Returns an immutable copy ofthiswith just therestrictedAppsfield 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 violated restricted apps”
- Parameters:
restrictedApps- new value ofrestrictedAppsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therestrictedAppsfield changed
-
getRestrictedApps
public com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceReportedApp> getRestrictedApps(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of violated restricted apps”- Parameters:
options- specify connect and read timeouts- Returns:
- property restrictedApps
-
getRestrictedAppsState
public Optional<RestrictedAppsState> getRestrictedAppsState()
“Restricted apps state”- Returns:
- property restrictedAppsState
-
withRestrictedAppsState
public RestrictedAppsViolation withRestrictedAppsState(RestrictedAppsState restrictedAppsState)
Returns an immutable copy ofthiswith just therestrictedAppsStatefield 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.“Restricted apps state”
- Parameters:
restrictedAppsState- new value ofrestrictedAppsStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therestrictedAppsStatefield changed
-
getUserId
public Optional<String> getUserId()
“User unique identifier, must be Guid”- Returns:
- property userId
-
withUserId
public RestrictedAppsViolation 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.“User unique identifier, must be Guid”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
withUserName
public RestrictedAppsViolation withUserName(String userName)
Returns an immutable copy ofthiswith just theuserNamefield 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.“User name”
- Parameters:
userName- new value ofuserNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserNamefield changed
-
withUnmappedField
public RestrictedAppsViolation 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 RestrictedAppsViolation patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public RestrictedAppsViolation put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-