public class RgbColor extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
RgbColor.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected com.github.davidmoten.odata.client.edm.UnsignedByte |
b |
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected com.github.davidmoten.odata.client.edm.UnsignedByte |
g |
protected String |
odataType |
protected com.github.davidmoten.odata.client.edm.UnsignedByte |
r |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
| Modifier | Constructor and Description |
|---|---|
protected |
RgbColor() |
| Modifier and Type | Method and Description |
|---|---|
static RgbColor.Builder |
builder()
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.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
RgbColor |
withB(com.github.davidmoten.odata.client.edm.UnsignedByte b)
Returns an immutable copy of
this with just the b field changed. |
RgbColor |
withG(com.github.davidmoten.odata.client.edm.UnsignedByte g)
Returns an immutable copy of
this with just the g field changed. |
RgbColor |
withR(com.github.davidmoten.odata.client.edm.UnsignedByte r)
Returns an immutable copy of
this with just the r field changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected com.github.davidmoten.odata.client.edm.UnsignedByte r
protected com.github.davidmoten.odata.client.edm.UnsignedByte g
protected com.github.davidmoten.odata.client.edm.UnsignedByte b
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic Optional<com.github.davidmoten.odata.client.edm.UnsignedByte> getR()
public RgbColor withR(com.github.davidmoten.odata.client.edm.UnsignedByte r)
this with just the r field changed.
Field description below. The field name is also added to an internal map of
changed fields in the returned object so that when this.patch() is
called (if available)on the returned object only the changed fields are
submitted.
“Red value”
r - new value of r field (as defined in service metadata)this with just the r field changedpublic Optional<com.github.davidmoten.odata.client.edm.UnsignedByte> getG()
public RgbColor withG(com.github.davidmoten.odata.client.edm.UnsignedByte g)
this with just the g field changed.
Field description below. The field name is also added to an internal map of
changed fields in the returned object so that when this.patch() is
called (if available)on the returned object only the changed fields are
submitted.
“Green value”
g - new value of g field (as defined in service metadata)this with just the g field changedpublic Optional<com.github.davidmoten.odata.client.edm.UnsignedByte> getB()
public RgbColor withB(com.github.davidmoten.odata.client.edm.UnsignedByte b)
this with just the b field changed.
Field description below. The field name is also added to an internal map of
changed fields in the returned object so that when this.patch() is
called (if available)on the returned object only the changed fields are
submitted.
“Blue value”
b - new value of b field (as defined in service metadata)this with just the b field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static RgbColor.Builder builder()
Copyright © 2018–2020. All rights reserved.