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