-
Notifications
You must be signed in to change notification settings - Fork 3
/
HueSinkProperties.java
66 lines (52 loc) · 1.15 KB
/
HueSinkProperties.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package io.springoneplatform.dataflow.hue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Used to configure the HUE sink application.
*
* @author Eric Bottard
*/
@ConfigurationProperties("hue")
public class HueSinkProperties {
/**
* The id of the light to alter.
*/
@Value("#{1 + ${INSTANCE_INDEX:0}}")
private String light;
/**
* The host address of the HUE bridge.
*/
private String host = "localhost";
/**
* The port of the HUE bridge.
*/
private int port = 80;
/**
* The username (or key) to authenticate with the HUE bridge.
*/
private String username = "DcVGNJn0BRlICjNV8UKvPxbdIXp9IVDJyG6Fn9yP";
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getLight() {
return light;
}
public void setLight(String light) {
this.light = light;
}
}