-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cd7dac
commit 43810a2
Showing
35 changed files
with
2,571 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
src/main/java/com/courier/api/resources/bulk/requests/BulkGetUsersParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
package com.courier.api.resources.bulk.requests; | ||
|
||
import com.courier.api.core.ObjectMappers; | ||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonSetter; | ||
import com.fasterxml.jackson.annotation.Nulls; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.Objects; | ||
import java.util.Optional; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
@JsonDeserialize(builder = BulkGetUsersParams.Builder.class) | ||
public final class BulkGetUsersParams { | ||
private final Optional<String> cursor; | ||
|
||
private final Map<String, Object> additionalProperties; | ||
|
||
private BulkGetUsersParams(Optional<String> cursor, Map<String, Object> additionalProperties) { | ||
this.cursor = cursor; | ||
this.additionalProperties = additionalProperties; | ||
} | ||
|
||
/** | ||
* @return A unique identifier that allows for fetching the next set of users added to the bulk job | ||
*/ | ||
@JsonProperty("cursor") | ||
public Optional<String> getCursor() { | ||
return cursor; | ||
} | ||
|
||
@java.lang.Override | ||
public boolean equals(Object other) { | ||
if (this == other) return true; | ||
return other instanceof BulkGetUsersParams && equalTo((BulkGetUsersParams) other); | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
private boolean equalTo(BulkGetUsersParams other) { | ||
return cursor.equals(other.cursor); | ||
} | ||
|
||
@java.lang.Override | ||
public int hashCode() { | ||
return Objects.hash(this.cursor); | ||
} | ||
|
||
@java.lang.Override | ||
public String toString() { | ||
return ObjectMappers.stringify(this); | ||
} | ||
|
||
public static Builder builder() { | ||
return new Builder(); | ||
} | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public static final class Builder { | ||
private Optional<String> cursor = Optional.empty(); | ||
|
||
@JsonAnySetter | ||
private Map<String, Object> additionalProperties = new HashMap<>(); | ||
|
||
private Builder() {} | ||
|
||
public Builder from(BulkGetUsersParams other) { | ||
cursor(other.getCursor()); | ||
return this; | ||
} | ||
|
||
@JsonSetter(value = "cursor", nulls = Nulls.SKIP) | ||
public Builder cursor(Optional<String> cursor) { | ||
this.cursor = cursor; | ||
return this; | ||
} | ||
|
||
public Builder cursor(String cursor) { | ||
this.cursor = Optional.of(cursor); | ||
return this; | ||
} | ||
|
||
public BulkGetUsersParams build() { | ||
return new BulkGetUsersParams(cursor, additionalProperties); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.