Class DeviceLogCollectionResponse

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

    public class DeviceLogCollectionResponse
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Windows Log Collection request entity.”
    • Field Detail

      • enrolledByUser

        protected String enrolledByUser
      • expirationDateTimeUTC

        protected OffsetDateTime expirationDateTimeUTC
      • initiatedByUserPrincipalName

        protected String initiatedByUserPrincipalName
      • managedDeviceId

        protected UUID managedDeviceId
      • sizeInKB

        protected Double sizeInKB
    • Constructor Detail

      • DeviceLogCollectionResponse

        protected DeviceLogCollectionResponse()
    • Method Detail

      • odataTypeName

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

        public static DeviceLogCollectionResponse.Builder builderDeviceLogCollectionResponse()
        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
      • getEnrolledByUser

        public Optional<String> getEnrolledByUser()
        “The User Principal Name (UPN) of the user that enrolled the device.”
        Returns:
        property enrolledByUser
      • withEnrolledByUser

        public DeviceLogCollectionResponse withEnrolledByUser​(String enrolledByUser)
        Returns an immutable copy of this with just the enrolledByUser 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 User Principal Name (UPN) of the user that enrolled the device.”

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

        public Optional<OffsetDateTime> getExpirationDateTimeUTC()
        “The DateTime of the expiration of the logs.”
        Returns:
        property expirationDateTimeUTC
      • withExpirationDateTimeUTC

        public DeviceLogCollectionResponse withExpirationDateTimeUTC​(OffsetDateTime expirationDateTimeUTC)
        Returns an immutable copy of this with just the expirationDateTimeUTC 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 DateTime of the expiration of the logs.”

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

        public Optional<String> getInitiatedByUserPrincipalName()
        “The UPN for who initiated the request.”
        Returns:
        property initiatedByUserPrincipalName
      • withInitiatedByUserPrincipalName

        public DeviceLogCollectionResponse withInitiatedByUserPrincipalName​(String initiatedByUserPrincipalName)
        Returns an immutable copy of this with just the initiatedByUserPrincipalName 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 UPN for who initiated the request.”

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

        public Optional<UUID> getManagedDeviceId()
        “Indicates Intune device unique identifier.”
        Returns:
        property managedDeviceId
      • withManagedDeviceId

        public DeviceLogCollectionResponse withManagedDeviceId​(UUID managedDeviceId)
        Returns an immutable copy of this with just the managedDeviceId 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.

        “Indicates Intune device unique identifier.”

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

        public Optional<OffsetDateTime> getReceivedDateTimeUTC()
        “The DateTime the request was received.”
        Returns:
        property receivedDateTimeUTC
      • withReceivedDateTimeUTC

        public DeviceLogCollectionResponse withReceivedDateTimeUTC​(OffsetDateTime receivedDateTimeUTC)
        Returns an immutable copy of this with just the receivedDateTimeUTC 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 DateTime the request was received.”

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

        public Optional<OffsetDateTime> getRequestedDateTimeUTC()
        “The DateTime of the request.”
        Returns:
        property requestedDateTimeUTC
      • withRequestedDateTimeUTC

        public DeviceLogCollectionResponse withRequestedDateTimeUTC​(OffsetDateTime requestedDateTimeUTC)
        Returns an immutable copy of this with just the requestedDateTimeUTC 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 DateTime of the request.”

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

        public Optional<Double> getSizeInKB()
        “The size of the logs in KB. Valid values -1.79769313486232E+308 to 1. 79769313486232E+308”
        Returns:
        property sizeInKB
      • withSizeInKB

        public DeviceLogCollectionResponse withSizeInKB​(Double sizeInKB)
        Returns an immutable copy of this with just the sizeInKB 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 size of the logs in KB. Valid values -1.79769313486232E+308 to 1. 79769313486232E+308”

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

        public Optional<AppLogUploadState> getStatus()
        “Indicates the status for the app log collection request if it is pending, completed or failed, Default is pending.”
        Returns:
        property status
      • withStatus

        public DeviceLogCollectionResponse withStatus​(AppLogUploadState 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.

        “Indicates the status for the app log collection request if it is pending, completed or failed, Default is pending.”

        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 DeviceLogCollectionResponse 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 DeviceLogCollectionResponse 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
      • createDownloadUrl

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String> createDownloadUrl()