Class Amount.Builder

  • Enclosing class:
    Amount

    public static class Amount.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public Amount build()
        Builds a Amount.
        Returns:
        the new Amount instance
      • addPrices

        public Amount.Builder addPrices​(Price prices)
        Adds a new element to prices.
        Parameters:
        prices - the new element to be added
        Returns:
        the Amount builder
      • country

        public Amount.Builder country​(java.lang.String country)
        Set the country.
        Parameters:
        country - the country
        Returns:
        the Amount builder
      • currency

        public Amount.Builder currency​(java.lang.String currency)
        Set the currency.
        Parameters:
        currency - the currency
        Returns:
        the Amount builder
      • prices

        public Amount.Builder prices​(java.util.List<Price> prices)
        Set the prices. Existing prices will be replaced.
        Parameters:
        prices - the prices
        Returns:
        the Amount builder