io.github.zeroone3010.yahueapi.v2.domain.update.GradientPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yetanotherhueapi Show documentation
Show all versions of yetanotherhueapi Show documentation
A library for controlling Philips Hue lights.
The newest version!
package io.github.zeroone3010.yahueapi.v2.domain.update;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.zeroone3010.yahueapi.v2.domain.JsonStringUtil;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class GradientPoint {
@JsonProperty("color")
private Color color;
public Color getColor() {
return color;
}
/**
* @param color Color of this gradient point.
* @return Self, so that one can also use this method like a fluent builder.
*/
public GradientPoint setColor(Color color) {
this.color = color;
return this;
}
@Override
public String toString() {
return JsonStringUtil.toJsonString(this);
}
}