Class KeyTypedValuePair
- java.lang.Object
-
- odata.msgraph.client.beta.complex.KeyTypedValuePair
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
KeyBooleanValuePair,KeyIntegerValuePair,KeyRealValuePair,KeyStringValuePair
public class KeyTypedValuePair extends Object implements com.github.davidmoten.odata.client.ODataType
“A key-value pair with a string key and a typed value.”
-
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringkeyprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyTypedValuePair()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getKey()“The string key of the key-value pair.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()KeyTypedValuePairwithKey(String key)Returns an immutable copy ofthiswith just thekeyfield changed.KeyTypedValuePairwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getKey
public Optional<String> getKey()
“The string key of the key-value pair.”- Returns:
- property key
-
withKey
public KeyTypedValuePair withKey(String key)
Returns an immutable copy ofthiswith just thekeyfield 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 string key of the key-value pair.”
- Parameters:
key- new value ofkeyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thekeyfield changed
-
withUnmappedField
public KeyTypedValuePair 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
-
-