Package odata.msgraph.client.complex
Class RgbColor
- java.lang.Object
-
- odata.msgraph.client.complex.RgbColor
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class RgbColor extends Object implements com.github.davidmoten.odata.client.ODataType
“Color in RGB.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRgbColor.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.edm.UnsignedBytebprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected com.github.davidmoten.odata.client.edm.UnsignedBytegprotected StringodataTypeprotected com.github.davidmoten.odata.client.edm.UnsignedByterprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedRgbColor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RgbColor.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<com.github.davidmoten.odata.client.edm.UnsignedByte>getB()“Blue value”Optional<com.github.davidmoten.odata.client.edm.UnsignedByte>getG()“Green value”Optional<com.github.davidmoten.odata.client.edm.UnsignedByte>getR()“Red value”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()RgbColorwithB(com.github.davidmoten.odata.client.edm.UnsignedByte b)Returns an immutable copy ofthiswith just thebfield changed.RgbColorwithG(com.github.davidmoten.odata.client.edm.UnsignedByte g)Returns an immutable copy ofthiswith just thegfield changed.RgbColorwithR(com.github.davidmoten.odata.client.edm.UnsignedByte r)Returns an immutable copy ofthiswith just therfield changed.RgbColorwithUnmappedField(String name, Object value)
-
-
-
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
-
b
protected com.github.davidmoten.odata.client.edm.UnsignedByte b
-
g
protected com.github.davidmoten.odata.client.edm.UnsignedByte g
-
r
protected com.github.davidmoten.odata.client.edm.UnsignedByte r
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getB
public Optional<com.github.davidmoten.odata.client.edm.UnsignedByte> getB()
“Blue value”- Returns:
- property b
-
withB
public RgbColor withB(com.github.davidmoten.odata.client.edm.UnsignedByte b)
Returns an immutable copy ofthiswith just thebfield 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.“Blue value”
- Parameters:
b- new value ofbfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebfield changed
-
getG
public Optional<com.github.davidmoten.odata.client.edm.UnsignedByte> getG()
“Green value”- Returns:
- property g
-
withG
public RgbColor withG(com.github.davidmoten.odata.client.edm.UnsignedByte g)
Returns an immutable copy ofthiswith just thegfield 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.“Green value”
- Parameters:
g- new value ofgfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegfield changed
-
getR
public Optional<com.github.davidmoten.odata.client.edm.UnsignedByte> getR()
“Red value”- Returns:
- property r
-
withR
public RgbColor withR(com.github.davidmoten.odata.client.edm.UnsignedByte r)
Returns an immutable copy ofthiswith just therfield 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.“Red value”
- Parameters:
r- new value ofrfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therfield changed
-
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 RgbColor.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
-
-