Class DeviceManagementComplianceActionItem

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

    public class DeviceManagementComplianceActionItem
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Scheduled Action for Rule”
    • Field Detail

      • gracePeriodHours

        protected Integer gracePeriodHours
      • notificationMessageCCList

        protected List<String> notificationMessageCCList
      • notificationMessageCCListNextLink

        protected String notificationMessageCCListNextLink
      • notificationTemplateId

        protected String notificationTemplateId
    • Constructor Detail

      • DeviceManagementComplianceActionItem

        protected DeviceManagementComplianceActionItem()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementComplianceActionItem.Builder builderDeviceManagementComplianceActionItem()
        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
      • withActionType

        public DeviceManagementComplianceActionItem withActionType​(DeviceManagementComplianceActionType actionType)
        Returns an immutable copy of this with just the actionType 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.

        “What action to take”

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

        public Optional<Integer> getGracePeriodHours()
        “Number of hours to wait till the action will be enforced. Valid values 0 to 8760”
        Returns:
        property gracePeriodHours
      • withGracePeriodHours

        public DeviceManagementComplianceActionItem withGracePeriodHours​(Integer gracePeriodHours)
        Returns an immutable copy of this with just the gracePeriodHours 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 hours to wait till the action will be enforced. Valid values 0 to 8760”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getNotificationMessageCCList()
        “A list of group IDs to speicify who to CC this notification message to. This collection can contain a maximum of 100 elements.”
        Returns:
        property notificationMessageCCList
      • withNotificationMessageCCList

        public DeviceManagementComplianceActionItem withNotificationMessageCCList​(List<String> notificationMessageCCList)
        Returns an immutable copy of this with just the notificationMessageCCList 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.

        “A list of group IDs to speicify who to CC this notification message to. This collection can contain a maximum of 100 elements.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getNotificationMessageCCList​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “A list of group IDs to speicify who to CC this notification message to. This collection can contain a maximum of 100 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property notificationMessageCCList
      • getNotificationTemplateId

        public Optional<String> getNotificationTemplateId()
        “What notification Message template to use”
        Returns:
        property notificationTemplateId
      • withNotificationTemplateId

        public DeviceManagementComplianceActionItem withNotificationTemplateId​(String notificationTemplateId)
        Returns an immutable copy of this with just the notificationTemplateId 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.

        “What notification Message template to use”

        Parameters:
        notificationTemplateId - new value of notificationTemplateId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the notificationTemplateId 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 DeviceManagementComplianceActionItem 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 DeviceManagementComplianceActionItem 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