Package odata.msgraph.client.complex
Class KeyValuePair
- java.lang.Object
-
- odata.msgraph.client.complex.KeyValuePair
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class KeyValuePair extends Object implements com.github.davidmoten.odata.client.ODataType
“Key value pair for storing custom settings”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyValuePair.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 Stringvalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyValuePair()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyValuePair.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 for this key-value pair”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getValue()“Value for this key-value pair”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()KeyValuePairwithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.KeyValuePairwithUnmappedField(String name, String value)KeyValuePairwithValue(String value)Returns an immutable copy ofthiswith just thevaluefield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
withName
public KeyValuePair 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 for this key-value pair”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
withValue
public KeyValuePair 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 for this key-value pair”
- Parameters:
value- new value ofvaluefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevaluefield changed
-
withUnmappedField
public KeyValuePair 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 KeyValuePair.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
-
-