Class BrowserSharedCookie

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

    public class BrowserSharedCookie
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    • Constructor Detail

      • BrowserSharedCookie

        protected BrowserSharedCookie()
    • Method Detail

      • odataTypeName

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

        public static BrowserSharedCookie.Builder builderBrowserSharedCookie()
        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
      • getComment

        public Optional<String> getComment()
        “The comment of the cookie”
        Returns:
        property comment
      • withComment

        public BrowserSharedCookie withComment​(String comment)
        Returns an immutable copy of this with just the comment 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 comment of the cookie”

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

        public Optional<OffsetDateTime> getCreatedDateTime()
        “The datetime that the admin created the cookie”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public BrowserSharedCookie 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 datetime that the admin created the cookie”

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

        public Optional<OffsetDateTime> getDeletedDateTime()
        “The datetime that the admin deleted the cookie”
        Returns:
        property deletedDateTime
      • withDeletedDateTime

        public BrowserSharedCookie withDeletedDateTime​(OffsetDateTime deletedDateTime)
        Returns an immutable copy of this with just the deletedDateTime 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 datetime that the admin deleted the cookie”

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

        public Optional<String> getDisplayName()
        “The name of the cookie”
        Returns:
        property displayName
      • withDisplayName

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

        “The name of the cookie”

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

        public com.github.davidmoten.odata.client.CollectionPage<BrowserSharedCookieHistory> getHistory()
        “The history of the cookie”
        Returns:
        property history
      • withHistory

        public BrowserSharedCookie withHistory​(List<BrowserSharedCookieHistory> history)
        Returns an immutable copy of this with just the history 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 history of the cookie”

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

        public com.github.davidmoten.odata.client.CollectionPage<BrowserSharedCookieHistory> getHistory​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The history of the cookie”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property history
      • getHostOnly

        public Optional<Boolean> getHostOnly()
        “Boolean attribute that determines whether a cookie is a host-only or domain cookie”
        Returns:
        property hostOnly
      • withHostOnly

        public BrowserSharedCookie withHostOnly​(Boolean hostOnly)
        Returns an immutable copy of this with just the hostOnly 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.

        “Boolean attribute that determines whether a cookie is a host-only or domain cookie”

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

        public Optional<String> getHostOrDomain()
        “The URL of the cookie”
        Returns:
        property hostOrDomain
      • withHostOrDomain

        public BrowserSharedCookie withHostOrDomain​(String hostOrDomain)
        Returns an immutable copy of this with just the hostOrDomain 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 URL of the cookie”

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

        public Optional<IdentitySet> getLastModifiedBy()
        “The identity of the admin who last updated the cookie”
        Returns:
        property lastModifiedBy
      • withLastModifiedBy

        public BrowserSharedCookie withLastModifiedBy​(IdentitySet lastModifiedBy)
        Returns an immutable copy of this with just the lastModifiedBy 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 identity of the admin who last updated the cookie”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “The datetime that the admin last updated the cookie”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public BrowserSharedCookie 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 datetime that the admin last updated the cookie”

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

        public Optional<String> getPath()
        “The path of the cookie”
        Returns:
        property path
      • withPath

        public BrowserSharedCookie withPath​(String path)
        Returns an immutable copy of this with just the path 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 path of the cookie”

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

        public Optional<BrowserSharedCookieSourceEnvironment> getSourceEnvironment()
        “Specifies how the cookies are shared between Microsoft Edge and Internet Explorer”
        Returns:
        property sourceEnvironment
      • withSourceEnvironment

        public BrowserSharedCookie withSourceEnvironment​(BrowserSharedCookieSourceEnvironment sourceEnvironment)
        Returns an immutable copy of this with just the sourceEnvironment 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.

        “Specifies how the cookies are shared between Microsoft Edge and Internet Explorer”

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

        public BrowserSharedCookie withStatus​(BrowserSharedCookieStatus 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.

        “The status of the cookie”

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