Class DeviceManagementReusablePolicySetting
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementReusablePolicySetting
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementReusablePolicySetting extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Graph model for a reusable setting”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementReusablePolicySetting.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected OffsetDateTimelastModifiedDateTimeprotected IntegerreferencingConfigurationPolicyCountprotected StringsettingDefinitionIdprotected DeviceManagementConfigurationSettingInstancesettingInstanceprotected Integerversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementReusablePolicySetting()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementReusablePolicySetting.BuilderbuilderDeviceManagementReusablePolicySetting()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.ActionRequestReturningNonCollectionUnwrapped<DeviceManagementReusablePolicySetting>clone()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“reusable setting creation date and time.Optional<String>getDescription()“reusable setting description supplied by user.”Optional<String>getDisplayName()“reusable setting display name supplied by user.”Optional<OffsetDateTime>getLastModifiedDateTime()“date and time when reusable setting was last modified.DeviceManagementConfigurationPolicyCollectionRequestgetReferencingConfigurationPolicies()“configuration policies referencing the current reusable setting.Optional<Integer>getReferencingConfigurationPolicyCount()“count of configuration policies referencing the current reusable setting.Optional<String>getSettingDefinitionId()“setting definition id associated with this reusable setting.”Optional<DeviceManagementConfigurationSettingInstance>getSettingInstance()“reusable setting configuration instance”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Integer>getVersion()“version number for reusable setting.StringodataTypeName()DeviceManagementReusablePolicySettingpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementReusablePolicySettingput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementReusablePolicySettingwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.DeviceManagementReusablePolicySettingwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceManagementReusablePolicySettingwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceManagementReusablePolicySettingwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.DeviceManagementReusablePolicySettingwithReferencingConfigurationPolicyCount(Integer referencingConfigurationPolicyCount)Returns an immutable copy ofthiswith just thereferencingConfigurationPolicyCountfield changed.DeviceManagementReusablePolicySettingwithSettingDefinitionId(String settingDefinitionId)Returns an immutable copy ofthiswith just thesettingDefinitionIdfield changed.DeviceManagementReusablePolicySettingwithSettingInstance(DeviceManagementConfigurationSettingInstance settingInstance)Returns an immutable copy ofthiswith just thesettingInstancefield changed.DeviceManagementReusablePolicySettingwithUnmappedField(String name, String value)DeviceManagementReusablePolicySettingwithVersion(Integer version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
referencingConfigurationPolicyCount
protected Integer referencingConfigurationPolicyCount
-
settingDefinitionId
protected String settingDefinitionId
-
settingInstance
protected DeviceManagementConfigurationSettingInstance settingInstance
-
version
protected Integer version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementReusablePolicySetting
public static DeviceManagementReusablePolicySetting.Builder builderDeviceManagementReusablePolicySetting()
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
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“reusable setting creation date and time. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property createdDateTime
-
withCreatedDateTime
public DeviceManagementReusablePolicySetting withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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.“reusable setting creation date and time. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“reusable setting description supplied by user.”- Returns:
- property description
-
withDescription
public DeviceManagementReusablePolicySetting withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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.“reusable setting description supplied by user.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“reusable setting display name supplied by user.”- Returns:
- property displayName
-
withDisplayName
public DeviceManagementReusablePolicySetting 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.“reusable setting display name supplied by user.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“date and time when reusable setting was last modified. This property is read- only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public DeviceManagementReusablePolicySetting withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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.“date and time when reusable setting was last modified. This property is read- only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getReferencingConfigurationPolicyCount
public Optional<Integer> getReferencingConfigurationPolicyCount()
“count of configuration policies referencing the current reusable setting. Valid values 0 to 2147483647. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property referencingConfigurationPolicyCount
-
withReferencingConfigurationPolicyCount
public DeviceManagementReusablePolicySetting withReferencingConfigurationPolicyCount(Integer referencingConfigurationPolicyCount)
Returns an immutable copy ofthiswith just thereferencingConfigurationPolicyCountfield 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 configuration policies referencing the current reusable setting. Valid values 0 to 2147483647. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
referencingConfigurationPolicyCount- new value ofreferencingConfigurationPolicyCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thereferencingConfigurationPolicyCountfield changed
-
getSettingDefinitionId
public Optional<String> getSettingDefinitionId()
“setting definition id associated with this reusable setting.”- Returns:
- property settingDefinitionId
-
withSettingDefinitionId
public DeviceManagementReusablePolicySetting withSettingDefinitionId(String settingDefinitionId)
Returns an immutable copy ofthiswith just thesettingDefinitionIdfield 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.“setting definition id associated with this reusable setting.”
- Parameters:
settingDefinitionId- new value ofsettingDefinitionIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesettingDefinitionIdfield changed
-
getSettingInstance
public Optional<DeviceManagementConfigurationSettingInstance> getSettingInstance()
“reusable setting configuration instance”- Returns:
- property settingInstance
-
withSettingInstance
public DeviceManagementReusablePolicySetting withSettingInstance(DeviceManagementConfigurationSettingInstance settingInstance)
Returns an immutable copy ofthiswith just thesettingInstancefield 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.“reusable setting configuration instance”
- Parameters:
settingInstance- new value ofsettingInstancefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesettingInstancefield changed
-
getVersion
public Optional<Integer> getVersion()
“version number for reusable setting. Valid values 0 to 2147483647. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property version
-
withVersion
public DeviceManagementReusablePolicySetting 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.“version number for reusable setting. Valid values 0 to 2147483647. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public DeviceManagementReusablePolicySetting withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getReferencingConfigurationPolicies
public DeviceManagementConfigurationPolicyCollectionRequest getReferencingConfigurationPolicies()
“configuration policies referencing the current reusable setting. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- navigational property referencingConfigurationPolicies
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementReusablePolicySetting patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementReusablePolicySetting put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
clone
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DeviceManagementReusablePolicySetting> clone()
-
-