Class MicrosoftTunnelServerLogCollectionResponse

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

    public class MicrosoftTunnelServerLogCollectionResponse
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity that stores the server log collection status.”
    • Constructor Detail

      • MicrosoftTunnelServerLogCollectionResponse

        protected MicrosoftTunnelServerLogCollectionResponse()
    • Method Detail

      • odataTypeName

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

        public static MicrosoftTunnelServerLogCollectionResponse.Builder builderMicrosoftTunnelServerLogCollectionResponse()
        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
      • getEndDateTime

        public Optional<OffsetDateTime> getEndDateTime()
        “The end time of the logs collected”
        Returns:
        property endDateTime
      • withEndDateTime

        public MicrosoftTunnelServerLogCollectionResponse 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.

        “The end time of the logs collected”

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

        public Optional<OffsetDateTime> getExpiryDateTime()
        “The time when the log collection is expired”
        Returns:
        property expiryDateTime
      • withExpiryDateTime

        public MicrosoftTunnelServerLogCollectionResponse withExpiryDateTime​(OffsetDateTime expiryDateTime)
        Returns an immutable copy of this with just the expiryDateTime 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 time when the log collection is expired”

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

        public Optional<OffsetDateTime> getRequestDateTime()
        “The time when the log collection was requested”
        Returns:
        property requestDateTime
      • withRequestDateTime

        public MicrosoftTunnelServerLogCollectionResponse withRequestDateTime​(OffsetDateTime requestDateTime)
        Returns an immutable copy of this with just the requestDateTime 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 time when the log collection was requested”

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

        public Optional<String> getServerId()
        “ID of the server the log collection is requested upon”
        Returns:
        property serverId
      • withServerId

        public MicrosoftTunnelServerLogCollectionResponse withServerId​(String serverId)
        Returns an immutable copy of this with just the serverId 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.

        “ID of the server the log collection is requested upon”

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

        public Optional<Long> getSizeInBytes()
        “The size of the logs in bytes”
        Returns:
        property sizeInBytes
      • withSizeInBytes

        public MicrosoftTunnelServerLogCollectionResponse withSizeInBytes​(Long sizeInBytes)
        Returns an immutable copy of this with just the sizeInBytes 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 bytes”

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

        public Optional<OffsetDateTime> getStartDateTime()
        “The start time of the logs collected”
        Returns:
        property startDateTime
      • withStartDateTime

        public MicrosoftTunnelServerLogCollectionResponse 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.

        “The start time of the logs collected”

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

        public MicrosoftTunnelServerLogCollectionResponse withStatus​(MicrosoftTunnelLogCollectionStatus 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 log collection”

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