Package odata.msgraph.client.entity
Class DeviceManagementExchangeConnector
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementExchangeConnector.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringconnectorServerNameprotected StringexchangeAliasprotected DeviceManagementExchangeConnectorTypeexchangeConnectorTypeprotected StringexchangeOrganizationprotected OffsetDateTimelastSyncDateTimeprotected StringprimarySmtpAddressprotected StringserverNameprotected DeviceManagementExchangeConnectorStatusstatusprotected Stringversion-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementExchangeConnector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementExchangeConnector.BuilderbuilderDeviceManagementExchangeConnector()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getConnectorServerName()“The name of the server hosting the Exchange Connector.”Optional<String>getExchangeAlias()“An alias assigned to the Exchange server”Optional<DeviceManagementExchangeConnectorType>getExchangeConnectorType()“The type of Exchange Connector Configured.”Optional<String>getExchangeOrganization()“Exchange Organization to the Exchange server”Optional<OffsetDateTime>getLastSyncDateTime()“Last sync time for the Exchange Connector”Optional<String>getPrimarySmtpAddress()“Email address used to configure the Service To Service Exchange Connector.”Optional<String>getServerName()“The name of the Exchange server.”Optional<DeviceManagementExchangeConnectorStatus>getStatus()“Exchange Connector Status”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersion()“The version of the ExchangeConnectorAgent”StringodataTypeName()DeviceManagementExchangeConnectorpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementExchangeConnectorput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnsync(DeviceManagementExchangeConnectorSyncType syncType)StringtoString()DeviceManagementExchangeConnectorwithConnectorServerName(String connectorServerName)Returns an immutable copy ofthiswith just theconnectorServerNamefield changed.DeviceManagementExchangeConnectorwithExchangeAlias(String exchangeAlias)Returns an immutable copy ofthiswith just theexchangeAliasfield changed.DeviceManagementExchangeConnectorwithExchangeConnectorType(DeviceManagementExchangeConnectorType exchangeConnectorType)Returns an immutable copy ofthiswith just theexchangeConnectorTypefield changed.DeviceManagementExchangeConnectorwithExchangeOrganization(String exchangeOrganization)Returns an immutable copy ofthiswith just theexchangeOrganizationfield changed.DeviceManagementExchangeConnectorwithLastSyncDateTime(OffsetDateTime lastSyncDateTime)Returns an immutable copy ofthiswith just thelastSyncDateTimefield changed.DeviceManagementExchangeConnectorwithPrimarySmtpAddress(String primarySmtpAddress)Returns an immutable copy ofthiswith just theprimarySmtpAddressfield changed.DeviceManagementExchangeConnectorwithServerName(String serverName)Returns an immutable copy ofthiswith just theserverNamefield changed.DeviceManagementExchangeConnectorwithStatus(DeviceManagementExchangeConnectorStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.DeviceManagementExchangeConnectorwithUnmappedField(String name, Object value)DeviceManagementExchangeConnectorwithVersion(String version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
connectorServerName
protected String connectorServerName
-
exchangeAlias
protected String exchangeAlias
-
exchangeConnectorType
protected DeviceManagementExchangeConnectorType exchangeConnectorType
-
exchangeOrganization
protected String exchangeOrganization
-
lastSyncDateTime
protected OffsetDateTime lastSyncDateTime
-
primarySmtpAddress
protected String primarySmtpAddress
-
serverName
protected String serverName
-
status
protected DeviceManagementExchangeConnectorStatus status
-
version
protected String version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
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 ofthiswith just theconnectorServerNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofconnectorServerNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theconnectorServerNamefield 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 ofthiswith just theexchangeAliasfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofexchangeAliasfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexchangeAliasfield changed
-
getExchangeConnectorType
public Optional<DeviceManagementExchangeConnectorType> getExchangeConnectorType()
“The type of Exchange Connector Configured.”- Returns:
- property exchangeConnectorType
-
withExchangeConnectorType
public DeviceManagementExchangeConnector withExchangeConnectorType(DeviceManagementExchangeConnectorType exchangeConnectorType)
Returns an immutable copy ofthiswith just theexchangeConnectorTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofexchangeConnectorTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexchangeConnectorTypefield 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 ofthiswith just theexchangeOrganizationfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofexchangeOrganizationfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexchangeOrganizationfield 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 ofthiswith just thelastSyncDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 oflastSyncDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastSyncDateTimefield 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 ofthiswith just theprimarySmtpAddressfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofprimarySmtpAddressfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theprimarySmtpAddressfield 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 ofthiswith just theserverNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofserverNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theserverNamefield changed
-
getStatus
public Optional<DeviceManagementExchangeConnectorStatus> getStatus()
“Exchange Connector Status”- Returns:
- property status
-
withStatus
public DeviceManagementExchangeConnector withStatus(DeviceManagementExchangeConnectorStatus status)
Returns an immutable copy ofthiswith just thestatusfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Exchange Connector Status”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
getVersion
public Optional<String> getVersion()
“The version of the ExchangeConnectorAgent”- Returns:
- property version
-
withVersion
public DeviceManagementExchangeConnector withVersion(String version)
Returns an immutable copy ofthiswith just theversionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The version of the ExchangeConnectorAgent”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public DeviceManagementExchangeConnector withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementExchangeConnector patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementExchangeConnector put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
sync
public com.github.davidmoten.odata.client.ActionRequestNoReturn sync(DeviceManagementExchangeConnectorSyncType syncType)
-
-