public class DataSharingConsent extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
DataSharingConsent.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected OffsetDateTime |
grantDateTime |
protected Boolean |
granted |
protected String |
grantedByUpn |
protected String |
grantedByUserId |
protected String |
serviceDisplayName |
protected String |
termsUrl |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
DataSharingConsent() |
| Modifier and Type | Method and Description |
|---|---|
static DataSharingConsent.Builder |
builderDataSharingConsent()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DataSharingConsent> |
consentToDataSharing() |
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<OffsetDateTime> |
getGrantDateTime()
“The time consent was granted for this account”
|
Optional<Boolean> |
getGranted()
“The granted state for the data sharing consent”
|
Optional<String> |
getGrantedByUpn()
“The Upn of the user that granted consent for this account”
|
Optional<String> |
getGrantedByUserId()
“The UserId of the user that granted consent for this account”
|
Optional<String> |
getServiceDisplayName()
“The display name of the service work flow”
|
Optional<String> |
getTermsUrl()
“The TermsUrl for the data sharing consent”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
DataSharingConsent |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
DataSharingConsent |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
DataSharingConsent |
withGrantDateTime(OffsetDateTime grantDateTime)
Returns an immutable copy of
this with just the grantDateTime
field changed. |
DataSharingConsent |
withGranted(Boolean granted)
Returns an immutable copy of
this with just the granted field
changed. |
DataSharingConsent |
withGrantedByUpn(String grantedByUpn)
Returns an immutable copy of
this with just the grantedByUpn
field changed. |
DataSharingConsent |
withGrantedByUserId(String grantedByUserId)
Returns an immutable copy of
this with just the grantedByUserId
field changed. |
DataSharingConsent |
withServiceDisplayName(String serviceDisplayName)
Returns an immutable copy of
this with just the serviceDisplayName field changed. |
DataSharingConsent |
withTermsUrl(String termsUrl)
Returns an immutable copy of
this with just the termsUrl field
changed. |
protected String serviceDisplayName
protected String termsUrl
protected Boolean granted
protected OffsetDateTime grantDateTime
protected String grantedByUpn
protected String grantedByUserId
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static DataSharingConsent.Builder builderDataSharingConsent()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<String> getServiceDisplayName()
public DataSharingConsent withServiceDisplayName(String serviceDisplayName)
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”
serviceDisplayName - new value of serviceDisplayName field (as defined in service metadata)this with just the serviceDisplayName field changedpublic Optional<String> getTermsUrl()
public DataSharingConsent withTermsUrl(String termsUrl)
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”
termsUrl - new value of termsUrl field (as defined in service metadata)this with just the termsUrl field changedpublic Optional<Boolean> getGranted()
public DataSharingConsent withGranted(Boolean granted)
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”
granted - new value of granted field (as defined in service metadata)this with just the granted field changedpublic Optional<OffsetDateTime> getGrantDateTime()
public DataSharingConsent withGrantDateTime(OffsetDateTime grantDateTime)
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”
grantDateTime - new value of grantDateTime field (as defined in service metadata)this with just the grantDateTime field changedpublic Optional<String> getGrantedByUpn()
public DataSharingConsent withGrantedByUpn(String grantedByUpn)
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”
grantedByUpn - new value of grantedByUpn field (as defined in service metadata)this with just the grantedByUpn field changedpublic Optional<String> getGrantedByUserId()
public DataSharingConsent withGrantedByUserId(String grantedByUserId)
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”
grantedByUserId - new value of grantedByUserId field (as defined in service metadata)this with just the grantedByUserId field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic DataSharingConsent patch()
this with changed fields reset.public DataSharingConsent put()
this
with changed fields reset (they were ignored anyway).public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DataSharingConsent> consentToDataSharing()
Copyright © 2018–2020. All rights reserved.