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

      • errorCode

        protected Long errorCode
      • expirationDateTimeUTC

        protected OffsetDateTime expirationDateTimeUTC
      • initiatedByUserPrincipalName

        protected String initiatedByUserPrincipalName
      • managedDeviceId

        protected UUID managedDeviceId
      • status

        protected String status
    • 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
      • getErrorCode

        public Optional<Long> getErrorCode()
        “The error code, if any. Valid values -9.22337203685478E+18 to 9.22337203685478E+ 18”
        Returns:
        property errorCode
      • withErrorCode

        public DeviceLogCollectionResponse withErrorCode​(Long errorCode)
        Returns an immutable copy of this with just the errorCode 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 error code, if any. Valid values -9.22337203685478E+18 to 9.22337203685478E+ 18”

        Parameters:
        errorCode - new value of errorCode field (as defined in service metadata)
        Returns:
        immutable copy of this with just the errorCode 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()
        “The device Id”
        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.

        “The device Id”

        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
      • getSize

        public Optional<Double> getSize()
        “The size of the logs. Valid values -1.79769313486232E+308 to 1.79769313486232E+ 308”
        Returns:
        property size
      • withSize

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

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

        public Optional<String> getStatus()
        “The status of the log collection request”
        Returns:
        property status
      • withStatus

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

        “The status of the log collection request”

        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()