Package odata.msgraph.client.beta.entity
Class DeviceManagementTemplate
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementTemplate
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
SecurityBaselineTemplate
public class DeviceManagementTemplate extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Entity that represents a defined collection of device settings”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementTemplate.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected StringdisplayNameprotected IntegerintentCountprotected BooleanisDeprecatedprotected PolicyPlatformTypeplatformTypeprotected OffsetDateTimepublishedDateTimeprotected DeviceManagementTemplateSubtypetemplateSubtypeprotected DeviceManagementTemplateTypetemplateTypeprotected StringversionInfo-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementTemplate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementTemplate.BuilderbuilderDeviceManagementTemplate()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.CollectionPageNonEntityRequest<DeviceManagementSettingComparison>compare(String templateId)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DeviceManagementIntent>createInstance(String displayName, String description, List<DeviceManagementSettingInstance> settingsDelta, List<String> roleScopeTagIds)DeviceManagementTemplateSettingCategoryCollectionRequestgetCategories()“Collection of setting categories within the template”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDescription()“The template's description”Optional<String>getDisplayName()“The template's display name”Optional<Integer>getIntentCount()“Number of Intents created from this template.”Optional<Boolean>getIsDeprecated()“The template is deprecated or not.DeviceManagementTemplateCollectionRequestgetMigratableTo()“Collection of templates this template can migrate to”Optional<PolicyPlatformType>getPlatformType()“The template's platform.”Optional<OffsetDateTime>getPublishedDateTime()“When the template was published”DeviceManagementSettingInstanceCollectionRequestgetSettings()“Collection of all settings this template has”Optional<DeviceManagementTemplateSubtype>getTemplateSubtype()“The template's subtype.”Optional<DeviceManagementTemplateType>getTemplateType()“The template's type.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersionInfo()“The template's version information”StringodataTypeName()DeviceManagementTemplatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementTemplateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementTemplatewithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceManagementTemplatewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceManagementTemplatewithIntentCount(Integer intentCount)Returns an immutable copy ofthiswith just theintentCountfield changed.DeviceManagementTemplatewithIsDeprecated(Boolean isDeprecated)Returns an immutable copy ofthiswith just theisDeprecatedfield changed.DeviceManagementTemplatewithPlatformType(PolicyPlatformType platformType)Returns an immutable copy ofthiswith just theplatformTypefield changed.DeviceManagementTemplatewithPublishedDateTime(OffsetDateTime publishedDateTime)Returns an immutable copy ofthiswith just thepublishedDateTimefield changed.DeviceManagementTemplatewithTemplateSubtype(DeviceManagementTemplateSubtype templateSubtype)Returns an immutable copy ofthiswith just thetemplateSubtypefield changed.DeviceManagementTemplatewithTemplateType(DeviceManagementTemplateType templateType)Returns an immutable copy ofthiswith just thetemplateTypefield changed.DeviceManagementTemplatewithUnmappedField(String name, String value)DeviceManagementTemplatewithVersionInfo(String versionInfo)Returns an immutable copy ofthiswith just theversionInfofield changed.
-
-
-
Field Detail
-
description
protected String description
-
displayName
protected String displayName
-
intentCount
protected Integer intentCount
-
isDeprecated
protected Boolean isDeprecated
-
platformType
protected PolicyPlatformType platformType
-
publishedDateTime
protected OffsetDateTime publishedDateTime
-
templateSubtype
protected DeviceManagementTemplateSubtype templateSubtype
-
templateType
protected DeviceManagementTemplateType templateType
-
versionInfo
protected String versionInfo
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementTemplate
public static DeviceManagementTemplate.Builder builderDeviceManagementTemplate()
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
-
getDescription
public Optional<String> getDescription()
“The template's description”- Returns:
- property description
-
withDescription
public DeviceManagementTemplate 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.“The template's description”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The template's display name”- Returns:
- property displayName
-
withDisplayName
public DeviceManagementTemplate 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 template's display name”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getIntentCount
public Optional<Integer> getIntentCount()
“Number of Intents created from this template.”- Returns:
- property intentCount
-
withIntentCount
public DeviceManagementTemplate withIntentCount(Integer intentCount)
Returns an immutable copy ofthiswith just theintentCountfield 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 Intents created from this template.”
- Parameters:
intentCount- new value ofintentCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theintentCountfield changed
-
getIsDeprecated
public Optional<Boolean> getIsDeprecated()
“The template is deprecated or not. Intents cannot be created from a deprecated template.”- Returns:
- property isDeprecated
-
withIsDeprecated
public DeviceManagementTemplate withIsDeprecated(Boolean isDeprecated)
Returns an immutable copy ofthiswith just theisDeprecatedfield 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 template is deprecated or not. Intents cannot be created from a deprecated template.”
- Parameters:
isDeprecated- new value ofisDeprecatedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisDeprecatedfield changed
-
getPlatformType
public Optional<PolicyPlatformType> getPlatformType()
“The template's platform.”- Returns:
- property platformType
-
withPlatformType
public DeviceManagementTemplate 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.“The template's platform.”
- Parameters:
platformType- new value ofplatformTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformTypefield changed
-
getPublishedDateTime
public Optional<OffsetDateTime> getPublishedDateTime()
“When the template was published”- Returns:
- property publishedDateTime
-
withPublishedDateTime
public DeviceManagementTemplate withPublishedDateTime(OffsetDateTime publishedDateTime)
Returns an immutable copy ofthiswith just thepublishedDateTimefield 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.“When the template was published”
- Parameters:
publishedDateTime- new value ofpublishedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepublishedDateTimefield changed
-
getTemplateSubtype
public Optional<DeviceManagementTemplateSubtype> getTemplateSubtype()
“The template's subtype.”- Returns:
- property templateSubtype
-
withTemplateSubtype
public DeviceManagementTemplate withTemplateSubtype(DeviceManagementTemplateSubtype templateSubtype)
Returns an immutable copy ofthiswith just thetemplateSubtypefield 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 template's subtype.”
- Parameters:
templateSubtype- new value oftemplateSubtypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetemplateSubtypefield changed
-
getTemplateType
public Optional<DeviceManagementTemplateType> getTemplateType()
“The template's type.”- Returns:
- property templateType
-
withTemplateType
public DeviceManagementTemplate withTemplateType(DeviceManagementTemplateType templateType)
Returns an immutable copy ofthiswith just thetemplateTypefield 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 template's type.”
- Parameters:
templateType- new value oftemplateTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetemplateTypefield changed
-
getVersionInfo
public Optional<String> getVersionInfo()
“The template's version information”- Returns:
- property versionInfo
-
withVersionInfo
public DeviceManagementTemplate withVersionInfo(String versionInfo)
Returns an immutable copy ofthiswith just theversionInfofield 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 template's version information”
- Parameters:
versionInfo- new value ofversionInfofield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionInfofield changed
-
withUnmappedField
public DeviceManagementTemplate withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getCategories
public DeviceManagementTemplateSettingCategoryCollectionRequest getCategories()
“Collection of setting categories within the template”- Returns:
- navigational property categories
-
getMigratableTo
public DeviceManagementTemplateCollectionRequest getMigratableTo()
“Collection of templates this template can migrate to”- Returns:
- navigational property migratableTo
-
getSettings
public DeviceManagementSettingInstanceCollectionRequest getSettings()
“Collection of all settings this template has”- Returns:
- navigational property settings
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementTemplate patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementTemplate put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
createInstance
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DeviceManagementIntent> createInstance(String displayName, String description, List<DeviceManagementSettingInstance> settingsDelta, List<String> roleScopeTagIds)
-
compare
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DeviceManagementSettingComparison> compare(String templateId)
-
-