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

com.bandwidth.phonenumberlookup.models.OrderRequest Maven / Gradle / Ivy

Go to download

The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs

There is a newer version: 12.0.0
Show newest version
/*
 * BandwidthLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

package com.bandwidth.phonenumberlookup.models;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import java.util.List;

/**
 * This is a model class for OrderRequest type.
 */
public class OrderRequest {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List tns;

    /**
     * Default constructor.
     */
    public OrderRequest() {
    }

    /**
     * Initialization constructor.
     * @param  tns  List of String value for tns.
     */
    public OrderRequest(
            List tns) {
        this.tns = tns;
    }

    /**
     * Getter for Tns.
     * @return Returns the List of String
     */
    @JsonGetter("tns")
    public List getTns() {
        return tns;
    }

    /**
     * Setter for Tns.
     * @param tns Value for List of String
     */
    @JsonSetter("tns")
    public void setTns(List tns) {
        this.tns = tns;
    }

    /**
     * Converts this OrderRequest into string format.
     * @return String representation of this class
     */
    @Override
    public String toString() {
        return "OrderRequest [" + "tns=" + tns + "]";
    }

    /**
     * Builds a new {@link OrderRequest.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link OrderRequest.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder()
                .tns(getTns());
        return builder;
    }

    /**
     * Class to build instances of {@link OrderRequest}.
     */
    public static class Builder {
        private List tns;



        /**
         * Setter for tns.
         * @param  tns  List of String value for tns.
         * @return Builder
         */
        public Builder tns(List tns) {
            this.tns = tns;
            return this;
        }

        /**
         * Builds a new {@link OrderRequest} object using the set fields.
         * @return {@link OrderRequest}
         */
        public OrderRequest build() {
            return new OrderRequest(tns);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy