Class KeyLongValuePair
- java.lang.Object
-
- odata.msgraph.client.beta.complex.KeyLongValuePair
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class KeyLongValuePair extends Object implements com.github.davidmoten.odata.client.ODataType
“Key long value pair”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyLongValuePair.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 Longvalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyLongValuePair()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyLongValuePair.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 long value pair”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Long>getValue()“Value for this key long value pair”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()KeyLongValuePairwithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.KeyLongValuePairwithUnmappedField(String name, String value)KeyLongValuePairwithValue(Long value)Returns an immutable copy ofthiswith just thevaluefield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getName
public Optional<String> getName()
“Name for this key long value pair”- Returns:
- property name
-
withName
public KeyLongValuePair 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 long value pair”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
getValue
public Optional<Long> getValue()
“Value for this key long value pair”- Returns:
- property value
-
withValue
public KeyLongValuePair withValue(Long 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 long value pair”
- Parameters:
value- new value ofvaluefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevaluefield changed
-
withUnmappedField
public KeyLongValuePair 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 KeyLongValuePair.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
-
-