All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.coinbase.prime.model.balances.Web3WalletAsset Maven / Gradle / Ivy

/*
 * Copyright 2024-present Coinbase Global, Inc.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package com.coinbase.prime.model.balances;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Web3WalletAsset {
    private String network;
    @JsonProperty("contract_address")
    private String contractAddress;
    private String symbol;
    @JsonProperty("token_id")
    private String tokenId;

    public Web3WalletAsset() {
    }

    public Web3WalletAsset(Builder builder) {
        this.network = builder.network;
        this.contractAddress = builder.contractAddress;
        this.symbol = builder.symbol;
        this.tokenId = builder.tokenId;
    }

    public String getNetwork() {
        return network;
    }

    public void setNetwork(String network) {
        this.network = network;
    }

    public String getContractAddress() {
        return contractAddress;
    }

    public void setContractAddress(String contractAddress) {
        this.contractAddress = contractAddress;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getTokenId() {
        return tokenId;
    }

    public void setTokenId(String tokenId) {
        this.tokenId = tokenId;
    }

    public static class Builder {
        private String network;
        private String contractAddress;
        private String symbol;
        private String tokenId;

        public Builder() {
        }

        public Builder network(String network) {
            this.network = network;
            return this;
        }

        public Builder contractAddress(String contractAddress) {
            this.contractAddress = contractAddress;
            return this;
        }

        public Builder symbol(String symbol) {
            this.symbol = symbol;
            return this;
        }

        public Builder tokenId(String tokenId) {
            this.tokenId = tokenId;
            return this;
        }

        public Web3WalletAsset build() {
            return new Web3WalletAsset(this);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy