Interface ListPriceListsRequest.Builder

    • Method Detail

      • serviceCode

        ListPriceListsRequest.Builder serviceCode​(String serviceCode)

        The service code or the Savings Plan service code for the attributes that you want to retrieve. For example, to get the list of applicable Amazon EC2 price lists, use AmazonEC2. For a full list of service codes containing On-Demand and Reserved Instance (RI) pricing, use the DescribeServices API.

        To retrieve the Reserved Instance and Compute Savings Plan price lists, use ComputeSavingsPlans.

        To retrieve Machine Learning Savings Plans price lists, use MachineLearningSavingsPlans.

        Parameters:
        serviceCode - The service code or the Savings Plan service code for the attributes that you want to retrieve. For example, to get the list of applicable Amazon EC2 price lists, use AmazonEC2. For a full list of service codes containing On-Demand and Reserved Instance (RI) pricing, use the DescribeServices API.

        To retrieve the Reserved Instance and Compute Savings Plan price lists, use ComputeSavingsPlans.

        To retrieve Machine Learning Savings Plans price lists, use MachineLearningSavingsPlans.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • effectiveDate

        ListPriceListsRequest.Builder effectiveDate​(Instant effectiveDate)

        The date that the Price List file prices are effective from.

        Parameters:
        effectiveDate - The date that the Price List file prices are effective from.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regionCode

        ListPriceListsRequest.Builder regionCode​(String regionCode)

        This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list only for the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve price lists for all applicable Regions. The available RegionCode list can be retrieved from GetAttributeValues API.

        Parameters:
        regionCode - This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list only for the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve price lists for all applicable Regions. The available RegionCode list can be retrieved from GetAttributeValues API.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • currencyCode

        ListPriceListsRequest.Builder currencyCode​(String currencyCode)

        The three alphabetical character ISO-4217 currency code that the Price List files are denominated in.

        Parameters:
        currencyCode - The three alphabetical character ISO-4217 currency code that the Price List files are denominated in.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        ListPriceListsRequest.Builder nextToken​(String nextToken)

        The pagination token that indicates the next set of results that you want to retrieve.

        Parameters:
        nextToken - The pagination token that indicates the next set of results that you want to retrieve.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxResults

        ListPriceListsRequest.Builder maxResults​(Integer maxResults)

        The maximum number of results to return in the response.

        Parameters:
        maxResults - The maximum number of results to return in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.