Interface UsageAllocation.Builder

    • Method Detail

      • allocatedUsageQuantity

        UsageAllocation.Builder allocatedUsageQuantity​(Integer allocatedUsageQuantity)

        The total quantity allocated to this bucket of usage.

        Parameters:
        allocatedUsageQuantity - The total quantity allocated to this bucket of usage.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        UsageAllocation.Builder tags​(Collection<Tag> tags)

        The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.

        Parameters:
        tags - The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        UsageAllocation.Builder tags​(Tag... tags)

        The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.

        Parameters:
        tags - The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        UsageAllocation.Builder tags​(Consumer<Tag.Builder>... tags)

        The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)