Skip to content

Commit 1bd8238

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@96bc189d.
1 parent 64b606e commit 1bd8238

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public class CreateDownloadAlphaInput {
3939
@SerializedName(SERIALIZED_NAME_WORKSPACE_ID)
4040
private String workspaceId;
4141

42-
public static final String SERIALIZED_NAME_START_TIME = "startTime";
42+
public static final String SERIALIZED_NAME_HOUR = "hour";
4343

44-
@SerializedName(SERIALIZED_NAME_START_TIME)
45-
private String startTime;
44+
@SerializedName(SERIALIZED_NAME_HOUR)
45+
private String hour;
4646

4747
public CreateDownloadAlphaInput() {}
4848

@@ -86,25 +86,25 @@ public void setWorkspaceId(String workspaceId) {
8686
this.workspaceId = workspaceId;
8787
}
8888

89-
public CreateDownloadAlphaInput startTime(String startTime) {
89+
public CreateDownloadAlphaInput hour(String hour) {
9090

91-
this.startTime = startTime;
91+
this.hour = hour;
9292
return this;
9393
}
9494

9595
/**
96-
* The ISO8601 formatted timestamp corresponding to the beginning of the time range. Currently,
97-
* there is a month of data retained.
96+
* The ISO8601 formatted timestamp corresponding to a specific hour and day to retrieve data
97+
* for. E.g.: 2025-05-07T23:00:00Z Objects are bucketed by hour and a month of data is retained.
9898
*
99-
* @return startTime
99+
* @return hour
100100
*/
101101
@javax.annotation.Nonnull
102-
public String getStartTime() {
103-
return startTime;
102+
public String getHour() {
103+
return hour;
104104
}
105105

106-
public void setStartTime(String startTime) {
107-
this.startTime = startTime;
106+
public void setHour(String hour) {
107+
this.hour = hour;
108108
}
109109

110110
@Override
@@ -118,12 +118,12 @@ public boolean equals(Object o) {
118118
CreateDownloadAlphaInput createDownloadAlphaInput = (CreateDownloadAlphaInput) o;
119119
return Objects.equals(this.collectionId, createDownloadAlphaInput.collectionId)
120120
&& Objects.equals(this.workspaceId, createDownloadAlphaInput.workspaceId)
121-
&& Objects.equals(this.startTime, createDownloadAlphaInput.startTime);
121+
&& Objects.equals(this.hour, createDownloadAlphaInput.hour);
122122
}
123123

124124
@Override
125125
public int hashCode() {
126-
return Objects.hash(collectionId, workspaceId, startTime);
126+
return Objects.hash(collectionId, workspaceId, hour);
127127
}
128128

129129
@Override
@@ -132,7 +132,7 @@ public String toString() {
132132
sb.append("class CreateDownloadAlphaInput {\n");
133133
sb.append(" collectionId: ").append(toIndentedString(collectionId)).append("\n");
134134
sb.append(" workspaceId: ").append(toIndentedString(workspaceId)).append("\n");
135-
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
135+
sb.append(" hour: ").append(toIndentedString(hour)).append("\n");
136136
sb.append("}");
137137
return sb.toString();
138138
}
@@ -156,13 +156,13 @@ private String toIndentedString(Object o) {
156156
openapiFields = new HashSet<String>();
157157
openapiFields.add("collectionId");
158158
openapiFields.add("workspaceId");
159-
openapiFields.add("startTime");
159+
openapiFields.add("hour");
160160

161161
// a set of required properties/fields (JSON key names)
162162
openapiRequiredFields = new HashSet<String>();
163163
openapiRequiredFields.add("collectionId");
164164
openapiRequiredFields.add("workspaceId");
165-
openapiRequiredFields.add("startTime");
165+
openapiRequiredFields.add("hour");
166166
}
167167

168168
/**
@@ -219,12 +219,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
219219
+ " string but got `%s`",
220220
jsonObj.get("workspaceId").toString()));
221221
}
222-
if (!jsonObj.get("startTime").isJsonPrimitive()) {
222+
if (!jsonObj.get("hour").isJsonPrimitive()) {
223223
throw new IllegalArgumentException(
224224
String.format(
225-
"Expected the field `startTime` to be a primitive type in the JSON"
226-
+ " string but got `%s`",
227-
jsonObj.get("startTime").toString()));
225+
"Expected the field `hour` to be a primitive type in the JSON string"
226+
+ " but got `%s`",
227+
jsonObj.get("hour").toString()));
228228
}
229229
}
230230

0 commit comments

Comments
 (0)