Partager via


MicrosoftGraphDeviceCompliancePolicyState Class

public final class MicrosoftGraphDeviceCompliancePolicyState
extends MicrosoftGraphEntity

deviceCompliancePolicyState Device Compliance Policy State for a given device.

Constructor Summary

Constructor Description
MicrosoftGraphDeviceCompliancePolicyState()

Creates an instance of MicrosoftGraphDeviceCompliancePolicyState class.

Method Summary

Modifier and Type Method and 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.

static MicrosoftGraphDeviceCompliancePolicyState fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDeviceCompliancePolicyState from the JsonReader.

MicrosoftGraphPolicyPlatformType platformType()

Get the platformType property: policyPlatformType.

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: complianceStatus.

JsonWriter toJson(JsonWriter jsonWriter)
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: policyPlatformType.

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: complianceStatus.

MicrosoftGraphDeviceCompliancePolicyState withVersion(Integer version)

Set the version property: The version of the policy.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDeviceCompliancePolicyState

public MicrosoftGraphDeviceCompliancePolicyState()

Creates an instance of MicrosoftGraphDeviceCompliancePolicyState class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: Device Compliance Policy State for a given device.

Overrides:

MicrosoftGraphDeviceCompliancePolicyState.additionalProperties()

Returns:

the additionalProperties value.

displayName

public String displayName()

Get the displayName property: The name of the policy for this policyBase.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphDeviceCompliancePolicyState fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDeviceCompliancePolicyState from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphDeviceCompliancePolicyState if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphDeviceCompliancePolicyState.

platformType

public MicrosoftGraphPolicyPlatformType platformType()

Get the platformType property: policyPlatformType.

Returns:

the platformType value.

settingCount

public Integer settingCount()

Get the settingCount property: Count of how many setting a policy holds.

Returns:

the settingCount value.

settingStates

public List<MicrosoftGraphDeviceCompliancePolicySettingState> settingStates()

Get the settingStates property: The settingStates property.

Returns:

the settingStates value.

state

public MicrosoftGraphComplianceStatus state()

Get the state property: complianceStatus.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphDeviceCompliancePolicyState.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphDeviceCompliancePolicyState.validate()

version

public Integer version()

Get the version property: The version of the policy.

Returns:

the version value.

withAdditionalProperties

public MicrosoftGraphDeviceCompliancePolicyState withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Device Compliance Policy State for a given device.

Overrides:

MicrosoftGraphDeviceCompliancePolicyState.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDeviceCompliancePolicyState object itself.

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.

withId

public MicrosoftGraphDeviceCompliancePolicyState withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphDeviceCompliancePolicyState.withId(String id)

Parameters:

id

withPlatformType

public MicrosoftGraphDeviceCompliancePolicyState withPlatformType(MicrosoftGraphPolicyPlatformType platformType)

Set the platformType property: policyPlatformType.

Parameters:

platformType - the platformType value to set.

Returns:

the MicrosoftGraphDeviceCompliancePolicyState object itself.

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.

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.

withState

public MicrosoftGraphDeviceCompliancePolicyState withState(MicrosoftGraphComplianceStatus state)

Set the state property: complianceStatus.

Parameters:

state - the state value to set.

Returns:

the MicrosoftGraphDeviceCompliancePolicyState object itself.

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.

Applies to