|
| 1 | +package com.coinbase.prime.balances; |
| 2 | + |
| 3 | +import com.coinbase.prime.model.enums.BalanceType; |
| 4 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 5 | + |
| 6 | +public class ListEntityBalancesRequest { |
| 7 | + @JsonProperty("entity_id") |
| 8 | + private String entityId; |
| 9 | + |
| 10 | + private String symbols; |
| 11 | + |
| 12 | + private String cursor; |
| 13 | + |
| 14 | + private int limit; |
| 15 | + |
| 16 | + @JsonProperty("aggregation_type") |
| 17 | + private BalanceType aggregationType; |
| 18 | + |
| 19 | + public ListEntityBalancesRequest() { |
| 20 | + } |
| 21 | + |
| 22 | + public ListEntityBalancesRequest(Builder builder) { |
| 23 | + this.entityId = builder.entityId; |
| 24 | + this.symbols = builder.symbols; |
| 25 | + this.cursor = builder.cursor; |
| 26 | + this.limit = builder.limit; |
| 27 | + this.aggregationType = builder.aggregationType; |
| 28 | + } |
| 29 | + |
| 30 | + public String getEntityId() { |
| 31 | + return entityId; |
| 32 | + } |
| 33 | + |
| 34 | + public void setEntityId(String entityId) { |
| 35 | + this.entityId = entityId; |
| 36 | + } |
| 37 | + |
| 38 | + public String getSymbols() { |
| 39 | + return symbols; |
| 40 | + } |
| 41 | + |
| 42 | + public void setSymbols(String symbols) { |
| 43 | + this.symbols = symbols; |
| 44 | + } |
| 45 | + |
| 46 | + public String getCursor() { |
| 47 | + return cursor; |
| 48 | + } |
| 49 | + |
| 50 | + public void setCursor(String cursor) { |
| 51 | + this.cursor = cursor; |
| 52 | + } |
| 53 | + |
| 54 | + public int getLimit() { |
| 55 | + return limit; |
| 56 | + } |
| 57 | + |
| 58 | + public void setLimit(int limit) { |
| 59 | + this.limit = limit; |
| 60 | + } |
| 61 | + |
| 62 | + public BalanceType getAggregationType() { |
| 63 | + return aggregationType; |
| 64 | + } |
| 65 | + |
| 66 | + public void setAggregationType(BalanceType aggregationType) { |
| 67 | + this.aggregationType = aggregationType; |
| 68 | + } |
| 69 | + |
| 70 | + public static class Builder { |
| 71 | + private String entityId; |
| 72 | + private String symbols; |
| 73 | + private String cursor; |
| 74 | + private int limit; |
| 75 | + private BalanceType aggregationType; |
| 76 | + |
| 77 | + public Builder() { |
| 78 | + } |
| 79 | + |
| 80 | + public Builder entityId(String entityId) { |
| 81 | + this.entityId = entityId; |
| 82 | + return this; |
| 83 | + } |
| 84 | + |
| 85 | + public Builder symbols(String symbols) { |
| 86 | + this.symbols = symbols; |
| 87 | + return this; |
| 88 | + } |
| 89 | + |
| 90 | + public Builder cursor(String cursor) { |
| 91 | + this.cursor = cursor; |
| 92 | + return this; |
| 93 | + } |
| 94 | + |
| 95 | + public Builder limit(int limit) { |
| 96 | + this.limit = limit; |
| 97 | + return this; |
| 98 | + } |
| 99 | + |
| 100 | + public Builder aggregationType(BalanceType aggregationType) { |
| 101 | + this.aggregationType = aggregationType; |
| 102 | + return this; |
| 103 | + } |
| 104 | + |
| 105 | + public ListEntityBalancesRequest build() { |
| 106 | + return new ListEntityBalancesRequest(this); |
| 107 | + } |
| 108 | + } |
| 109 | +} |
0 commit comments