Interface ListLabelsResponse.Builder

    • Method Detail

      • nextToken

        ListLabelsResponse.Builder nextToken​(String nextToken)

        An opaque pagination token indicating where to continue the listing of datasets.

        Parameters:
        nextToken - An opaque pagination token indicating where to continue the listing of datasets.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • labelSummaries

        ListLabelsResponse.Builder labelSummaries​(Collection<LabelSummary> labelSummaries)

        A summary of the items in the label group.

        If you don't supply the LabelGroupName request parameter, or if you supply the name of a label group that doesn't exist, ListLabels returns an empty array in LabelSummaries.

        Parameters:
        labelSummaries - A summary of the items in the label group.

        If you don't supply the LabelGroupName request parameter, or if you supply the name of a label group that doesn't exist, ListLabels returns an empty array in LabelSummaries.

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

        ListLabelsResponse.Builder labelSummaries​(LabelSummary... labelSummaries)

        A summary of the items in the label group.

        If you don't supply the LabelGroupName request parameter, or if you supply the name of a label group that doesn't exist, ListLabels returns an empty array in LabelSummaries.

        Parameters:
        labelSummaries - A summary of the items in the label group.

        If you don't supply the LabelGroupName request parameter, or if you supply the name of a label group that doesn't exist, ListLabels returns an empty array in LabelSummaries.

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

        ListLabelsResponse.Builder labelSummaries​(Consumer<LabelSummary.Builder>... labelSummaries)

        A summary of the items in the label group.

        If you don't supply the LabelGroupName request parameter, or if you supply the name of a label group that doesn't exist, ListLabels returns an empty array in LabelSummaries.

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

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

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