001package burrows.api.finance.model;
002
003import java.util.Collection;
004import java.util.LinkedHashSet;
005import java.util.Set;
006
007/**
008 * Request URL Data for creating HTTP requests.
009 *
010 * @author <a href="mailto:jaredsburrows@gmail.com">Jared Burrows</a>
011 * @see burrows.api.finance.model.Company
012 * @see burrows.api.finance.model.Format
013 * @see burrows.api.finance.model.Property
014 * @since 0.0.1
015 */
016public class RequestURLData {
017
018    private Set<String> quotes = new LinkedHashSet<>();
019    private Company company;
020    private Format format;
021
022    public Company getCompany() {
023        return this.company;
024    }
025
026    public RequestURLData setCompany(final Company company) {
027        this.company = company;
028        return this;
029    }
030
031    public Format getFormat() {
032        return this.format;
033    }
034
035    public RequestURLData setFormat(final Format format) {
036        this.format = format;
037        return this;
038    }
039
040    public Set<String> getQuotes() {
041        return this.quotes;
042    }
043
044    public RequestURLData addQuote(final String quotes) {
045        this.quotes.add(quotes);
046        return this;
047    }
048
049    public RequestURLData addQuotes(final Collection<String> quotes) {
050        this.quotes.addAll(quotes);
051        return this;
052    }
053}