Class DeviceManagementIntentUserStateSummary

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class DeviceManagementIntentUserStateSummary
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity that represents user state summary for an intent”
    • Field Detail

      • conflictCount

        protected Integer conflictCount
      • errorCount

        protected Integer errorCount
      • failedCount

        protected Integer failedCount
      • notApplicableCount

        protected Integer notApplicableCount
      • successCount

        protected Integer successCount
    • Constructor Detail

      • DeviceManagementIntentUserStateSummary

        protected DeviceManagementIntentUserStateSummary()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderDeviceManagementIntentUserStateSummary

        public static DeviceManagementIntentUserStateSummary.Builder builderDeviceManagementIntentUserStateSummary()
        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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getConflictCount

        public Optional<Integer> getConflictCount()
        “Number of users in conflict”
        Returns:
        property conflictCount
      • withConflictCount

        public DeviceManagementIntentUserStateSummary withConflictCount​(Integer conflictCount)
        Returns an immutable copy of this with just the conflictCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of users in conflict”

        Parameters:
        conflictCount - new value of conflictCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the conflictCount field changed
      • getErrorCount

        public Optional<Integer> getErrorCount()
        “Number of error users”
        Returns:
        property errorCount
      • withErrorCount

        public DeviceManagementIntentUserStateSummary withErrorCount​(Integer errorCount)
        Returns an immutable copy of this with just the errorCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of error users”

        Parameters:
        errorCount - new value of errorCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the errorCount field changed
      • getFailedCount

        public Optional<Integer> getFailedCount()
        “Number of failed users”
        Returns:
        property failedCount
      • withFailedCount

        public DeviceManagementIntentUserStateSummary withFailedCount​(Integer failedCount)
        Returns an immutable copy of this with just the failedCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of failed users”

        Parameters:
        failedCount - new value of failedCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the failedCount field changed
      • getNotApplicableCount

        public Optional<Integer> getNotApplicableCount()
        “Number of not applicable users”
        Returns:
        property notApplicableCount
      • withNotApplicableCount

        public DeviceManagementIntentUserStateSummary withNotApplicableCount​(Integer notApplicableCount)
        Returns an immutable copy of this with just the notApplicableCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of not applicable users”

        Parameters:
        notApplicableCount - new value of notApplicableCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the notApplicableCount field changed
      • getSuccessCount

        public Optional<Integer> getSuccessCount()
        “Number of succeeded users”
        Returns:
        property successCount
      • withSuccessCount

        public DeviceManagementIntentUserStateSummary withSuccessCount​(Integer successCount)
        Returns an immutable copy of this with just the successCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of succeeded users”

        Parameters:
        successCount - new value of successCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the successCount field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public DeviceManagementIntentUserStateSummary patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public DeviceManagementIntentUserStateSummary put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected