public class DeviceCategory extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceCategory.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
displayName |
protected List<String> |
roleScopeTagIds |
protected String |
roleScopeTagIdsNextLink |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
DeviceCategory() |
| Modifier and Type | Method and Description |
|---|---|
static DeviceCategory.Builder |
builderDeviceCategory()
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.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getDescription()
“Optional description for the device category.”
|
Optional<String> |
getDisplayName()
“Display name for the device category.”
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getRoleScopeTagIds()
“Optional role scope tags for the device category.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
DeviceCategory |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
DeviceCategory |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
DeviceCategory |
withDescription(String description)
Returns an immutable copy of
this with just the description
field changed. |
DeviceCategory |
withDisplayName(String displayName)
Returns an immutable copy of
this with just the displayName
field changed. |
protected String displayName
protected String description
protected String roleScopeTagIdsNextLink
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static DeviceCategory.Builder builderDeviceCategory()
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 DeviceCategory 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.
“Display name for the device category.”
displayName - new value of displayName field (as defined in service metadata)this with just the displayName field changedpublic Optional<String> getDescription()
public DeviceCategory 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.
“Optional description for the device category.”
description - new value of description field (as defined in service metadata)this with just the description field changedpublic com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic DeviceCategory patch()
this with changed fields reset.public DeviceCategory put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.