Package odata.msgraph.client.entity
Class ManagedAppPolicy
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ManagedAppPolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
ManagedAppConfiguration,ManagedAppProtection,WindowsInformationProtection
public class ManagedAppPolicy extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The ManagedAppPolicy resource represents a base type for platform specific policies.”
-
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected OffsetDateTimelastModifiedDateTimeprotected Stringversion-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedManagedAppPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“The date and time the policy was created.”Optional<String>getDescription()“The policy's description.”Optional<String>getDisplayName()“Policy display name.”Optional<OffsetDateTime>getLastModifiedDateTime()“Last time the policy was modified.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersion()“Version of the entity.”StringodataTypeName()ManagedAppPolicypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ManagedAppPolicyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturntargetApps(List<ManagedMobileApp> apps)StringtoString()ManagedAppPolicywithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.ManagedAppPolicywithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.ManagedAppPolicywithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.ManagedAppPolicywithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.ManagedAppPolicywithUnmappedField(String name, Object value)ManagedAppPolicywithVersion(String version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
version
protected String version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“The date and time the policy was created.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public ManagedAppPolicy withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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 date and time the policy was created.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“The policy's description.”- Returns:
- property description
-
withDescription
public ManagedAppPolicy withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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 policy's description.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Policy display name.”- Returns:
- property displayName
-
withDisplayName
public ManagedAppPolicy withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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.“Policy display name.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“Last time the policy was modified.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public ManagedAppPolicy withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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.“Last time the policy was modified.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
withVersion
public ManagedAppPolicy withVersion(String version)
Returns an immutable copy ofthiswith just theversionfield 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.“Version of the entity.”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public ManagedAppPolicy withUnmappedField(String name, Object 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 ManagedAppPolicy patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ManagedAppPolicy put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
targetApps
public com.github.davidmoten.odata.client.ActionRequestNoReturn targetApps(List<ManagedMobileApp> apps)
-
-