Class KeyRealValuePair
- java.lang.Object
-
- odata.msgraph.client.beta.complex.KeyTypedValuePair
-
- odata.msgraph.client.beta.complex.KeyRealValuePair
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class KeyRealValuePair extends KeyTypedValuePair implements com.github.davidmoten.odata.client.ODataType
“A key-value pair with a string key and a real (floating-point) value.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyRealValuePair.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Doublevalue-
Fields inherited from class odata.msgraph.client.beta.complex.KeyTypedValuePair
contextPath, key, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyRealValuePair()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyRealValuePair.BuilderbuilderKeyRealValuePair()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.UnmappedFieldsgetUnmappedFields()Optional<Double>getValue()“The real (floating-point) value of the key-value pair.”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()KeyRealValuePairwithUnmappedField(String name, String value)KeyRealValuePairwithValue(Double value)Returns an immutable copy ofthiswith just thevaluefield changed.-
Methods inherited from class odata.msgraph.client.beta.complex.KeyTypedValuePair
getKey, withKey
-
-
-
-
Field Detail
-
value
protected Double value
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classKeyTypedValuePair
-
getValue
public Optional<Double> getValue()
“The real (floating-point) value of the key-value pair.”- Returns:
- property value
-
withValue
public KeyRealValuePair withValue(Double 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 real (floating-point) value of the key-value pair.”
- Parameters:
value- new value ofvaluefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevaluefield changed
-
withUnmappedField
public KeyRealValuePair withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classKeyTypedValuePair
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classKeyTypedValuePair
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classKeyTypedValuePair
-
builderKeyRealValuePair
public static KeyRealValuePair.Builder builderKeyRealValuePair()
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
-
toString
public String toString()
- Overrides:
toStringin classKeyTypedValuePair
-
-