public class DeviceManagementTemplate extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceManagementTemplate.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
displayName |
protected Integer |
intentCount |
protected Boolean |
isDeprecated |
protected PolicyPlatformType |
platformType |
protected OffsetDateTime |
publishedDateTime |
protected DeviceManagementTemplateSubtype |
templateSubtype |
protected DeviceManagementTemplateType |
templateType |
protected String |
versionInfo |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
DeviceManagementTemplate() |
| Modifier and Type | Method and Description |
|---|---|
static DeviceManagementTemplate.Builder |
builderDeviceManagementTemplate()
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.ActionRequestReturningNonCollection<DeviceManagementIntent> |
createInstance(String displayName,
String description,
List<DeviceManagementSettingInstance> settingsDelta,
List<String> roleScopeTagIds) |
DeviceManagementTemplateSettingCategoryCollectionRequest |
getCategories()
“Collection of setting categories within the template”
|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
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.
|
DeviceManagementTemplateCollectionRequest |
getMigratableTo()
“Collection of templates this template can migrate to”
|
Optional<PolicyPlatformType> |
getPlatformType()
“The template's platform.”
|
Optional<OffsetDateTime> |
getPublishedDateTime()
“When the template was published”
|
DeviceManagementSettingInstanceCollectionRequest |
getSettings()
“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.internal.UnmappedFields |
getUnmappedFields() |
Optional<String> |
getVersionInfo()
“The template's version information”
|
String |
odataTypeName() |
DeviceManagementTemplate |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
DeviceManagementTemplate |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
DeviceManagementTemplate |
withDescription(String description)
Returns an immutable copy of
this with just the description
field changed. |
DeviceManagementTemplate |
withDisplayName(String displayName)
Returns an immutable copy of
this with just the displayName
field changed. |
DeviceManagementTemplate |
withIntentCount(Integer intentCount)
Returns an immutable copy of
this with just the intentCount
field changed. |
DeviceManagementTemplate |
withIsDeprecated(Boolean isDeprecated)
Returns an immutable copy of
this with just the isDeprecated
field changed. |
DeviceManagementTemplate |
withPlatformType(PolicyPlatformType platformType)
Returns an immutable copy of
this with just the platformType
field changed. |
DeviceManagementTemplate |
withPublishedDateTime(OffsetDateTime publishedDateTime)
Returns an immutable copy of
this with just the publishedDateTime
field changed. |
DeviceManagementTemplate |
withTemplateSubtype(DeviceManagementTemplateSubtype templateSubtype)
Returns an immutable copy of
this with just the templateSubtype
field changed. |
DeviceManagementTemplate |
withTemplateType(DeviceManagementTemplateType templateType)
Returns an immutable copy of
this with just the templateType
field changed. |
DeviceManagementTemplate |
withVersionInfo(String versionInfo)
Returns an immutable copy of
this with just the versionInfo
field changed. |
protected String displayName
protected String description
protected String versionInfo
protected Boolean isDeprecated
protected Integer intentCount
protected DeviceManagementTemplateType templateType
protected PolicyPlatformType platformType
protected DeviceManagementTemplateSubtype templateSubtype
protected OffsetDateTime publishedDateTime
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static DeviceManagementTemplate.Builder builderDeviceManagementTemplate()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<String> getDisplayName()
public DeviceManagementTemplate withDisplayName(String displayName)
this with just the displayName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The template's display name”
displayName - new value of displayName field (as defined in service metadata)this with just the displayName field changedpublic Optional<String> getDescription()
public DeviceManagementTemplate withDescription(String description)
this with just the description
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The template's description”
description - new value of description field (as defined in service metadata)this with just the description field changedpublic Optional<String> getVersionInfo()
public DeviceManagementTemplate withVersionInfo(String versionInfo)
this with just the versionInfo
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The template's version information”
versionInfo - new value of versionInfo field (as defined in service metadata)this with just the versionInfo field changedpublic Optional<Boolean> getIsDeprecated()
public DeviceManagementTemplate withIsDeprecated(Boolean isDeprecated)
this with just the isDeprecated
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
isDeprecated - new value of isDeprecated field (as defined in service metadata)this with just the isDeprecated field changedpublic Optional<Integer> getIntentCount()
public DeviceManagementTemplate withIntentCount(Integer intentCount)
this with just the intentCount
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Number of Intents created from this template.”
intentCount - new value of intentCount field (as defined in service metadata)this with just the intentCount field changedpublic Optional<DeviceManagementTemplateType> getTemplateType()
public DeviceManagementTemplate withTemplateType(DeviceManagementTemplateType templateType)
this with just the templateType
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The template's type.”
templateType - new value of templateType field (as defined in service metadata)this with just the templateType field changedpublic Optional<PolicyPlatformType> getPlatformType()
public DeviceManagementTemplate withPlatformType(PolicyPlatformType platformType)
this with just the platformType
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The template's platform.”
platformType - new value of platformType field (as defined in service metadata)this with just the platformType field changedpublic Optional<DeviceManagementTemplateSubtype> getTemplateSubtype()
public DeviceManagementTemplate withTemplateSubtype(DeviceManagementTemplateSubtype templateSubtype)
this with just the templateSubtype
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The template's subtype.”
templateSubtype - new value of templateSubtype field (as defined in service metadata)this with just the templateSubtype field changedpublic Optional<OffsetDateTime> getPublishedDateTime()
public DeviceManagementTemplate withPublishedDateTime(OffsetDateTime publishedDateTime)
this with just the publishedDateTime
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“When the template was published”
publishedDateTime - new value of publishedDateTime field (as defined in service metadata)this with just the publishedDateTime field changedpublic DeviceManagementSettingInstanceCollectionRequest getSettings()
public DeviceManagementTemplateSettingCategoryCollectionRequest getCategories()
public DeviceManagementTemplateCollectionRequest getMigratableTo()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic DeviceManagementTemplate patch()
this with changed fields reset.public DeviceManagementTemplate put()
this
with changed fields reset (they were ignored anyway).public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<DeviceManagementIntent> createInstance(String displayName, String description, List<DeviceManagementSettingInstance> settingsDelta, List<String> roleScopeTagIds)
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DeviceManagementSettingComparison> compare(String templateId)
Copyright © 2018–2020. All rights reserved.