Class ManagedEBook

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType
    Direct Known Subclasses:
    IosVppEBook

    public class ManagedEBook
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “An abstract class containing the base properties for Managed eBook.”
    • Field Detail

      • description

        protected String description
      • displayName

        protected String displayName
      • informationUrl

        protected String informationUrl
      • privacyInformationUrl

        protected String privacyInformationUrl
      • publisher

        protected String publisher
    • Constructor Detail

      • ManagedEBook

        protected ManagedEBook()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “The date and time when the eBook file was created.”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public ManagedEBook withCreatedDateTime​(OffsetDateTime createdDateTime)
        Returns an immutable copy of this with just the createdDateTime 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 date and time when the eBook file was created.”

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

        public Optional<String> getDescription()
        “Description.”
        Returns:
        property description
      • withDescription

        public ManagedEBook withDescription​(String description)
        Returns an immutable copy of this with just the description 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.

        “Description.”

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

        public Optional<String> getDisplayName()
        “Name of the eBook.”
        Returns:
        property displayName
      • withDisplayName

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

        “Name of the eBook.”

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

        public Optional<String> getInformationUrl()
        “The more information Url.”
        Returns:
        property informationUrl
      • withInformationUrl

        public ManagedEBook withInformationUrl​(String informationUrl)
        Returns an immutable copy of this with just the informationUrl 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 more information Url.”

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

        public Optional<MimeContent> getLargeCover()
        “Book cover.”
        Returns:
        property largeCover
      • withLargeCover

        public ManagedEBook withLargeCover​(MimeContent largeCover)
        Returns an immutable copy of this with just the largeCover 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.

        “Book cover.”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “The date and time when the eBook was last modified.”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public ManagedEBook withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime 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 date and time when the eBook was last modified.”

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

        public Optional<String> getPrivacyInformationUrl()
        “The privacy statement Url.”
        Returns:
        property privacyInformationUrl
      • withPrivacyInformationUrl

        public ManagedEBook withPrivacyInformationUrl​(String privacyInformationUrl)
        Returns an immutable copy of this with just the privacyInformationUrl 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 privacy statement Url.”

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

        public Optional<OffsetDateTime> getPublishedDateTime()
        “The date and time when the eBook was published.”
        Returns:
        property publishedDateTime
      • withPublishedDateTime

        public ManagedEBook withPublishedDateTime​(OffsetDateTime publishedDateTime)
        Returns an immutable copy of this with just the publishedDateTime 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 date and time when the eBook was published.”

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

        public Optional<String> getPublisher()
        “Publisher.”
        Returns:
        property publisher
      • withPublisher

        public ManagedEBook withPublisher​(String publisher)
        Returns an immutable copy of this with just the publisher 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.

        “Publisher.”

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

        public DeviceInstallStateCollectionRequest getDeviceStates()
        “The list of installation states for this eBook.”
        Returns:
        navigational property deviceStates
      • getInstallSummary

        public EBookInstallSummaryRequest getInstallSummary()
        “Mobile App Install Summary.”
        Returns:
        navigational property installSummary
      • 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 ManagedEBook 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 ManagedEBook 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
      • assign

        public com.github.davidmoten.odata.client.ActionRequestNoReturn assign​(List<ManagedEBookAssignment> managedEBookAssignments)