Package odata.msgraph.client.beta.entity
Class DeviceCompliancePolicyState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceCompliancePolicyState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceCompliancePolicyState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Device Compliance Policy State for a given device.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceCompliancePolicyState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdisplayNameprotected PolicyPlatformTypeplatformTypeprotected IntegersettingCountprotected List<DeviceCompliancePolicySettingState>settingStatesprotected StringsettingStatesNextLinkprotected ComplianceStatusstateprotected StringuserIdprotected StringuserPrincipalNameprotected Integerversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceCompliancePolicyState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceCompliancePolicyState.BuilderbuilderDeviceCompliancePolicyState()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDisplayName()“The name of the policy for this policyBase”Optional<PolicyPlatformType>getPlatformType()“Platform type that the policy applies to”Optional<Integer>getSettingCount()“Count of how many setting a policy holds”com.github.davidmoten.odata.client.CollectionPage<DeviceCompliancePolicySettingState>getSettingStates()com.github.davidmoten.odata.client.CollectionPage<DeviceCompliancePolicySettingState>getSettingStates(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<ComplianceStatus>getState()“The compliance state of the policy”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserId()“User unique identifier, must be Guid”Optional<String>getUserPrincipalName()“User Principal Name”Optional<Integer>getVersion()“The version of the policy”StringodataTypeName()DeviceCompliancePolicyStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceCompliancePolicyStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceCompliancePolicyStatewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceCompliancePolicyStatewithPlatformType(PolicyPlatformType platformType)Returns an immutable copy ofthiswith just theplatformTypefield changed.DeviceCompliancePolicyStatewithSettingCount(Integer settingCount)Returns an immutable copy ofthiswith just thesettingCountfield changed.DeviceCompliancePolicyStatewithSettingStates(List<DeviceCompliancePolicySettingState> settingStates)DeviceCompliancePolicyStatewithState(ComplianceStatus state)Returns an immutable copy ofthiswith just thestatefield changed.DeviceCompliancePolicyStatewithUnmappedField(String name, String value)DeviceCompliancePolicyStatewithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.DeviceCompliancePolicyStatewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.DeviceCompliancePolicyStatewithVersion(Integer version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
displayName
protected String displayName
-
platformType
protected PolicyPlatformType platformType
-
settingCount
protected Integer settingCount
-
settingStates
protected List<DeviceCompliancePolicySettingState> settingStates
-
settingStatesNextLink
protected String settingStatesNextLink
-
state
protected ComplianceStatus state
-
userId
protected String userId
-
userPrincipalName
protected String userPrincipalName
-
version
protected Integer version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceCompliancePolicyState
public static DeviceCompliancePolicyState.Builder builderDeviceCompliancePolicyState()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getDisplayName
public Optional<String> getDisplayName()
“The name of the policy for this policyBase”- Returns:
- property displayName
-
withDisplayName
public DeviceCompliancePolicyState withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The name of the policy for this policyBase”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getPlatformType
public Optional<PolicyPlatformType> getPlatformType()
“Platform type that the policy applies to”- Returns:
- property platformType
-
withPlatformType
public DeviceCompliancePolicyState withPlatformType(PolicyPlatformType platformType)
Returns an immutable copy ofthiswith just theplatformTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Platform type that the policy applies to”
- Parameters:
platformType- new value ofplatformTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformTypefield changed
-
getSettingCount
public Optional<Integer> getSettingCount()
“Count of how many setting a policy holds”- Returns:
- property settingCount
-
withSettingCount
public DeviceCompliancePolicyState withSettingCount(Integer settingCount)
Returns an immutable copy ofthiswith just thesettingCountfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Count of how many setting a policy holds”
- Parameters:
settingCount- new value ofsettingCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesettingCountfield changed
-
getSettingStates
public com.github.davidmoten.odata.client.CollectionPage<DeviceCompliancePolicySettingState> getSettingStates()
-
withSettingStates
public DeviceCompliancePolicyState withSettingStates(List<DeviceCompliancePolicySettingState> settingStates)
-
getSettingStates
public com.github.davidmoten.odata.client.CollectionPage<DeviceCompliancePolicySettingState> getSettingStates(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getState
public Optional<ComplianceStatus> getState()
“The compliance state of the policy”- Returns:
- property state
-
withState
public DeviceCompliancePolicyState withState(ComplianceStatus state)
Returns an immutable copy ofthiswith just thestatefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The compliance state of the policy”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
getUserId
public Optional<String> getUserId()
“User unique identifier, must be Guid”- Returns:
- property userId
-
withUserId
public DeviceCompliancePolicyState withUserId(String userId)
Returns an immutable copy ofthiswith just theuserIdfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“User unique identifier, must be Guid”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“User Principal Name”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public DeviceCompliancePolicyState withUserPrincipalName(String userPrincipalName)
Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“User Principal Name”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
getVersion
public Optional<Integer> getVersion()
“The version of the policy”- Returns:
- property version
-
withVersion
public DeviceCompliancePolicyState withVersion(Integer version)
Returns an immutable copy ofthiswith just theversionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The version of the policy”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public DeviceCompliancePolicyState withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceCompliancePolicyState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceCompliancePolicyState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-