Class DeviceManagementIntentDeviceStateSummary

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

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

      • conflictCount

        protected Integer conflictCount
      • errorCount

        protected Integer errorCount
      • failedCount

        protected Integer failedCount
      • notApplicableCount

        protected Integer notApplicableCount
      • notApplicablePlatformCount

        protected Integer notApplicablePlatformCount
      • successCount

        protected Integer successCount
    • Constructor Detail

      • DeviceManagementIntentDeviceStateSummary

        protected DeviceManagementIntentDeviceStateSummary()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementIntentDeviceStateSummary.Builder builderDeviceManagementIntentDeviceStateSummary()
        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 devices in conflict”
        Returns:
        property conflictCount
      • withConflictCount

        public DeviceManagementIntentDeviceStateSummary 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 devices 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 devices”
        Returns:
        property errorCount
      • withErrorCount

        public DeviceManagementIntentDeviceStateSummary 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 devices”

        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 devices”
        Returns:
        property failedCount
      • withFailedCount

        public DeviceManagementIntentDeviceStateSummary 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 devices”

        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 devices”
        Returns:
        property notApplicableCount
      • withNotApplicableCount

        public DeviceManagementIntentDeviceStateSummary 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 devices”

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

        public Optional<Integer> getNotApplicablePlatformCount()
        “Number of not applicable devices due to mismatch platform and policy”
        Returns:
        property notApplicablePlatformCount
      • withNotApplicablePlatformCount

        public DeviceManagementIntentDeviceStateSummary withNotApplicablePlatformCount​(Integer notApplicablePlatformCount)
        Returns an immutable copy of this with just the notApplicablePlatformCount 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 devices due to mismatch platform and policy”

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

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

        public DeviceManagementIntentDeviceStateSummary 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 devices”

        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 DeviceManagementIntentDeviceStateSummary 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 DeviceManagementIntentDeviceStateSummary 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