Package odata.msgraph.client.entity
Class UserInstallStateSummary
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.UserInstallStateSummary
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class UserInstallStateSummary extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties for the installation state summary for a user.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserInstallStateSummary.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<DeviceInstallState>deviceStatesprotected IntegerfailedDeviceCountprotected IntegerinstalledDeviceCountprotected IntegernotInstalledDeviceCountprotected StringuserName-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserInstallStateSummary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserInstallStateSummary.BuilderbuilderUserInstallStateSummary()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()DeviceInstallStateCollectionRequestgetDeviceStates()“The install state of the eBook.”Optional<Integer>getFailedDeviceCount()“Failed Device Count.”Optional<Integer>getInstalledDeviceCount()“Installed Device Count.”Optional<Integer>getNotInstalledDeviceCount()“Not installed device count.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserName()“User name.”StringodataTypeName()UserInstallStateSummarypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)UserInstallStateSummaryput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()UserInstallStateSummarywithDeviceStates(List<DeviceInstallState> deviceStates)Returns an immutable copy ofthiswith just thedeviceStatesfield changed.UserInstallStateSummarywithFailedDeviceCount(Integer failedDeviceCount)Returns an immutable copy ofthiswith just thefailedDeviceCountfield changed.UserInstallStateSummarywithInstalledDeviceCount(Integer installedDeviceCount)Returns an immutable copy ofthiswith just theinstalledDeviceCountfield changed.UserInstallStateSummarywithNotInstalledDeviceCount(Integer notInstalledDeviceCount)Returns an immutable copy ofthiswith just thenotInstalledDeviceCountfield changed.UserInstallStateSummarywithUnmappedField(String name, Object value)UserInstallStateSummarywithUserName(String userName)Returns an immutable copy ofthiswith just theuserNamefield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderUserInstallStateSummary
public static UserInstallStateSummary.Builder builderUserInstallStateSummary()
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
-
getFailedDeviceCount
public Optional<Integer> getFailedDeviceCount()
“Failed Device Count.”- Returns:
- property failedDeviceCount
-
withFailedDeviceCount
public UserInstallStateSummary withFailedDeviceCount(Integer failedDeviceCount)
Returns an immutable copy ofthiswith just thefailedDeviceCountfield 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.“Failed Device Count.”
- Parameters:
failedDeviceCount- new value offailedDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefailedDeviceCountfield changed
-
getInstalledDeviceCount
public Optional<Integer> getInstalledDeviceCount()
“Installed Device Count.”- Returns:
- property installedDeviceCount
-
withInstalledDeviceCount
public UserInstallStateSummary withInstalledDeviceCount(Integer installedDeviceCount)
Returns an immutable copy ofthiswith just theinstalledDeviceCountfield 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.“Installed Device Count.”
- Parameters:
installedDeviceCount- new value ofinstalledDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinstalledDeviceCountfield changed
-
getNotInstalledDeviceCount
public Optional<Integer> getNotInstalledDeviceCount()
“Not installed device count.”- Returns:
- property notInstalledDeviceCount
-
withNotInstalledDeviceCount
public UserInstallStateSummary withNotInstalledDeviceCount(Integer notInstalledDeviceCount)
Returns an immutable copy ofthiswith just thenotInstalledDeviceCountfield 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.“Not installed device count.”
- Parameters:
notInstalledDeviceCount- new value ofnotInstalledDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenotInstalledDeviceCountfield changed
-
withUserName
public UserInstallStateSummary 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 UserInstallStateSummary withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getDeviceStates
public DeviceInstallStateCollectionRequest getDeviceStates()
“The install state of the eBook.”- Returns:
- navigational property deviceStates
-
withDeviceStates
public UserInstallStateSummary withDeviceStates(List<DeviceInstallState> deviceStates)
Returns an immutable copy ofthiswith just thedeviceStatesfield 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 install state of the eBook.”
- Parameters:
deviceStates- new value ofdeviceStatesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceStatesfield changed
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public UserInstallStateSummary patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public UserInstallStateSummary put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-