Package odata.msgraph.client.beta.entity
Class Agreement
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.Agreement
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Agreement 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.SelectRestrictions
Selectable = false
Org.OData.Capabilities.V1.SkipSupported
false
Org.OData.Capabilities.V1.SortRestrictions
Sortable = false
Org.OData.Capabilities.V1.TopSupported
false
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAgreement.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdisplayNameprotected BooleanisPerDeviceAcceptanceRequiredprotected BooleanisViewingBeforeAcceptanceRequiredprotected TermsExpirationtermsExpirationprotected DurationuserReacceptRequiredFrequency-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAgreement()
-
Method Summary
-
-
-
Field Detail
-
displayName
protected String displayName
-
isPerDeviceAcceptanceRequired
protected Boolean isPerDeviceAcceptanceRequired
-
isViewingBeforeAcceptanceRequired
protected Boolean isViewingBeforeAcceptanceRequired
-
termsExpiration
protected TermsExpiration termsExpiration
-
userReacceptRequiredFrequency
protected Duration userReacceptRequiredFrequency
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderAgreement
public static Agreement.Builder builderAgreement()
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
-
withIsPerDeviceAcceptanceRequired
public Agreement withIsPerDeviceAcceptanceRequired(Boolean isPerDeviceAcceptanceRequired)
-
getIsViewingBeforeAcceptanceRequired
public Optional<Boolean> getIsViewingBeforeAcceptanceRequired()
-
withIsViewingBeforeAcceptanceRequired
public Agreement withIsViewingBeforeAcceptanceRequired(Boolean isViewingBeforeAcceptanceRequired)
-
getTermsExpiration
public Optional<TermsExpiration> getTermsExpiration()
-
withTermsExpiration
public Agreement withTermsExpiration(TermsExpiration termsExpiration)
-
withUserReacceptRequiredFrequency
public Agreement withUserReacceptRequiredFrequency(Duration userReacceptRequiredFrequency)
-
withUnmappedField
public Agreement withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAcceptances
public AgreementAcceptanceCollectionRequest getAcceptances()
-
getFile
public AgreementFileRequest getFile()
-
getFiles
public AgreementFileLocalizationCollectionRequest getFiles()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public Agreement patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Agreement put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-