-
Notifications
You must be signed in to change notification settings - Fork 0
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
4703d9b
commit e48088e
Showing
15 changed files
with
969 additions
and
81 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
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
96 changes: 96 additions & 0 deletions
96
...ain/java/com/polytomic/api/resources/models/requests/GetEnrichmentInputFieldsRequest.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,96 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
package com.polytomic.api.resources.models.requests; | ||
|
||
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 com.polytomic.api.core.ObjectMappers; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.Objects; | ||
import java.util.Optional; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
@JsonDeserialize(builder = GetEnrichmentInputFieldsRequest.Builder.class) | ||
public final class GetEnrichmentInputFieldsRequest { | ||
private final Optional<Map<String, Object>> configuration; | ||
|
||
private final Map<String, Object> additionalProperties; | ||
|
||
private GetEnrichmentInputFieldsRequest( | ||
Optional<Map<String, Object>> configuration, Map<String, Object> additionalProperties) { | ||
this.configuration = configuration; | ||
this.additionalProperties = additionalProperties; | ||
} | ||
|
||
@JsonProperty("configuration") | ||
public Optional<Map<String, Object>> getConfiguration() { | ||
return configuration; | ||
} | ||
|
||
@java.lang.Override | ||
public boolean equals(Object other) { | ||
if (this == other) return true; | ||
return other instanceof GetEnrichmentInputFieldsRequest && equalTo((GetEnrichmentInputFieldsRequest) other); | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
private boolean equalTo(GetEnrichmentInputFieldsRequest other) { | ||
return configuration.equals(other.configuration); | ||
} | ||
|
||
@java.lang.Override | ||
public int hashCode() { | ||
return Objects.hash(this.configuration); | ||
} | ||
|
||
@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<Map<String, Object>> configuration = Optional.empty(); | ||
|
||
@JsonAnySetter | ||
private Map<String, Object> additionalProperties = new HashMap<>(); | ||
|
||
private Builder() {} | ||
|
||
public Builder from(GetEnrichmentInputFieldsRequest other) { | ||
configuration(other.getConfiguration()); | ||
return this; | ||
} | ||
|
||
@JsonSetter(value = "configuration", nulls = Nulls.SKIP) | ||
public Builder configuration(Optional<Map<String, Object>> configuration) { | ||
this.configuration = configuration; | ||
return this; | ||
} | ||
|
||
public Builder configuration(Map<String, Object> configuration) { | ||
this.configuration = Optional.of(configuration); | ||
return this; | ||
} | ||
|
||
public GetEnrichmentInputFieldsRequest build() { | ||
return new GetEnrichmentInputFieldsRequest(configuration, additionalProperties); | ||
} | ||
} | ||
} |
Oops, something went wrong.