Class AppLogCollectionRequest

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

    public class AppLogCollectionRequest
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity for AppLogCollectionRequest contains all logs values.”
    • Constructor Detail

      • AppLogCollectionRequest

        protected AppLogCollectionRequest()
    • Method Detail

      • odataTypeName

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

        public static AppLogCollectionRequest.Builder builderAppLogCollectionRequest()
        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
      • getCompletedDateTime

        public Optional<OffsetDateTime> getCompletedDateTime()
        “Time at which the upload log request reached a completed state if not completed yet NULL will be returned.”
        Returns:
        property completedDateTime
      • withCompletedDateTime

        public AppLogCollectionRequest withCompletedDateTime​(OffsetDateTime completedDateTime)
        Returns an immutable copy of this with just the completedDateTime 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 at which the upload log request reached a completed state if not completed yet NULL will be returned.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getCustomLogFolders()
        “List of log folders.”
        Returns:
        property customLogFolders
      • withCustomLogFolders

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

        “List of log folders.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getCustomLogFolders​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of log folders.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property customLogFolders
      • getErrorMessage

        public Optional<String> getErrorMessage()
        “Indicates error message if any during the upload process.”
        Returns:
        property errorMessage
      • withErrorMessage

        public AppLogCollectionRequest withErrorMessage​(String errorMessage)
        Returns an immutable copy of this with just the errorMessage 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 error message if any during the upload process.”

        Parameters:
        errorMessage - new value of errorMessage field (as defined in service metadata)
        Returns:
        immutable copy of this with just the errorMessage 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 AppLogCollectionRequest 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 AppLogCollectionRequest 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 AppLogCollectionRequest 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.ActionRequestReturningNonCollectionUnwrapped<AppLogCollectionDownloadDetails> createDownloadUrl()