-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathOperationTimeWindow.java
More file actions
83 lines (69 loc) · 2.25 KB
/
OperationTimeWindow.java
File metadata and controls
83 lines (69 loc) · 2.25 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.pipelines;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;
/** Proto representing a window */
@Generated
public class OperationTimeWindow {
/**
* Days of week in which the window is allowed to happen If not specified all days of the week
* will be used.
*/
@JsonProperty("days_of_week")
private Collection<DayOfWeek> daysOfWeek;
/** An integer between 0 and 23 denoting the start hour for the window in the 24-hour day. */
@JsonProperty("start_hour")
private Long startHour;
/**
* Time zone id of window. See
* https://docs.databricks.com/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-set-timezone.html
* for details. If not specified, UTC will be used.
*/
@JsonProperty("time_zone_id")
private String timeZoneId;
public OperationTimeWindow setDaysOfWeek(Collection<DayOfWeek> daysOfWeek) {
this.daysOfWeek = daysOfWeek;
return this;
}
public Collection<DayOfWeek> getDaysOfWeek() {
return daysOfWeek;
}
public OperationTimeWindow setStartHour(Long startHour) {
this.startHour = startHour;
return this;
}
public Long getStartHour() {
return startHour;
}
public OperationTimeWindow setTimeZoneId(String timeZoneId) {
this.timeZoneId = timeZoneId;
return this;
}
public String getTimeZoneId() {
return timeZoneId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
OperationTimeWindow that = (OperationTimeWindow) o;
return Objects.equals(daysOfWeek, that.daysOfWeek)
&& Objects.equals(startHour, that.startHour)
&& Objects.equals(timeZoneId, that.timeZoneId);
}
@Override
public int hashCode() {
return Objects.hash(daysOfWeek, startHour, timeZoneId);
}
@Override
public String toString() {
return new ToStringer(OperationTimeWindow.class)
.add("daysOfWeek", daysOfWeek)
.add("startHour", startHour)
.add("timeZoneId", timeZoneId)
.toString();
}
}