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.
  • Constructor Details

    • DeviceCompliancePolicy

      public DeviceCompliancePolicy()
      Instantiates a new DeviceCompliancePolicy 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

      @Nullable public List<DeviceCompliancePolicyAssignment> getAssignments()
      Gets the assignments property value. The collection of assignments for this compliance policy.
      Returns:
      a List<DeviceCompliancePolicyAssignment>
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. DateTime the object was created.
      Returns:
      a OffsetDateTime
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. Admin provided description of the Device Configuration.
      Returns:
      a String
    • getDeviceSettingStateSummaries

      @Nullable public List<SettingStateDeviceSummary> getDeviceSettingStateSummaries()
      Gets the deviceSettingStateSummaries property value. Compliance Setting State Device Summary
      Returns:
      a List<SettingStateDeviceSummary>
    • getDeviceStatuses

      @Nullable public List<DeviceComplianceDeviceStatus> getDeviceStatuses()
      Gets the deviceStatuses property value. List of DeviceComplianceDeviceStatus.
      Returns:
      a List<DeviceComplianceDeviceStatus>
    • getDeviceStatusOverview

      @Nullable public DeviceComplianceDeviceOverview getDeviceStatusOverview()
      Gets the deviceStatusOverview property value. Device compliance devices status overview
      Returns:
      a DeviceComplianceDeviceOverview
    • getDisplayName

      @Nullable public String 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. DateTime the object was last modified.
      Returns:
      a OffsetDateTime
    • getScheduledActionsForRule

      @Nullable public List<DeviceComplianceScheduledActionForRule> 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

      @Nullable public List<DeviceComplianceUserStatus> getUserStatuses()
      Gets the userStatuses property value. List of DeviceComplianceUserStatus.
      Returns:
      a List<DeviceComplianceUserStatus>
    • getUserStatusOverview

      @Nullable public DeviceComplianceUserOverview getUserStatusOverview()
      Gets the userStatusOverview property value. Device compliance users status overview
      Returns:
      a DeviceComplianceUserOverview
    • getVersion

      @Nullable public Integer 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAssignments

      public void setAssignments(@Nullable List<DeviceCompliancePolicyAssignment> value)
      Sets the assignments property value. The collection of assignments for this compliance policy.
      Parameters:
      value - Value to set for the assignments property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. DateTime the object was created.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. Admin provided description of the Device Configuration.
      Parameters:
      value - Value to set for the description property.
    • setDeviceSettingStateSummaries

      public void setDeviceSettingStateSummaries(@Nullable List<SettingStateDeviceSummary> value)
      Sets the deviceSettingStateSummaries property value. Compliance Setting State Device Summary
      Parameters:
      value - Value to set for the deviceSettingStateSummaries property.
    • setDeviceStatuses

      public void setDeviceStatuses(@Nullable List<DeviceComplianceDeviceStatus> value)
      Sets the deviceStatuses property value. List of DeviceComplianceDeviceStatus.
      Parameters:
      value - Value to set for the deviceStatuses property.
    • setDeviceStatusOverview

      public void setDeviceStatusOverview(@Nullable DeviceComplianceDeviceOverview value)
      Sets the deviceStatusOverview property value. Device compliance devices status overview
      Parameters:
      value - Value to set for the deviceStatusOverview property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Admin provided name of the device configuration.
      Parameters:
      value - Value to set for the displayName property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      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

      public void setUserStatuses(@Nullable List<DeviceComplianceUserStatus> value)
      Sets the userStatuses property value. List of DeviceComplianceUserStatus.
      Parameters:
      value - Value to set for the userStatuses property.
    • setUserStatusOverview

      public void setUserStatusOverview(@Nullable DeviceComplianceUserOverview value)
      Sets the userStatusOverview property value. Device compliance users status overview
      Parameters:
      value - Value to set for the userStatusOverview property.
    • setVersion

      public void setVersion(@Nullable Integer value)
      Sets the version property value. Version of the device configuration.
      Parameters:
      value - Value to set for the version property.