Package odata.msgraph.client.beta.entity
Class DeviceManagementSettingInstance
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementSettingInstance
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
DeviceManagementAbstractComplexSettingInstance,DeviceManagementBooleanSettingInstance,DeviceManagementCollectionSettingInstance,DeviceManagementComplexSettingInstance,DeviceManagementIntegerSettingInstance,DeviceManagementStringSettingInstance
public class DeviceManagementSettingInstance extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Base type for a setting instance”
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdefinitionIdprotected StringvalueJson-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementSettingInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDefinitionId()“The ID of the setting definition for this instance”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getValueJson()“JSON representation of the value”StringodataTypeName()DeviceManagementSettingInstancepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementSettingInstanceput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementSettingInstancewithDefinitionId(String definitionId)Returns an immutable copy ofthiswith just thedefinitionIdfield changed.DeviceManagementSettingInstancewithUnmappedField(String name, String value)DeviceManagementSettingInstancewithValueJson(String valueJson)Returns an immutable copy ofthiswith just thevalueJsonfield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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
-
getDefinitionId
public Optional<String> getDefinitionId()
“The ID of the setting definition for this instance”- Returns:
- property definitionId
-
withDefinitionId
public DeviceManagementSettingInstance withDefinitionId(String definitionId)
Returns an immutable copy ofthiswith just thedefinitionIdfield 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 ID of the setting definition for this instance”
- Parameters:
definitionId- new value ofdefinitionIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefinitionIdfield changed
-
getValueJson
public Optional<String> getValueJson()
“JSON representation of the value”- Returns:
- property valueJson
-
withValueJson
public DeviceManagementSettingInstance withValueJson(String valueJson)
Returns an immutable copy ofthiswith just thevalueJsonfield 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.“JSON representation of the value”
- Parameters:
valueJson- new value ofvalueJsonfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevalueJsonfield changed
-
withUnmappedField
public DeviceManagementSettingInstance 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 DeviceManagementSettingInstance patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementSettingInstance put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-