Class 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 class  RgbColor.Builder  
    • Field Summary

      Fields 
      Modifier and Type Field 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.UnmappedFieldsImpl unmappedFields  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RgbColor()  
    • 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
    • Constructor Detail

      • RgbColor

        protected RgbColor()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.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 of 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”

        Parameters:
        b - new value of b field (as defined in service metadata)
        Returns:
        immutable copy of this with just the b field 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 of 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”

        Parameters:
        g - new value of g field (as defined in service metadata)
        Returns:
        immutable copy of this with just the g field 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 of 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”

        Parameters:
        r - new value of r field (as defined in service metadata)
        Returns:
        immutable copy of this with just the r field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.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