Package odata.msgraph.client.entity
Class DeviceConfigurationState
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DeviceConfigurationState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceConfigurationState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Device Configuration State for a given device.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceConfigurationState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdisplayNameprotected PolicyPlatformTypeplatformTypeprotected IntegersettingCountprotected List<DeviceConfigurationSettingState>settingStatesprotected StringsettingStatesNextLinkprotected ComplianceStatusstateprotected Integerversion-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceConfigurationState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceConfigurationState.BuilderbuilderDeviceConfigurationState()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<DeviceConfigurationSettingState>getSettingStates()com.github.davidmoten.odata.client.CollectionPage<DeviceConfigurationSettingState>getSettingStates(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<ComplianceStatus>getState()“The compliance state of the policy”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Integer>getVersion()“The version of the policy”StringodataTypeName()DeviceConfigurationStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceConfigurationStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceConfigurationStatewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceConfigurationStatewithPlatformType(PolicyPlatformType platformType)Returns an immutable copy ofthiswith just theplatformTypefield changed.DeviceConfigurationStatewithSettingCount(Integer settingCount)Returns an immutable copy ofthiswith just thesettingCountfield changed.DeviceConfigurationStatewithSettingStates(List<DeviceConfigurationSettingState> settingStates)DeviceConfigurationStatewithState(ComplianceStatus state)Returns an immutable copy ofthiswith just thestatefield changed.DeviceConfigurationStatewithUnmappedField(String name, String value)DeviceConfigurationStatewithVersion(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<DeviceConfigurationSettingState> settingStates
-
settingStatesNextLink
protected String settingStatesNextLink
-
state
protected ComplianceStatus state
-
version
protected Integer version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceConfigurationState
public static DeviceConfigurationState.Builder builderDeviceConfigurationState()
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 DeviceConfigurationState 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 DeviceConfigurationState 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 DeviceConfigurationState 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<DeviceConfigurationSettingState> getSettingStates()
-
withSettingStates
public DeviceConfigurationState withSettingStates(List<DeviceConfigurationSettingState> settingStates)
-
getSettingStates
public com.github.davidmoten.odata.client.CollectionPage<DeviceConfigurationSettingState> getSettingStates(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getState
public Optional<ComplianceStatus> getState()
“The compliance state of the policy”- Returns:
- property state
-
withState
public DeviceConfigurationState 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
-
getVersion
public Optional<Integer> getVersion()
“The version of the policy”- Returns:
- property version
-
withVersion
public DeviceConfigurationState 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 DeviceConfigurationState 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 DeviceConfigurationState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceConfigurationState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-