Package odata.msgraph.client.beta.entity
Class DataSharingConsent
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataSharingConsent.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimegrantDateTimeprotected Booleangrantedprotected StringgrantedByUpnprotected StringgrantedByUserIdprotected StringserviceDisplayNameprotected StringtermsUrl-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDataSharingConsent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataSharingConsent.BuilderbuilderDataSharingConsent()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.ChangedFieldsgetChangedFields()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.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DataSharingConsentpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DataSharingConsentput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DataSharingConsentwithGrantDateTime(OffsetDateTime grantDateTime)Returns an immutable copy ofthiswith just thegrantDateTimefield changed.DataSharingConsentwithGranted(Boolean granted)Returns an immutable copy ofthiswith just thegrantedfield changed.DataSharingConsentwithGrantedByUpn(String grantedByUpn)Returns an immutable copy ofthiswith just thegrantedByUpnfield changed.DataSharingConsentwithGrantedByUserId(String grantedByUserId)Returns an immutable copy ofthiswith just thegrantedByUserIdfield changed.DataSharingConsentwithServiceDisplayName(String serviceDisplayName)Returns an immutable copy ofthiswith just theserviceDisplayNamefield changed.DataSharingConsentwithTermsUrl(String termsUrl)Returns an immutable copy ofthiswith just thetermsUrlfield changed.DataSharingConsentwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
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 ofthiswith just thegrantDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofgrantDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegrantDateTimefield 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 ofthiswith just thegrantedfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofgrantedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegrantedfield 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 ofthiswith just thegrantedByUpnfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofgrantedByUpnfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegrantedByUpnfield 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 ofthiswith just thegrantedByUserIdfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofgrantedByUserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegrantedByUserIdfield 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 ofthiswith just theserviceDisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofserviceDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theserviceDisplayNamefield 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 ofthiswith just thetermsUrlfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 oftermsUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetermsUrlfield changed
-
withUnmappedField
public DataSharingConsent withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DataSharingConsent patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DataSharingConsent put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
consentToDataSharing
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DataSharingConsent> consentToDataSharing()
-
-