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