Class DeviceManagementExchangeConnector

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

    public class DeviceManagementExchangeConnector
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity which represents a connection to an Exchange environment.”
    • Constructor Detail

      • DeviceManagementExchangeConnector

        protected DeviceManagementExchangeConnector()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementExchangeConnector.Builder builderDeviceManagementExchangeConnector()
        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
      • getConnectorServerName

        public Optional<String> getConnectorServerName()
        “The name of the server hosting the Exchange Connector.”
        Returns:
        property connectorServerName
      • withConnectorServerName

        public DeviceManagementExchangeConnector withConnectorServerName​(String connectorServerName)
        Returns an immutable copy of this with just the connectorServerName 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 name of the server hosting the Exchange Connector.”

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

        public Optional<String> getExchangeAlias()
        “An alias assigned to the Exchange server”
        Returns:
        property exchangeAlias
      • withExchangeAlias

        public DeviceManagementExchangeConnector withExchangeAlias​(String exchangeAlias)
        Returns an immutable copy of this with just the exchangeAlias 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.

        “An alias assigned to the Exchange server”

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

        public DeviceManagementExchangeConnector withExchangeConnectorType​(DeviceManagementExchangeConnectorType exchangeConnectorType)
        Returns an immutable copy of this with just the exchangeConnectorType 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 type of Exchange Connector Configured.”

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

        public Optional<String> getExchangeOrganization()
        “Exchange Organization to the Exchange server”
        Returns:
        property exchangeOrganization
      • withExchangeOrganization

        public DeviceManagementExchangeConnector withExchangeOrganization​(String exchangeOrganization)
        Returns an immutable copy of this with just the exchangeOrganization 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.

        “Exchange Organization to the Exchange server”

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

        public Optional<OffsetDateTime> getLastSyncDateTime()
        “Last sync time for the Exchange Connector”
        Returns:
        property lastSyncDateTime
      • withLastSyncDateTime

        public DeviceManagementExchangeConnector withLastSyncDateTime​(OffsetDateTime lastSyncDateTime)
        Returns an immutable copy of this with just the lastSyncDateTime 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.

        “Last sync time for the Exchange Connector”

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

        public Optional<String> getPrimarySmtpAddress()
        “Email address used to configure the Service To Service Exchange Connector.”
        Returns:
        property primarySmtpAddress
      • withPrimarySmtpAddress

        public DeviceManagementExchangeConnector withPrimarySmtpAddress​(String primarySmtpAddress)
        Returns an immutable copy of this with just the primarySmtpAddress 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.

        “Email address used to configure the Service To Service Exchange Connector.”

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

        public Optional<String> getServerName()
        “The name of the Exchange server.”
        Returns:
        property serverName
      • withServerName

        public DeviceManagementExchangeConnector withServerName​(String serverName)
        Returns an immutable copy of this with just the serverName 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 name of the Exchange server.”

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

        public DeviceManagementExchangeConnector withStatus​(DeviceManagementExchangeConnectorStatus 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.

        “Exchange Connector Status”

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

        public Optional<String> getVersion()
        “The version of the ExchangeConnectorAgent”
        Returns:
        property version
      • withVersion

        public DeviceManagementExchangeConnector withVersion​(String version)
        Returns an immutable copy of this with just the version 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 version of the ExchangeConnectorAgent”

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