Class ChromeOSDeviceProperty
- java.lang.Object
-
- odata.msgraph.client.beta.complex.ChromeOSDeviceProperty
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class ChromeOSDeviceProperty extends Object implements com.github.davidmoten.odata.client.ODataType
“Represents a property of the ChromeOS device.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChromeOSDeviceProperty.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringnameprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected Booleanupdatableprotected Stringvalueprotected StringvalueType
-
Constructor Summary
Constructors Modifier Constructor Description protectedChromeOSDeviceProperty()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChromeOSDeviceProperty.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getName()“Name of the property”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Boolean>getUpdatable()“Whether this property is updatable”Optional<String>getValue()“Value of the property”Optional<String>getValueType()“Type of the value”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()ChromeOSDevicePropertywithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.ChromeOSDevicePropertywithUnmappedField(String name, String value)ChromeOSDevicePropertywithUpdatable(Boolean updatable)Returns an immutable copy ofthiswith just theupdatablefield changed.ChromeOSDevicePropertywithValue(String value)Returns an immutable copy ofthiswith just thevaluefield changed.ChromeOSDevicePropertywithValueType(String valueType)Returns an immutable copy ofthiswith just thevalueTypefield 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
-
name
protected String name
-
updatable
protected Boolean updatable
-
value
protected String value
-
valueType
protected String valueType
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
withName
public ChromeOSDeviceProperty withName(String name)
Returns an immutable copy ofthiswith just thenamefield 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.“Name of the property”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
getUpdatable
public Optional<Boolean> getUpdatable()
“Whether this property is updatable”- Returns:
- property updatable
-
withUpdatable
public ChromeOSDeviceProperty withUpdatable(Boolean updatable)
Returns an immutable copy ofthiswith just theupdatablefield 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.“Whether this property is updatable”
- Parameters:
updatable- new value ofupdatablefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theupdatablefield changed
-
withValue
public ChromeOSDeviceProperty 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.“Value of the property”
- Parameters:
value- new value ofvaluefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevaluefield changed
-
withValueType
public ChromeOSDeviceProperty withValueType(String valueType)
Returns an immutable copy ofthiswith just thevalueTypefield 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.“Type of the value”
- Parameters:
valueType- new value ofvalueTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevalueTypefield changed
-
withUnmappedField
public ChromeOSDeviceProperty 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 ChromeOSDeviceProperty.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
-
-