Package odata.msgraph.client.beta.entity
Class AppVulnerabilityTask
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceAppManagementTask
-
- odata.msgraph.client.beta.entity.AppVulnerabilityTask
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AppVulnerabilityTask extends DeviceAppManagementTask implements com.github.davidmoten.odata.client.ODataEntityType
“An app vulnerability task.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAppVulnerabilityTask.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringappNameprotected StringappPublisherprotected StringappVersionprotected Stringinsightsprotected IntegermanagedDeviceCountprotected AppVulnerabilityTaskMitigationTypemitigationTypeprotected IntegermobileAppCountprotected Stringremediation-
Fields inherited from class odata.msgraph.client.beta.entity.DeviceAppManagementTask
assignedTo, category, createdDateTime, creator, creatorNotes, description, displayName, dueDateTime, priority, status
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAppVulnerabilityTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AppVulnerabilityTask.BuilderbuilderAppVulnerabilityTask()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAppName()“The app name.”Optional<String>getAppPublisher()“The app publisher.”Optional<String>getAppVersion()“The app version.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getInsights()“Information about the mitigation.”Optional<Integer>getManagedDeviceCount()“The number of vulnerable devices.”AppVulnerabilityManagedDeviceCollectionRequestgetManagedDevices()“The vulnerable managed devices.”Optional<AppVulnerabilityTaskMitigationType>getMitigationType()“The mitigation type.”Optional<Integer>getMobileAppCount()“The number of vulnerable mobile apps.”AppVulnerabilityMobileAppCollectionRequestgetMobileApps()“The vulnerable mobile apps.”Optional<String>getRemediation()“The remediation steps.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AppVulnerabilityTaskpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AppVulnerabilityTaskput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AppVulnerabilityTaskwithAppName(String appName)Returns an immutable copy ofthiswith just theappNamefield changed.AppVulnerabilityTaskwithAppPublisher(String appPublisher)Returns an immutable copy ofthiswith just theappPublisherfield changed.AppVulnerabilityTaskwithAppVersion(String appVersion)Returns an immutable copy ofthiswith just theappVersionfield changed.AppVulnerabilityTaskwithInsights(String insights)Returns an immutable copy ofthiswith just theinsightsfield changed.AppVulnerabilityTaskwithManagedDeviceCount(Integer managedDeviceCount)Returns an immutable copy ofthiswith just themanagedDeviceCountfield changed.AppVulnerabilityTaskwithMitigationType(AppVulnerabilityTaskMitigationType mitigationType)Returns an immutable copy ofthiswith just themitigationTypefield changed.AppVulnerabilityTaskwithMobileAppCount(Integer mobileAppCount)Returns an immutable copy ofthiswith just themobileAppCountfield changed.AppVulnerabilityTaskwithRemediation(String remediation)Returns an immutable copy ofthiswith just theremediationfield changed.AppVulnerabilityTaskwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.DeviceAppManagementTask
builderDeviceAppManagementTask, getAssignedTo, getCategory, getCreatedDateTime, getCreator, getCreatorNotes, getDescription, getDisplayName, getDueDateTime, getPriority, getStatus, updateStatus, withAssignedTo, withCategory, withCreatedDateTime, withCreator, withCreatorNotes, withDescription, withDisplayName, withDueDateTime, withPriority, withStatus
-
-
-
-
Field Detail
-
appName
protected String appName
-
appPublisher
protected String appPublisher
-
appVersion
protected String appVersion
-
insights
protected String insights
-
managedDeviceCount
protected Integer managedDeviceCount
-
mitigationType
protected AppVulnerabilityTaskMitigationType mitigationType
-
mobileAppCount
protected Integer mobileAppCount
-
remediation
protected String remediation
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceAppManagementTask
-
builderAppVulnerabilityTask
public static AppVulnerabilityTask.Builder builderAppVulnerabilityTask()
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 classDeviceAppManagementTask
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceAppManagementTask
-
withAppName
public AppVulnerabilityTask withAppName(String appName)
Returns an immutable copy ofthiswith just theappNamefield 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 name.”
- Parameters:
appName- new value ofappNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappNamefield changed
-
getAppPublisher
public Optional<String> getAppPublisher()
“The app publisher.”- Returns:
- property appPublisher
-
withAppPublisher
public AppVulnerabilityTask withAppPublisher(String appPublisher)
Returns an immutable copy ofthiswith just theappPublisherfield 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 publisher.”
- Parameters:
appPublisher- new value ofappPublisherfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappPublisherfield changed
-
getAppVersion
public Optional<String> getAppVersion()
“The app version.”- Returns:
- property appVersion
-
withAppVersion
public AppVulnerabilityTask withAppVersion(String appVersion)
Returns an immutable copy ofthiswith just theappVersionfield 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 version.”
- Parameters:
appVersion- new value ofappVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappVersionfield changed
-
getInsights
public Optional<String> getInsights()
“Information about the mitigation.”- Returns:
- property insights
-
withInsights
public AppVulnerabilityTask withInsights(String insights)
Returns an immutable copy ofthiswith just theinsightsfield 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.“Information about the mitigation.”
- Parameters:
insights- new value ofinsightsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinsightsfield changed
-
getManagedDeviceCount
public Optional<Integer> getManagedDeviceCount()
“The number of vulnerable devices.”- Returns:
- property managedDeviceCount
-
withManagedDeviceCount
public AppVulnerabilityTask withManagedDeviceCount(Integer managedDeviceCount)
Returns an immutable copy ofthiswith just themanagedDeviceCountfield 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 vulnerable devices.”
- Parameters:
managedDeviceCount- new value ofmanagedDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagedDeviceCountfield changed
-
getMitigationType
public Optional<AppVulnerabilityTaskMitigationType> getMitigationType()
“The mitigation type.”- Returns:
- property mitigationType
-
withMitigationType
public AppVulnerabilityTask withMitigationType(AppVulnerabilityTaskMitigationType mitigationType)
Returns an immutable copy ofthiswith just themitigationTypefield 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 mitigation type.”
- Parameters:
mitigationType- new value ofmitigationTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themitigationTypefield changed
-
getMobileAppCount
public Optional<Integer> getMobileAppCount()
“The number of vulnerable mobile apps.”- Returns:
- property mobileAppCount
-
withMobileAppCount
public AppVulnerabilityTask withMobileAppCount(Integer mobileAppCount)
Returns an immutable copy ofthiswith just themobileAppCountfield 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 vulnerable mobile apps.”
- Parameters:
mobileAppCount- new value ofmobileAppCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themobileAppCountfield changed
-
getRemediation
public Optional<String> getRemediation()
“The remediation steps.”- Returns:
- property remediation
-
withRemediation
public AppVulnerabilityTask withRemediation(String remediation)
Returns an immutable copy ofthiswith just theremediationfield 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 remediation steps.”
- Parameters:
remediation- new value ofremediationfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theremediationfield changed
-
withUnmappedField
public AppVulnerabilityTask withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceAppManagementTask
-
getManagedDevices
public AppVulnerabilityManagedDeviceCollectionRequest getManagedDevices()
“The vulnerable managed devices.”- Returns:
- navigational property managedDevices
-
getMobileApps
public AppVulnerabilityMobileAppCollectionRequest getMobileApps()
“The vulnerable mobile apps.”- Returns:
- navigational property mobileApps
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceAppManagementTask
-
patch
public AppVulnerabilityTask patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classDeviceAppManagementTask- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public AppVulnerabilityTask put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classDeviceAppManagementTask- 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 classDeviceAppManagementTask
-
-