Class MicrosoftGraphDeviceCompliancePolicyState
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDeviceCompliancePolicyState
-
public final class MicrosoftGraphDeviceCompliancePolicyState extends MicrosoftGraphEntity
Device Compliance Policy State for a given device.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphDeviceCompliancePolicyState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: Device Compliance Policy State for a given device.String
displayName()
Get the displayName property: The name of the policy for this policyBase.MicrosoftGraphPolicyPlatformType
platformType()
Get the platformType property: The platformType property.Integer
settingCount()
Get the settingCount property: Count of how many setting a policy holds.List<MicrosoftGraphDeviceCompliancePolicySettingState>
settingStates()
Get the settingStates property: The settingStates property.MicrosoftGraphComplianceStatus
state()
Get the state property: The state property.void
validate()
Validates the instance.Integer
version()
Get the version property: The version of the policy.MicrosoftGraphDeviceCompliancePolicyState
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Device Compliance Policy State for a given device.MicrosoftGraphDeviceCompliancePolicyState
withDisplayName(String displayName)
Set the displayName property: The name of the policy for this policyBase.MicrosoftGraphDeviceCompliancePolicyState
withId(String id)
Set the id property: Read-only.MicrosoftGraphDeviceCompliancePolicyState
withPlatformType(MicrosoftGraphPolicyPlatformType platformType)
Set the platformType property: The platformType property.MicrosoftGraphDeviceCompliancePolicyState
withSettingCount(Integer settingCount)
Set the settingCount property: Count of how many setting a policy holds.MicrosoftGraphDeviceCompliancePolicyState
withSettingStates(List<MicrosoftGraphDeviceCompliancePolicySettingState> settingStates)
Set the settingStates property: The settingStates property.MicrosoftGraphDeviceCompliancePolicyState
withState(MicrosoftGraphComplianceStatus state)
Set the state property: The state property.MicrosoftGraphDeviceCompliancePolicyState
withVersion(Integer version)
Set the version property: The version of the policy.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
displayName
public String displayName()
Get the displayName property: The name of the policy for this policyBase.- Returns:
- the displayName value.
-
withDisplayName
public MicrosoftGraphDeviceCompliancePolicyState withDisplayName(String displayName)
Set the displayName property: The name of the policy for this policyBase.- Parameters:
displayName
- the displayName value to set.- Returns:
- the MicrosoftGraphDeviceCompliancePolicyState object itself.
-
platformType
public MicrosoftGraphPolicyPlatformType platformType()
Get the platformType property: The platformType property.- Returns:
- the platformType value.
-
withPlatformType
public MicrosoftGraphDeviceCompliancePolicyState withPlatformType(MicrosoftGraphPolicyPlatformType platformType)
Set the platformType property: The platformType property.- Parameters:
platformType
- the platformType value to set.- Returns:
- the MicrosoftGraphDeviceCompliancePolicyState object itself.
-
settingCount
public Integer settingCount()
Get the settingCount property: Count of how many setting a policy holds.- Returns:
- the settingCount value.
-
withSettingCount
public MicrosoftGraphDeviceCompliancePolicyState withSettingCount(Integer settingCount)
Set the settingCount property: Count of how many setting a policy holds.- Parameters:
settingCount
- the settingCount value to set.- Returns:
- the MicrosoftGraphDeviceCompliancePolicyState object itself.
-
settingStates
public List<MicrosoftGraphDeviceCompliancePolicySettingState> settingStates()
Get the settingStates property: The settingStates property.- Returns:
- the settingStates value.
-
withSettingStates
public MicrosoftGraphDeviceCompliancePolicyState withSettingStates(List<MicrosoftGraphDeviceCompliancePolicySettingState> settingStates)
Set the settingStates property: The settingStates property.- Parameters:
settingStates
- the settingStates value to set.- Returns:
- the MicrosoftGraphDeviceCompliancePolicyState object itself.
-
state
public MicrosoftGraphComplianceStatus state()
Get the state property: The state property.- Returns:
- the state value.
-
withState
public MicrosoftGraphDeviceCompliancePolicyState withState(MicrosoftGraphComplianceStatus state)
Set the state property: The state property.- Parameters:
state
- the state value to set.- Returns:
- the MicrosoftGraphDeviceCompliancePolicyState object itself.
-
version
public Integer version()
Get the version property: The version of the policy.- Returns:
- the version value.
-
withVersion
public MicrosoftGraphDeviceCompliancePolicyState withVersion(Integer version)
Set the version property: The version of the policy.- Parameters:
version
- the version value to set.- Returns:
- the MicrosoftGraphDeviceCompliancePolicyState object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: Device Compliance Policy State for a given device.- Overrides:
additionalProperties
in classMicrosoftGraphEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphDeviceCompliancePolicyState withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Device Compliance Policy State for a given device.- Overrides:
withAdditionalProperties
in classMicrosoftGraphEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphDeviceCompliancePolicyState object itself.
-
withId
public MicrosoftGraphDeviceCompliancePolicyState withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphEntity
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-