Class NumberRange
- java.lang.Object
-
- odata.msgraph.client.beta.complex.NumberRange
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class NumberRange extends Object implements com.github.davidmoten.odata.client.ODataType
“Number Range definition.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNumberRange.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected IntegerlowerNumberprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected IntegerupperNumber
-
Constructor Summary
Constructors Modifier Constructor Description protectedNumberRange()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NumberRange.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getLowerNumber()“Lower number.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Integer>getUpperNumber()“Upper number.”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()NumberRangewithLowerNumber(Integer lowerNumber)Returns an immutable copy ofthiswith just thelowerNumberfield changed.NumberRangewithUnmappedField(String name, String value)NumberRangewithUpperNumber(Integer upperNumber)Returns an immutable copy ofthiswith just theupperNumberfield changed.
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
lowerNumber
protected Integer lowerNumber
-
upperNumber
protected Integer upperNumber
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getLowerNumber
public Optional<Integer> getLowerNumber()
“Lower number.”- Returns:
- property lowerNumber
-
withLowerNumber
public NumberRange withLowerNumber(Integer lowerNumber)
Returns an immutable copy ofthiswith just thelowerNumberfield 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.“Lower number.”
- Parameters:
lowerNumber- new value oflowerNumberfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelowerNumberfield changed
-
getUpperNumber
public Optional<Integer> getUpperNumber()
“Upper number.”- Returns:
- property upperNumber
-
withUpperNumber
public NumberRange withUpperNumber(Integer upperNumber)
Returns an immutable copy ofthiswith just theupperNumberfield 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.“Upper number.”
- Parameters:
upperNumber- new value ofupperNumberfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theupperNumberfield changed
-
withUnmappedField
public NumberRange 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 NumberRange.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
-
-