Class Subscription

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

    public class Subscription
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType

    Org.OData.Capabilities.V1.CountRestrictions

    Countable = false

    Org.OData.Capabilities.V1.ExpandRestrictions

    Expandable = false

    Org.OData.Capabilities.V1.FilterRestrictions

    Filterable = false

    Org.OData.Capabilities.V1.NavigationRestrictions

    Referenceable = false

    Org.OData.Capabilities.V1.SelectRestrictions

    Selectable = false

    Org.OData.Capabilities.V1.SkipSupported

    false

    Org.OData.Capabilities.V1.SortRestrictions

    Sortable = false

    Org.OData.Capabilities.V1.TopSupported

    false

    • Field Detail

      • applicationId

        protected String applicationId
      • changeType

        protected String changeType
      • clientState

        protected String clientState
      • creatorId

        protected String creatorId
      • encryptionCertificate

        protected String encryptionCertificate
      • encryptionCertificateId

        protected String encryptionCertificateId
      • includeResourceData

        protected Boolean includeResourceData
      • latestSupportedTlsVersion

        protected String latestSupportedTlsVersion
      • lifecycleNotificationUrl

        protected String lifecycleNotificationUrl
      • notificationQueryOptions

        protected String notificationQueryOptions
      • notificationUrl

        protected String notificationUrl
      • notificationUrlAppId

        protected String notificationUrlAppId
      • resource

        protected String resource
    • Constructor Detail

      • Subscription

        protected Subscription()
    • Method Detail

      • odataTypeName

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

        public static Subscription.Builder builderSubscription()
        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
      • getEncryptionCertificate

        public Optional<String> getEncryptionCertificate()
      • withEncryptionCertificate

        public Subscription withEncryptionCertificate​(String encryptionCertificate)
      • getEncryptionCertificateId

        public Optional<String> getEncryptionCertificateId()
      • withEncryptionCertificateId

        public Subscription withEncryptionCertificateId​(String encryptionCertificateId)
      • getIncludeResourceData

        public Optional<Boolean> getIncludeResourceData()
      • withIncludeResourceData

        public Subscription withIncludeResourceData​(Boolean includeResourceData)
      • getLatestSupportedTlsVersion

        public Optional<String> getLatestSupportedTlsVersion()
      • withLatestSupportedTlsVersion

        public Subscription withLatestSupportedTlsVersion​(String latestSupportedTlsVersion)
      • getLifecycleNotificationUrl

        public Optional<String> getLifecycleNotificationUrl()
      • withLifecycleNotificationUrl

        public Subscription withLifecycleNotificationUrl​(String lifecycleNotificationUrl)
      • getNotificationQueryOptions

        public Optional<String> getNotificationQueryOptions()
      • withNotificationQueryOptions

        public Subscription withNotificationQueryOptions​(String notificationQueryOptions)
      • withNotificationUrl

        public Subscription withNotificationUrl​(String notificationUrl)
      • getNotificationUrlAppId

        public Optional<String> getNotificationUrlAppId()
      • withNotificationUrlAppId

        public Subscription withNotificationUrlAppId​(String notificationUrlAppId)
      • 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 Subscription 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 Subscription 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