Package odata.msgraph.client.beta.entity
Class WindowsDriverUpdateInventory
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.WindowsDriverUpdateInventory
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class WindowsDriverUpdateInventory extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“A new entity to represent driver inventories.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsDriverUpdateInventory.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegerapplicableDeviceCountprotected DriverApprovalStatusapprovalStatusprotected DriverCategorycategoryprotected OffsetDateTimedeployDateTimeprotected StringdriverClassprotected Stringmanufacturerprotected Stringnameprotected OffsetDateTimereleaseDateTimeprotected Stringversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsDriverUpdateInventory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsDriverUpdateInventory.BuilderbuilderWindowsDriverUpdateInventory()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getApplicableDeviceCount()“The number of devices for which this driver is applicable.”Optional<DriverApprovalStatus>getApprovalStatus()“The approval status for this driver.”Optional<DriverCategory>getCategory()“The category for this driver.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getDeployDateTime()“The date time when a driver should be deployed if approvalStatus is approved.”Optional<String>getDriverClass()“The class of the driver.”Optional<String>getManufacturer()“The manufacturer of the driver.”Optional<String>getName()“The name of the driver.”Optional<OffsetDateTime>getReleaseDateTime()“The release date time of the driver.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersion()“The version of the driver.”StringodataTypeName()WindowsDriverUpdateInventorypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsDriverUpdateInventoryput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()WindowsDriverUpdateInventorywithApplicableDeviceCount(Integer applicableDeviceCount)Returns an immutable copy ofthiswith just theapplicableDeviceCountfield changed.WindowsDriverUpdateInventorywithApprovalStatus(DriverApprovalStatus approvalStatus)Returns an immutable copy ofthiswith just theapprovalStatusfield changed.WindowsDriverUpdateInventorywithCategory(DriverCategory category)Returns an immutable copy ofthiswith just thecategoryfield changed.WindowsDriverUpdateInventorywithDeployDateTime(OffsetDateTime deployDateTime)Returns an immutable copy ofthiswith just thedeployDateTimefield changed.WindowsDriverUpdateInventorywithDriverClass(String driverClass)Returns an immutable copy ofthiswith just thedriverClassfield changed.WindowsDriverUpdateInventorywithManufacturer(String manufacturer)Returns an immutable copy ofthiswith just themanufacturerfield changed.WindowsDriverUpdateInventorywithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.WindowsDriverUpdateInventorywithReleaseDateTime(OffsetDateTime releaseDateTime)Returns an immutable copy ofthiswith just thereleaseDateTimefield changed.WindowsDriverUpdateInventorywithUnmappedField(String name, String value)WindowsDriverUpdateInventorywithVersion(String version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
applicableDeviceCount
protected Integer applicableDeviceCount
-
approvalStatus
protected DriverApprovalStatus approvalStatus
-
category
protected DriverCategory category
-
deployDateTime
protected OffsetDateTime deployDateTime
-
driverClass
protected String driverClass
-
manufacturer
protected String manufacturer
-
name
protected String name
-
releaseDateTime
protected OffsetDateTime releaseDateTime
-
version
protected String version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderWindowsDriverUpdateInventory
public static WindowsDriverUpdateInventory.Builder builderWindowsDriverUpdateInventory()
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
-
getApplicableDeviceCount
public Optional<Integer> getApplicableDeviceCount()
“The number of devices for which this driver is applicable.”- Returns:
- property applicableDeviceCount
-
withApplicableDeviceCount
public WindowsDriverUpdateInventory withApplicableDeviceCount(Integer applicableDeviceCount)
Returns an immutable copy ofthiswith just theapplicableDeviceCountfield 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 for which this driver is applicable.”
- Parameters:
applicableDeviceCount- new value ofapplicableDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theapplicableDeviceCountfield changed
-
getApprovalStatus
public Optional<DriverApprovalStatus> getApprovalStatus()
“The approval status for this driver.”- Returns:
- property approvalStatus
-
withApprovalStatus
public WindowsDriverUpdateInventory withApprovalStatus(DriverApprovalStatus approvalStatus)
Returns an immutable copy ofthiswith just theapprovalStatusfield 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 approval status for this driver.”
- Parameters:
approvalStatus- new value ofapprovalStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theapprovalStatusfield changed
-
getCategory
public Optional<DriverCategory> getCategory()
“The category for this driver.”- Returns:
- property category
-
withCategory
public WindowsDriverUpdateInventory withCategory(DriverCategory category)
Returns an immutable copy ofthiswith just thecategoryfield 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 category for this driver.”
- Parameters:
category- new value ofcategoryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecategoryfield changed
-
getDeployDateTime
public Optional<OffsetDateTime> getDeployDateTime()
“The date time when a driver should be deployed if approvalStatus is approved.”- Returns:
- property deployDateTime
-
withDeployDateTime
public WindowsDriverUpdateInventory withDeployDateTime(OffsetDateTime deployDateTime)
Returns an immutable copy ofthiswith just thedeployDateTimefield 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 date time when a driver should be deployed if approvalStatus is approved.”
- Parameters:
deployDateTime- new value ofdeployDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeployDateTimefield changed
-
getDriverClass
public Optional<String> getDriverClass()
“The class of the driver.”- Returns:
- property driverClass
-
withDriverClass
public WindowsDriverUpdateInventory withDriverClass(String driverClass)
Returns an immutable copy ofthiswith just thedriverClassfield 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 class of the driver.”
- Parameters:
driverClass- new value ofdriverClassfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedriverClassfield changed
-
getManufacturer
public Optional<String> getManufacturer()
“The manufacturer of the driver.”- Returns:
- property manufacturer
-
withManufacturer
public WindowsDriverUpdateInventory withManufacturer(String manufacturer)
Returns an immutable copy ofthiswith just themanufacturerfield 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 manufacturer of the driver.”
- Parameters:
manufacturer- new value ofmanufacturerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanufacturerfield changed
-
withName
public WindowsDriverUpdateInventory withName(String name)
Returns an immutable copy ofthiswith just thenamefield 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 name of the driver.”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
getReleaseDateTime
public Optional<OffsetDateTime> getReleaseDateTime()
“The release date time of the driver.”- Returns:
- property releaseDateTime
-
withReleaseDateTime
public WindowsDriverUpdateInventory withReleaseDateTime(OffsetDateTime releaseDateTime)
Returns an immutable copy ofthiswith just thereleaseDateTimefield 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 release date time of the driver.”
- Parameters:
releaseDateTime- new value ofreleaseDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thereleaseDateTimefield changed
-
getVersion
public Optional<String> getVersion()
“The version of the driver.”- Returns:
- property version
-
withVersion
public WindowsDriverUpdateInventory 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.“The version of the driver.”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public WindowsDriverUpdateInventory 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 WindowsDriverUpdateInventory patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public WindowsDriverUpdateInventory put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-