Package com.microsoft.graph.models
Class ManagedAppPolicy
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ManagedAppPolicy
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
ManagedAppConfiguration
,ManagedAppProtection
,WindowsInformationProtection
@Generated("com.microsoft.kiota")
public class ManagedAppPolicy
extends Entity
implements com.microsoft.kiota.serialization.Parsable
The ManagedAppPolicy resource represents a base type for platform specific policies.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedAppPolicy
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the createdDateTime property value.Gets the description property value.Gets the displayName property value.The deserialization information for the current modelGets the lastModifiedDateTime property value.Gets the version property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDescription
(String value) Sets the description property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the lastModifiedDateTime property value.void
setVersion
(String value) Sets the version property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ManagedAppPolicy
public ManagedAppPolicy()Instantiates a newManagedAppPolicy
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static ManagedAppPolicy createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
ManagedAppPolicy
-
getCreatedDateTime
Gets the createdDateTime property value. The date and time the policy was created.- Returns:
- a
OffsetDateTime
-
getDescription
Gets the description property value. The policy's description.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. Policy display name.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. Last time the policy was modified.- Returns:
- a
OffsetDateTime
-
getVersion
Gets the version property value. Version of the entity.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setCreatedDateTime
Sets the createdDateTime property value. The date and time the policy was created.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDescription
Sets the description property value. The policy's description.- Parameters:
value
- Value to set for the description property.
-
setDisplayName
Sets the displayName property value. Policy display name.- Parameters:
value
- Value to set for the displayName property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. Last time the policy was modified.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setVersion
Sets the version property value. Version of the entity.- Parameters:
value
- Value to set for the version property.
-