Class DataSharingConsent

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

    public class DataSharingConsent
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Data sharing consent information.”
    • Field Detail

      • granted

        protected Boolean granted
      • grantedByUpn

        protected String grantedByUpn
      • grantedByUserId

        protected String grantedByUserId
      • serviceDisplayName

        protected String serviceDisplayName
      • termsUrl

        protected String termsUrl
    • Constructor Detail

      • DataSharingConsent

        protected DataSharingConsent()
    • Method Detail

      • odataTypeName

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

        public static DataSharingConsent.Builder builderDataSharingConsent()
        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
      • getGrantDateTime

        public Optional<OffsetDateTime> getGrantDateTime()
        “The time consent was granted for this account”
        Returns:
        property grantDateTime
      • withGrantDateTime

        public DataSharingConsent withGrantDateTime​(OffsetDateTime grantDateTime)
        Returns an immutable copy of this with just the grantDateTime 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 time consent was granted for this account”

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

        public Optional<Boolean> getGranted()
        “The granted state for the data sharing consent”
        Returns:
        property granted
      • withGranted

        public DataSharingConsent withGranted​(Boolean granted)
        Returns an immutable copy of this with just the granted 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 granted state for the data sharing consent”

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

        public Optional<String> getGrantedByUpn()
        “The Upn of the user that granted consent for this account”
        Returns:
        property grantedByUpn
      • withGrantedByUpn

        public DataSharingConsent withGrantedByUpn​(String grantedByUpn)
        Returns an immutable copy of this with just the grantedByUpn 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 Upn of the user that granted consent for this account”

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

        public Optional<String> getGrantedByUserId()
        “The UserId of the user that granted consent for this account”
        Returns:
        property grantedByUserId
      • withGrantedByUserId

        public DataSharingConsent withGrantedByUserId​(String grantedByUserId)
        Returns an immutable copy of this with just the grantedByUserId 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 UserId of the user that granted consent for this account”

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

        public Optional<String> getServiceDisplayName()
        “The display name of the service work flow”
        Returns:
        property serviceDisplayName
      • withServiceDisplayName

        public DataSharingConsent withServiceDisplayName​(String serviceDisplayName)
        Returns an immutable copy of this with just the serviceDisplayName 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 display name of the service work flow”

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

        public Optional<String> getTermsUrl()
        “The TermsUrl for the data sharing consent”
        Returns:
        property termsUrl
      • withTermsUrl

        public DataSharingConsent withTermsUrl​(String termsUrl)
        Returns an immutable copy of this with just the termsUrl 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 TermsUrl for the data sharing consent”

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

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DataSharingConsent> consentToDataSharing()