Class DeviceManagementEnumValue
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceManagementEnumValue
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceManagementEnumValue extends Object implements com.github.davidmoten.odata.client.ODataType
“Definition information for an enum value”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementEnumValue.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringdisplayNameprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected Stringvalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementEnumValue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementEnumValue.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getDisplayName()“Display name for this enum value”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getValue()“The raw enum value text”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceManagementEnumValuewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceManagementEnumValuewithUnmappedField(String name, String value)DeviceManagementEnumValuewithValue(String value)Returns an immutable copy ofthiswith just thevaluefield changed.
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
displayName
protected String displayName
-
value
protected String value
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDisplayName
public Optional<String> getDisplayName()
“Display name for this enum value”- Returns:
- property displayName
-
withDisplayName
public DeviceManagementEnumValue 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.“Display name for this enum value”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
withValue
public DeviceManagementEnumValue withValue(String value)
Returns an immutable copy ofthiswith just thevaluefield 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 raw enum value text”
- Parameters:
value- new value ofvaluefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevaluefield changed
-
withUnmappedField
public DeviceManagementEnumValue withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static DeviceManagementEnumValue.Builder builder()
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
-
-