Class DeviceManagementCachedReportConfiguration

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

    public class DeviceManagementCachedReportConfiguration
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity representing the configuration of a cached report”
    • Constructor Detail

      • DeviceManagementCachedReportConfiguration

        protected DeviceManagementCachedReportConfiguration()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementCachedReportConfiguration.Builder builderDeviceManagementCachedReportConfiguration()
        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
      • getExpirationDateTime

        public Optional<OffsetDateTime> getExpirationDateTime()
        “Time that the cached report expires”
        Returns:
        property expirationDateTime
      • withExpirationDateTime

        public DeviceManagementCachedReportConfiguration withExpirationDateTime​(OffsetDateTime expirationDateTime)
        Returns an immutable copy of this with just the expirationDateTime 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 cached report expires”

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

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

        public DeviceManagementCachedReportConfiguration 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 report creation.”

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

        public Optional<OffsetDateTime> getLastRefreshDateTime()
        “Time that the cached report was last refreshed”
        Returns:
        property lastRefreshDateTime
      • withLastRefreshDateTime

        public DeviceManagementCachedReportConfiguration withLastRefreshDateTime​(OffsetDateTime lastRefreshDateTime)
        Returns an immutable copy of this with just the lastRefreshDateTime 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 cached report was last refreshed”

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

        public Optional<String> getMetadata()
        “Caller-managed metadata associated with the report”
        Returns:
        property metadata
      • withMetadata

        public DeviceManagementCachedReportConfiguration withMetadata​(String metadata)
        Returns an immutable copy of this with just the metadata 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.

        “Caller-managed metadata associated with the report”

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

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

        public DeviceManagementCachedReportConfiguration 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
      • getReportName

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

        public DeviceManagementCachedReportConfiguration 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
      • getSelect

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

        public DeviceManagementCachedReportConfiguration 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
      • withStatus

        public DeviceManagementCachedReportConfiguration withStatus​(DeviceManagementReportStatus status)
        Returns an immutable copy of this with just the status 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.

        “Status of the cached report”

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