Package odata.msgraph.client.beta.entity
Class DeviceManagementConfigurationPolicyTemplate
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementConfigurationPolicyTemplate
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementConfigurationPolicyTemplate extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Device Management Configuration Policy Template”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementConfigurationPolicyTemplate.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanallowUnmanagedSettingsprotected StringbaseIdprotected Stringdescriptionprotected StringdisplayNameprotected StringdisplayVersionprotected DeviceManagementTemplateLifecycleStatelifecycleStateprotected DeviceManagementConfigurationPlatformsplatformsprotected IntegersettingTemplateCountprotected DeviceManagementConfigurationTechnologiestechnologiesprotected DeviceManagementConfigurationTemplateFamilytemplateFamilyprotected Integerversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementConfigurationPolicyTemplate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementConfigurationPolicyTemplate.BuilderbuilderDeviceManagementConfigurationPolicyTemplate()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Boolean>getAllowUnmanagedSettings()“Allow unmanaged setting templates”Optional<String>getBaseId()“Template base identifier”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDescription()“Template description”Optional<String>getDisplayName()“Template display name”Optional<String>getDisplayVersion()“Description of template version”Optional<DeviceManagementTemplateLifecycleState>getLifecycleState()“Indicate current lifecycle state of template”Optional<DeviceManagementConfigurationPlatforms>getPlatforms()“Platforms for this template”Optional<Integer>getSettingTemplateCount()“Number of setting templates.DeviceManagementConfigurationSettingTemplateCollectionRequestgetSettingTemplates()“Setting templates”Optional<DeviceManagementConfigurationTechnologies>getTechnologies()“Technologies for this template”Optional<DeviceManagementConfigurationTemplateFamily>getTemplateFamily()“TemplateFamily for this template”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Integer>getVersion()“Template version.StringodataTypeName()DeviceManagementConfigurationPolicyTemplatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementConfigurationPolicyTemplateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementConfigurationPolicyTemplatewithAllowUnmanagedSettings(Boolean allowUnmanagedSettings)Returns an immutable copy ofthiswith just theallowUnmanagedSettingsfield changed.DeviceManagementConfigurationPolicyTemplatewithBaseId(String baseId)Returns an immutable copy ofthiswith just thebaseIdfield changed.DeviceManagementConfigurationPolicyTemplatewithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceManagementConfigurationPolicyTemplatewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceManagementConfigurationPolicyTemplatewithDisplayVersion(String displayVersion)Returns an immutable copy ofthiswith just thedisplayVersionfield changed.DeviceManagementConfigurationPolicyTemplatewithLifecycleState(DeviceManagementTemplateLifecycleState lifecycleState)Returns an immutable copy ofthiswith just thelifecycleStatefield changed.DeviceManagementConfigurationPolicyTemplatewithPlatforms(DeviceManagementConfigurationPlatforms platforms)Returns an immutable copy ofthiswith just theplatformsfield changed.DeviceManagementConfigurationPolicyTemplatewithSettingTemplateCount(Integer settingTemplateCount)Returns an immutable copy ofthiswith just thesettingTemplateCountfield changed.DeviceManagementConfigurationPolicyTemplatewithTechnologies(DeviceManagementConfigurationTechnologies technologies)Returns an immutable copy ofthiswith just thetechnologiesfield changed.DeviceManagementConfigurationPolicyTemplatewithTemplateFamily(DeviceManagementConfigurationTemplateFamily templateFamily)Returns an immutable copy ofthiswith just thetemplateFamilyfield changed.DeviceManagementConfigurationPolicyTemplatewithUnmappedField(String name, String value)DeviceManagementConfigurationPolicyTemplatewithVersion(Integer version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
allowUnmanagedSettings
protected Boolean allowUnmanagedSettings
-
baseId
protected String baseId
-
description
protected String description
-
displayName
protected String displayName
-
displayVersion
protected String displayVersion
-
lifecycleState
protected DeviceManagementTemplateLifecycleState lifecycleState
-
platforms
protected DeviceManagementConfigurationPlatforms platforms
-
settingTemplateCount
protected Integer settingTemplateCount
-
technologies
protected DeviceManagementConfigurationTechnologies technologies
-
templateFamily
protected DeviceManagementConfigurationTemplateFamily templateFamily
-
version
protected Integer version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementConfigurationPolicyTemplate
public static DeviceManagementConfigurationPolicyTemplate.Builder builderDeviceManagementConfigurationPolicyTemplate()
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
-
getAllowUnmanagedSettings
public Optional<Boolean> getAllowUnmanagedSettings()
“Allow unmanaged setting templates”- Returns:
- property allowUnmanagedSettings
-
withAllowUnmanagedSettings
public DeviceManagementConfigurationPolicyTemplate withAllowUnmanagedSettings(Boolean allowUnmanagedSettings)
Returns an immutable copy ofthiswith just theallowUnmanagedSettingsfield 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.“Allow unmanaged setting templates”
- Parameters:
allowUnmanagedSettings- new value ofallowUnmanagedSettingsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theallowUnmanagedSettingsfield changed
-
withBaseId
public DeviceManagementConfigurationPolicyTemplate withBaseId(String baseId)
Returns an immutable copy ofthiswith just thebaseIdfield 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.“Template base identifier”
- Parameters:
baseId- new value ofbaseIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebaseIdfield changed
-
getDescription
public Optional<String> getDescription()
“Template description”- Returns:
- property description
-
withDescription
public DeviceManagementConfigurationPolicyTemplate 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.“Template description”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Template display name”- Returns:
- property displayName
-
withDisplayName
public DeviceManagementConfigurationPolicyTemplate 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.“Template display name”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getDisplayVersion
public Optional<String> getDisplayVersion()
“Description of template version”- Returns:
- property displayVersion
-
withDisplayVersion
public DeviceManagementConfigurationPolicyTemplate withDisplayVersion(String displayVersion)
Returns an immutable copy ofthiswith just thedisplayVersionfield 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.“Description of template version”
- Parameters:
displayVersion- new value ofdisplayVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayVersionfield changed
-
getLifecycleState
public Optional<DeviceManagementTemplateLifecycleState> getLifecycleState()
“Indicate current lifecycle state of template”- Returns:
- property lifecycleState
-
withLifecycleState
public DeviceManagementConfigurationPolicyTemplate withLifecycleState(DeviceManagementTemplateLifecycleState lifecycleState)
Returns an immutable copy ofthiswith just thelifecycleStatefield 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.“Indicate current lifecycle state of template”
- Parameters:
lifecycleState- new value oflifecycleStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelifecycleStatefield changed
-
getPlatforms
public Optional<DeviceManagementConfigurationPlatforms> getPlatforms()
“Platforms for this template”- Returns:
- property platforms
-
withPlatforms
public DeviceManagementConfigurationPolicyTemplate withPlatforms(DeviceManagementConfigurationPlatforms platforms)
Returns an immutable copy ofthiswith just theplatformsfield 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.“Platforms for this template”
- Parameters:
platforms- new value ofplatformsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformsfield changed
-
getSettingTemplateCount
public Optional<Integer> getSettingTemplateCount()
“Number of setting templates. Valid values 0 to 2147483647. This property is read -only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property settingTemplateCount
-
withSettingTemplateCount
public DeviceManagementConfigurationPolicyTemplate withSettingTemplateCount(Integer settingTemplateCount)
Returns an immutable copy ofthiswith just thesettingTemplateCountfield 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.“Number of setting templates. Valid values 0 to 2147483647. This property is read -only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
settingTemplateCount- new value ofsettingTemplateCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesettingTemplateCountfield changed
-
getTechnologies
public Optional<DeviceManagementConfigurationTechnologies> getTechnologies()
“Technologies for this template”- Returns:
- property technologies
-
withTechnologies
public DeviceManagementConfigurationPolicyTemplate withTechnologies(DeviceManagementConfigurationTechnologies technologies)
Returns an immutable copy ofthiswith just thetechnologiesfield 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.“Technologies for this template”
- Parameters:
technologies- new value oftechnologiesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetechnologiesfield changed
-
getTemplateFamily
public Optional<DeviceManagementConfigurationTemplateFamily> getTemplateFamily()
“TemplateFamily for this template”- Returns:
- property templateFamily
-
withTemplateFamily
public DeviceManagementConfigurationPolicyTemplate withTemplateFamily(DeviceManagementConfigurationTemplateFamily templateFamily)
Returns an immutable copy ofthiswith just thetemplateFamilyfield 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.“TemplateFamily for this template”
- Parameters:
templateFamily- new value oftemplateFamilyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetemplateFamilyfield changed
-
getVersion
public Optional<Integer> getVersion()
“Template version. Valid values 1 to 2147483647. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property version
-
withVersion
public DeviceManagementConfigurationPolicyTemplate 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.“Template version. Valid values 1 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 DeviceManagementConfigurationPolicyTemplate withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getSettingTemplates
public DeviceManagementConfigurationSettingTemplateCollectionRequest getSettingTemplates()
“Setting templates”- Returns:
- navigational property settingTemplates
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementConfigurationPolicyTemplate patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementConfigurationPolicyTemplate put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-