Class KeyIntegerValuePair
- java.lang.Object
-
- odata.msgraph.client.beta.complex.KeyTypedValuePair
-
- odata.msgraph.client.beta.complex.KeyIntegerValuePair
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class KeyIntegerValuePair extends KeyTypedValuePair implements com.github.davidmoten.odata.client.ODataType
“A key-value pair with a string key and an integer value.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyIntegerValuePair.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Integervalue-
Fields inherited from class odata.msgraph.client.beta.complex.KeyTypedValuePair
contextPath, key, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyIntegerValuePair()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyIntegerValuePair.BuilderbuilderKeyIntegerValuePair()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<Integer>getValue()“The integer value of the key-value pair.”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()KeyIntegerValuePairwithUnmappedField(String name, String value)KeyIntegerValuePairwithValue(Integer 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 Integer value
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classKeyTypedValuePair
-
getValue
public Optional<Integer> getValue()
“The integer value of the key-value pair.”- Returns:
- property value
-
withValue
public KeyIntegerValuePair withValue(Integer 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 integer 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 KeyIntegerValuePair 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
-
builderKeyIntegerValuePair
public static KeyIntegerValuePair.Builder builderKeyIntegerValuePair()
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
-
-