Class MicrosoftTunnelServer

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

    public class MicrosoftTunnelServer
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity that represents a single Microsoft Tunnel server”
    • Constructor Detail

      • MicrosoftTunnelServer

        protected MicrosoftTunnelServer()
    • Method Detail

      • odataTypeName

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

        public static MicrosoftTunnelServer.Builder builderMicrosoftTunnelServer()
        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
      • getAgentImageDigest

        public Optional<String> getAgentImageDigest()
        “The digest of the current agent image running on this server”
        Returns:
        property agentImageDigest
      • withAgentImageDigest

        public MicrosoftTunnelServer withAgentImageDigest​(String agentImageDigest)
        Returns an immutable copy of this with just the agentImageDigest 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 digest of the current agent image running on this server”

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

        public Optional<String> getDisplayName()
        “The MicrosoftTunnelServer's display name”
        Returns:
        property displayName
      • withDisplayName

        public MicrosoftTunnelServer withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName 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 MicrosoftTunnelServer's display name”

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

        public Optional<OffsetDateTime> getLastCheckinDateTime()
        “When the MicrosoftTunnelServer last checked in”
        Returns:
        property lastCheckinDateTime
      • withLastCheckinDateTime

        public MicrosoftTunnelServer withLastCheckinDateTime​(OffsetDateTime lastCheckinDateTime)
        Returns an immutable copy of this with just the lastCheckinDateTime 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.

        “When the MicrosoftTunnelServer last checked in”

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

        public Optional<String> getServerImageDigest()
        “The digest of the current server image running on this server”
        Returns:
        property serverImageDigest
      • withServerImageDigest

        public MicrosoftTunnelServer withServerImageDigest​(String serverImageDigest)
        Returns an immutable copy of this with just the serverImageDigest 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 digest of the current server image running on this server”

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

        public MicrosoftTunnelServer withTunnelServerHealthStatus​(MicrosoftTunnelServerHealthStatus tunnelServerHealthStatus)
        Returns an immutable copy of this with just the tunnelServerHealthStatus 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 MicrosoftTunnelServer's health status”

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

        public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<KeyLongValuePair> getHealthMetrics​(List<String> metricNames)