Class DeviceManagementReportSchedule

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

    public class DeviceManagementReportSchedule
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity representing a schedule for which reports are delivered”
    • Constructor Detail

      • DeviceManagementReportSchedule

        protected DeviceManagementReportSchedule()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementReportSchedule.Builder builderDeviceManagementReportSchedule()
        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
      • getEmails

        public com.github.davidmoten.odata.client.CollectionPage<String> getEmails()
        “Emails to which the scheduled reports are delivered”
        Returns:
        property emails
      • withEmails

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

        “Emails to which the scheduled reports are delivered”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getEmails​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Emails to which the scheduled reports are delivered”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property emails
      • getEndDateTime

        public Optional<OffsetDateTime> getEndDateTime()
        “Time that the delivery of the scheduled reports ends”
        Returns:
        property endDateTime
      • withEndDateTime

        public DeviceManagementReportSchedule withEndDateTime​(OffsetDateTime endDateTime)
        Returns an immutable copy of this with just the endDateTime 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.

        “Time that the delivery of the scheduled reports ends”

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

        public Optional<String> getFilter()
        “Filters applied on the report”
        Returns:
        property filter
      • withFilter

        public DeviceManagementReportSchedule withFilter​(String filter)
        Returns an immutable copy of this with just the filter 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.

        “Filters applied on the report”

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

        public DeviceManagementReportSchedule withFormat​(DeviceManagementReportFileFormat format)
        Returns an immutable copy of this with just the format 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.

        “Format of the scheduled report”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getOrderBy()
        “Ordering of columns in the report”
        Returns:
        property orderBy
      • withOrderBy

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

        “Ordering of columns in the report”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getOrderBy​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Ordering of columns in the report”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property orderBy
      • withRecurrence

        public DeviceManagementReportSchedule withRecurrence​(DeviceManagementScheduledReportRecurrence recurrence)
        Returns an immutable copy of this with just the recurrence 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.

        “Frequency of scheduled report delivery”

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

        public Optional<String> getReportName()
        “Name of the report”
        Returns:
        property reportName
      • withReportName

        public DeviceManagementReportSchedule withReportName​(String reportName)
        Returns an immutable copy of this with just the reportName 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.

        “Name of the report”

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

        public Optional<String> getReportScheduleName()
        “Name of the schedule”
        Returns:
        property reportScheduleName
      • withReportScheduleName

        public DeviceManagementReportSchedule withReportScheduleName​(String reportScheduleName)
        Returns an immutable copy of this with just the reportScheduleName 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.

        “Name of the schedule”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getSelect()
        “Columns selected from the report”
        Returns:
        property select
      • withSelect

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

        “Columns selected from the report”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getSelect​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Columns selected from the report”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property select
      • getStartDateTime

        public Optional<OffsetDateTime> getStartDateTime()
        “Time that the delivery of the scheduled reports starts”
        Returns:
        property startDateTime
      • withStartDateTime

        public DeviceManagementReportSchedule withStartDateTime​(OffsetDateTime startDateTime)
        Returns an immutable copy of this with just the startDateTime 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.

        “Time that the delivery of the scheduled reports starts”

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

        public Optional<String> getSubject()
        “Subject of the scheduled reports that are delivered”
        Returns:
        property subject
      • withSubject

        public DeviceManagementReportSchedule withSubject​(String subject)
        Returns an immutable copy of this with just the subject 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.

        “Subject of the scheduled reports that are delivered”

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

        public Optional<String> getUserId()
        “The Id of the User who created the report”
        Returns:
        property userId
      • withUserId

        public DeviceManagementReportSchedule withUserId​(String userId)
        Returns an immutable copy of this with just the userId 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.

        “The Id of the User who created the report”

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