Package com.microsoft.graph.models
Class DeviceCompliancePolicy
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DeviceCompliancePolicy
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
AndroidCompliancePolicy
,AndroidWorkProfileCompliancePolicy
,IosCompliancePolicy
,MacOSCompliancePolicy
,Windows10CompliancePolicy
,Windows10MobileCompliancePolicy
,Windows81CompliancePolicy
,WindowsPhone81CompliancePolicy
@Generated("com.microsoft.kiota")
public class DeviceCompliancePolicy
extends Entity
implements com.microsoft.kiota.serialization.Parsable
This is the base class for Compliance policy. Compliance policies are platform specific and individual per-platform compliance policies inherit from here.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceCompliancePolicy
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the assignments property value.Gets the createdDateTime property value.Gets the description property value.Gets the deviceSettingStateSummaries property value.Gets the deviceStatuses property value.Gets the deviceStatusOverview property value.Gets the displayName property value.The deserialization information for the current modelGets the lastModifiedDateTime property value.Gets the scheduledActionsForRule property value.Gets the userStatuses property value.Gets the userStatusOverview property value.Gets the version property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the assignments property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDescription
(String value) Sets the description property value.void
Sets the deviceSettingStateSummaries property value.void
Sets the deviceStatuses property value.void
Sets the deviceStatusOverview property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the lastModifiedDateTime property value.void
Sets the scheduledActionsForRule property value.void
Sets the userStatuses property value.void
Sets the userStatusOverview property value.void
setVersion
(Integer 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
-
DeviceCompliancePolicy
public DeviceCompliancePolicy()Instantiates a newDeviceCompliancePolicy
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static DeviceCompliancePolicy 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
DeviceCompliancePolicy
-
getAssignments
Gets the assignments property value. The collection of assignments for this compliance policy.- Returns:
- a
List<DeviceCompliancePolicyAssignment>
-
getCreatedDateTime
Gets the createdDateTime property value. DateTime the object was created.- Returns:
- a
OffsetDateTime
-
getDescription
Gets the description property value. Admin provided description of the Device Configuration.- Returns:
- a
String
-
getDeviceSettingStateSummaries
Gets the deviceSettingStateSummaries property value. Compliance Setting State Device Summary- Returns:
- a
List<SettingStateDeviceSummary>
-
getDeviceStatuses
Gets the deviceStatuses property value. List of DeviceComplianceDeviceStatus.- Returns:
- a
List<DeviceComplianceDeviceStatus>
-
getDeviceStatusOverview
Gets the deviceStatusOverview property value. Device compliance devices status overview- Returns:
- a
DeviceComplianceDeviceOverview
-
getDisplayName
Gets the displayName property value. Admin provided name of the device configuration.- 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. DateTime the object was last modified.- Returns:
- a
OffsetDateTime
-
getScheduledActionsForRule
Gets the scheduledActionsForRule property value. The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.- Returns:
- a
List<DeviceComplianceScheduledActionForRule>
-
getUserStatuses
Gets the userStatuses property value. List of DeviceComplianceUserStatus.- Returns:
- a
List<DeviceComplianceUserStatus>
-
getUserStatusOverview
Gets the userStatusOverview property value. Device compliance users status overview- Returns:
- a
DeviceComplianceUserOverview
-
getVersion
Gets the version property value. Version of the device configuration.- Returns:
- a
Integer
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAssignments
Sets the assignments property value. The collection of assignments for this compliance policy.- Parameters:
value
- Value to set for the assignments property.
-
setCreatedDateTime
Sets the createdDateTime property value. DateTime the object was created.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDescription
Sets the description property value. Admin provided description of the Device Configuration.- Parameters:
value
- Value to set for the description property.
-
setDeviceSettingStateSummaries
Sets the deviceSettingStateSummaries property value. Compliance Setting State Device Summary- Parameters:
value
- Value to set for the deviceSettingStateSummaries property.
-
setDeviceStatuses
Sets the deviceStatuses property value. List of DeviceComplianceDeviceStatus.- Parameters:
value
- Value to set for the deviceStatuses property.
-
setDeviceStatusOverview
Sets the deviceStatusOverview property value. Device compliance devices status overview- Parameters:
value
- Value to set for the deviceStatusOverview property.
-
setDisplayName
Sets the displayName property value. Admin provided name of the device configuration.- Parameters:
value
- Value to set for the displayName property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. DateTime the object was last modified.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setScheduledActionsForRule
public void setScheduledActionsForRule(@Nullable List<DeviceComplianceScheduledActionForRule> value) Sets the scheduledActionsForRule property value. The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.- Parameters:
value
- Value to set for the scheduledActionsForRule property.
-
setUserStatuses
Sets the userStatuses property value. List of DeviceComplianceUserStatus.- Parameters:
value
- Value to set for the userStatuses property.
-
setUserStatusOverview
Sets the userStatusOverview property value. Device compliance users status overview- Parameters:
value
- Value to set for the userStatusOverview property.
-
setVersion
Sets the version property value. Version of the device configuration.- Parameters:
value
- Value to set for the version property.
-