Skip to content

Commit 8bf9c15

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@cac572f5.
1 parent 38dfef8 commit 8bf9c15

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

src/main/java/com/segment/publicapi/models/TraitOptions.java

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import com.google.gson.stream.JsonWriter;
2323
import com.segment.publicapi.JSON;
2424
import java.io.IOException;
25+
import java.math.BigDecimal;
2526
import java.util.HashSet;
2627
import java.util.Map;
2728
import java.util.Objects;
@@ -39,6 +40,11 @@ public class TraitOptions {
3940
@SerializedName(SERIALIZED_NAME_INCLUDE_ANONYMOUS_USERS)
4041
private Boolean includeAnonymousUsers;
4142

43+
public static final String SERIALIZED_NAME_BACKFILL_DURATION_DAYS = "backfillDurationDays";
44+
45+
@SerializedName(SERIALIZED_NAME_BACKFILL_DURATION_DAYS)
46+
private BigDecimal backfillDurationDays;
47+
4248
public TraitOptions() {}
4349

4450
public TraitOptions includeHistoricalData(Boolean includeHistoricalData) {
@@ -86,6 +92,30 @@ public void setIncludeAnonymousUsers(Boolean includeAnonymousUsers) {
8692
this.includeAnonymousUsers = includeAnonymousUsers;
8793
}
8894

95+
public TraitOptions backfillDurationDays(BigDecimal backfillDurationDays) {
96+
97+
this.backfillDurationDays = backfillDurationDays;
98+
return this;
99+
}
100+
101+
/**
102+
* If specified, the value of this field indicates the number of days, specified from the date
103+
* the audience was created, that event data will be included from when determining audience
104+
* membership. If unspecified, defer to the value of `includeHistoricalData` to
105+
* determine whether historical data is either entirely included or entirely excluded when
106+
* determining audience membership.
107+
*
108+
* @return backfillDurationDays
109+
*/
110+
@javax.annotation.Nullable
111+
public BigDecimal getBackfillDurationDays() {
112+
return backfillDurationDays;
113+
}
114+
115+
public void setBackfillDurationDays(BigDecimal backfillDurationDays) {
116+
this.backfillDurationDays = backfillDurationDays;
117+
}
118+
89119
@Override
90120
public boolean equals(Object o) {
91121
if (this == o) {
@@ -96,12 +126,13 @@ public boolean equals(Object o) {
96126
}
97127
TraitOptions traitOptions = (TraitOptions) o;
98128
return Objects.equals(this.includeHistoricalData, traitOptions.includeHistoricalData)
99-
&& Objects.equals(this.includeAnonymousUsers, traitOptions.includeAnonymousUsers);
129+
&& Objects.equals(this.includeAnonymousUsers, traitOptions.includeAnonymousUsers)
130+
&& Objects.equals(this.backfillDurationDays, traitOptions.backfillDurationDays);
100131
}
101132

102133
@Override
103134
public int hashCode() {
104-
return Objects.hash(includeHistoricalData, includeAnonymousUsers);
135+
return Objects.hash(includeHistoricalData, includeAnonymousUsers, backfillDurationDays);
105136
}
106137

107138
@Override
@@ -114,6 +145,9 @@ public String toString() {
114145
sb.append(" includeAnonymousUsers: ")
115146
.append(toIndentedString(includeAnonymousUsers))
116147
.append("\n");
148+
sb.append(" backfillDurationDays: ")
149+
.append(toIndentedString(backfillDurationDays))
150+
.append("\n");
117151
sb.append("}");
118152
return sb.toString();
119153
}
@@ -137,6 +171,7 @@ private String toIndentedString(Object o) {
137171
openapiFields = new HashSet<String>();
138172
openapiFields.add("includeHistoricalData");
139173
openapiFields.add("includeAnonymousUsers");
174+
openapiFields.add("backfillDurationDays");
140175

141176
// a set of required properties/fields (JSON key names)
142177
openapiRequiredFields = new HashSet<String>();

0 commit comments

Comments
 (0)