Class DeviceManagementPartner

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

    public class DeviceManagementPartner
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity which represents a connection to device management partner.”
    • Constructor Detail

      • DeviceManagementPartner

        protected DeviceManagementPartner()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementPartner.Builder builderDeviceManagementPartner()
        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
      • getDisplayName

        public Optional<String> getDisplayName()
        “Partner display name”
        Returns:
        property displayName
      • withDisplayName

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

        “Partner 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
      • getGroupsRequiringPartnerEnrollment

        public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementPartnerAssignment> getGroupsRequiringPartnerEnrollment()
        “User groups that specifies whether enrollment is through partner.”
        Returns:
        property groupsRequiringPartnerEnrollment
      • withGroupsRequiringPartnerEnrollment

        public DeviceManagementPartner withGroupsRequiringPartnerEnrollment​(List<DeviceManagementPartnerAssignment> groupsRequiringPartnerEnrollment)
        Returns an immutable copy of this with just the groupsRequiringPartnerEnrollment 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.

        “User groups that specifies whether enrollment is through partner.”

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

        public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementPartnerAssignment> getGroupsRequiringPartnerEnrollment​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “User groups that specifies whether enrollment is through partner.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property groupsRequiringPartnerEnrollment
      • getIsConfigured

        public Optional<Boolean> getIsConfigured()
        “Whether device management partner is configured or not”
        Returns:
        property isConfigured
      • withIsConfigured

        public DeviceManagementPartner withIsConfigured​(Boolean isConfigured)
        Returns an immutable copy of this with just the isConfigured 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.

        “Whether device management partner is configured or not”

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

        public Optional<OffsetDateTime> getLastHeartbeatDateTime()
        “Timestamp of last heartbeat after admin enabled option Connect to Device management Partner”
        Returns:
        property lastHeartbeatDateTime
      • withLastHeartbeatDateTime

        public DeviceManagementPartner withLastHeartbeatDateTime​(OffsetDateTime lastHeartbeatDateTime)
        Returns an immutable copy of this with just the lastHeartbeatDateTime 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.

        “Timestamp of last heartbeat after admin enabled option Connect to Device management Partner”

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

        public DeviceManagementPartner withPartnerAppType​(DeviceManagementPartnerAppType partnerAppType)
        Returns an immutable copy of this with just the partnerAppType 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.

        “Partner App type”

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

        public DeviceManagementPartner withPartnerState​(DeviceManagementPartnerTenantState partnerState)
        Returns an immutable copy of this with just the partnerState 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.

        “Partner state of this tenant”

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

        public Optional<String> getSingleTenantAppId()
        “Partner Single tenant App id”
        Returns:
        property singleTenantAppId
      • withSingleTenantAppId

        public DeviceManagementPartner withSingleTenantAppId​(String singleTenantAppId)
        Returns an immutable copy of this with just the singleTenantAppId 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.

        “Partner Single tenant App id”

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

        public Optional<OffsetDateTime> getWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime()
        “DateTime in UTC when PartnerDevices will be marked as NonCompliant”
        Returns:
        property whenPartnerDevicesWillBeMarkedAsNonCompliantDateTime
      • withWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime

        public DeviceManagementPartner withWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime​(OffsetDateTime whenPartnerDevicesWillBeMarkedAsNonCompliantDateTime)
        Returns an immutable copy of this with just the whenPartnerDevicesWillBeMarkedAsNonCompliantDateTime 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.

        “DateTime in UTC when PartnerDevices will be marked as NonCompliant”

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

        public Optional<OffsetDateTime> getWhenPartnerDevicesWillBeRemovedDateTime()
        “DateTime in UTC when PartnerDevices will be removed”
        Returns:
        property whenPartnerDevicesWillBeRemovedDateTime
      • withWhenPartnerDevicesWillBeRemovedDateTime

        public DeviceManagementPartner withWhenPartnerDevicesWillBeRemovedDateTime​(OffsetDateTime whenPartnerDevicesWillBeRemovedDateTime)
        Returns an immutable copy of this with just the whenPartnerDevicesWillBeRemovedDateTime 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.

        “DateTime in UTC when PartnerDevices will be removed”

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

        public com.github.davidmoten.odata.client.ActionRequestNoReturn terminate()